What this tool does
The matrix calculator works over the rational numbers: every entry is kept
as an exact fraction, so results are exact — 1/3 never drifts to 0.3333.
Enter a matrix, pick an operation, and (where it helps) read the worked steps.
Core operations
For matrices and of compatible sizes:
Matrix multiplication is not commutative — and usually differ — so both are offered.
Gaussian elimination
Row reduction underlies rank, the determinant, the inverse, and solving systems. Each step is one of three elementary row operations: swap two rows, scale a row, or add a multiple of one row to another. Reducing to reduced row-echelon form (a leading 1 in each pivot column, zeros elsewhere in that column) exposes the rank and the solution set.
Determinant
Reducing to upper-triangular form by row operations, the determinant is the product of the diagonal, with a sign flip for each row swap:
A zero on the diagonal after elimination means and is singular.
Inverse
Augment with the identity and run Gauss–Jordan elimination: . If the left block cannot reach , the matrix is singular and has no inverse.
Solving
Row-reduce the augmented matrix . A pivot in the column means no solution. Otherwise the pivots fix the basic variables; any free columns give a null-space basis, so the full solution is one particular vector plus any combination of those basis vectors.
Worked example
With and , elimination gives the unique solution , and .