Matrix Calculator

This matrix calculator finds the determinant, inverse, transpose, rank, trace, sum, product and power of matrices up to 8×8. Results are exact fractions, with the Gaussian elimination steps shown.

Source: Wolfram MathWorld – Gaussian elimination. Updated: .

One line per matrix row, values separated by spaces; fractions (1/2) and decimals are allowed. Up to 8×8.
Only needed for A + B, A − B and A × B.
My ToolboxYour inputs are saved in this browser only.

Result

Result
Determinant det(A) = 8
Result matrix (for determinant and rank: row echelon form)
123
210
05/21
008/5
Steps
  • R2 ← R2 − (1/2) · R1
  • R3 ← R3 − (2/5) · R2
  • det(A) = + product of the diagonal = (2) · (5/2) · (8/5) = 8

How it is calculated

A matrix is a rectangular grid of numbers; it describes linear systems of equations, rotations and much more. The tool works with exact fractions, so there are no rounding errors – for example in the inverse.

What it calculates

Input

One text line per matrix row, values separated by spaces. A semicolon also works as a row break: “1 2; 3 4”. Whole numbers, decimals with a comma or a point and fractions like 3/4 are accepted.

To solve a system of equations use the system of equations calculator; the fraction calculator reduces fractions, and the calculator helps with single steps.

RREF, LU decomposition and eigenvalues

You can paste a matrix straight from a spreadsheet (tabs between cells). Notations such as [[1, 2], [3, 4]] or [1 2; 3 4] are read as well.

Frequently asked questions

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

Reduce it to triangular form by Gaussian elimination and multiply the diagonal, or use the rule of Sarrus. The tool shows the row operations step by step.

When does a matrix have no inverse?

When its determinant is 0. Then the rows depend on each other (rank below the number of rows) and the system of equations has no unique solution.

How do you multiply two matrices?

Each entry of the product is the sum of products of a row of A and a column of B. The number of columns of A must equal the number of rows of B.

What does the rank of a matrix mean?

It tells how many rows (or columns) are linearly independent – how many rows stay non-zero after Gaussian elimination.

Why does the tool show fractions instead of decimals?

Fractions are exact: 1/3 stays 1/3 instead of 0.333…. If you prefer decimals, switch the display.

How do I find the eigenvalues of a matrix?

The eigenvalues are the roots of the characteristic polynomial det(λI − A). For “2 1; 1 2” it is λ² − 4λ + 3, so the eigenvalues are 1 and 3. The calculator shows the polynomial and lists the eigenvectors.

Sources and legal basis

As of: · Editorial policy

Related tools