Skip to content

Matrix calculator

Calculate the determinant, inverse, product, sum, transpose, rank or row echelon form of matrices up to 6×6, with exact fractions and Gaussian elimination steps.

  • Free, no limits
  • No sign-up
Everything happens in your browser; nothing is uploaded to a server.
  • ✓ Free
  • ✓ No sign-up
  • ✓ Nothing uploaded

Next step

What to do next

How to use it

  1. Choose the operation, for example Determinant.
  2. Set the number of rows and columns.
  3. Fill in the matrix (whole numbers, decimals or fractions).
  4. Read the result and expand the elimination steps.
Try it now

Operations

OperationNeedsResult
Determinant det(A)Square AA number, with steps
Inverse A⁻¹Square A with det ≠ 0A matrix, Gauss–Jordan steps
Multiply A · BColumns of A = rows of BA matrix
Add / subtract A ± BSame sizeA matrix
Scalar multiple k · AAny AA matrix
Transpose AᵀAny ARows become columns
RankAny ANumber of pivots, with steps
Row echelon formAny AThe eliminated matrix, with steps

The calculator works with exact fractions, so 1/3 stays 1/3 instead of 0.333…, and there's no rounding error. If a result has fractions, tick Show as decimals to see them to 4 places.

Determinant: worked example

For A = [[6, 1, 1], [4, −2, 5], [2, 8, 7]] (the default example), expansion along the first row gives

det(A) = 6·(−2·7 − 5·8) − 1·(4·7 − 5·2) + 1·(4·8 − (−2)·2) = 6·(−54) − 18 + 36 = −306.

The calculator gets there by Gaussian elimination instead: it reduces A to an upper triangular matrix with row operations, multiplies the diagonal, and flips the sign for each row swap. Each step shows the row operation, for example R2 ← R2 − (2/3) · R1, and the matrix after it. If a zero row appears, the determinant is 0.

Inverse matrix

The inverse is found with Gauss–Jordan elimination on the augmented matrix [A | I]: row operations turn the left side into the identity matrix, and the right side becomes A⁻¹. If the left side can't be reduced to the identity (det A = 0), the matrix is singular and has no inverse; the calculator says so and shows where elimination stopped.

Check: A · A⁻¹ = I. You can verify it by choosing Multiply and pasting the result in as B.

Entering matrices

  • Choose 1 to 6 rows and columns for each matrix.
  • Entries can be whole numbers (-3), decimals (2.5) or fractions (3/4). An empty cell counts as 0.
  • Matrix B appears only for operations that need two matrices.

To solve a system of linear equations, the system of equations solver sets up the augmented matrix for you and reports unique, infinite or no solutions.

Frequently asked questions

How do I find the determinant of a 3x3 matrix?

Choose Determinant, set 3 rows and 3 columns, and enter the entries. The calculator shows the elimination steps and the result.

When does a matrix have no inverse?

When its determinant is 0 (it's singular). Only square matrices can have an inverse.

Can I multiply matrices of different sizes?

Yes, if the number of columns of A equals the number of rows of B. A 2×3 times a 3×4 gives a 2×4 matrix.

Does it use fractions or decimals?

Exact fractions. You can switch the displayed result to decimals.

What is the rank of a matrix?

The number of nonzero rows (pivots) in its row echelon form, the number of linearly independent rows or columns.

How large can the matrices be?

Up to 6 rows and 6 columns.

Last updated: November 12, 2026

Recommended

Similar tools

If Matrix calculator helped, you may need these too.

See all in category →

People also use