How this calculator works
- Step 1Readrows and entriesEach entry becomes an exact fraction.
- Step 2Reducerow operationsElimination for determinants and inverses.
- Step 3Showanswer and stepsEvery row operation is listed.
Each entry is stored as an exact fraction, so 1/3 never becomes 0.333. Adding, subtracting and multiplying follow the usual definitions.
For a determinant, the calculator reduces A to triangular form with row operations. The determinant is the product of the pivots, with the sign flipped for each row swap.
Worked example: a 3 × 3 determinant
- det(A)
product of the pivots after elimination
- Step 1R3 → R3 − 1/2·R1
- Step 2R3 → R3 + 3/2·R2
- det(A)product of the pivots−9
The same answer, −9, comes from cofactor expansion along the first row: 2 × (−8) − 1 × (−4) + 3 × 1.
Inverse and product
- Inverse of [1 2; 3 4][−2 1; 3/2 −1/2]The determinant is −2, so the inverse exists.
- A × B (default)[5 7 7; −3 7 4; 7 2 2]Row of A times column of B, summed.
A 2 × 3 matrix times a 3 × 2 matrix gives a 2 × 2 result: [58 64; 139 154]. The inner sizes must match.
Read the result
A determinant of 0 means no inverse. The matrix [1 2; 2 4] has determinant 0: its second row is twice the first.
The inverse is found by Gauss-Jordan elimination on A placed beside the identity. When the left half becomes the identity, the right half is the inverse.
What the calculator accepts
- Up to 8 × 8Rows on new lines or separated by semicolons.
- Exact fractionsWhole numbers, decimals and fractions like 7/4.
- No symbolsLetters, variables and complex numbers are rejected.
- Size checksMismatched sizes are explained, not guessed.
Related algebra tools
Matrices solve many equations at once and describe directions in space.
To solve linear equations with each elimination step, use the system of equations calculator. For dot and cross products of 3D vectors, try the vector calculator.
Common mistakes
Mistake: Assuming A × B equals B × A.
Instead: Matrix multiplication depends on order.
Mistake: Multiplying matching entries.
Instead: Each result entry is a row of A times a column of B.
Mistake: Inverting a matrix with determinant 0.
Instead: Check the determinant first; such a matrix has no inverse.
Mistake: Typing 0.333 for one third.
Instead: Type 1/3 so the answer stays exact.
Checking the method
A separate script re-works every golden value with cofactor expansion and the adjugate formula in exact fractions, without row reduction.
Read how we test our calculators, or browse more maths calculators.