Matrix Calculator

Determinant, inverse, rank, transpose and matrix arithmetic

Calculate the determinant, inverse, rank, transpose or power of a matrix, or add, subtract and multiply two matrices - up to 12 × 12.
Share
Try an example:
Your result will appear here as you type.

About Matrix Calculator

Formula

det [[a, b], [c, d]] = ad − bc

A⁻¹ = adj(A) ÷ det(A)

Worked examples

3 × 3 determinant

det [[6, 1, 1], [4, −2, 5], [2, 8, 7]] = −306.

2 × 2 inverse

[[4, 7], [2, 6]] has det 10, inverse [[0.6, −0.7], [−0.2, 0.4]].

How it works

  1. Determinant, rank and inverse use Gaussian elimination with row swaps for accuracy.
  2. A × B needs as many columns in A as rows in B.

What you need

  • One or two matrices, one row per line.

Tips

  • A matrix has an inverse only if its determinant is not 0.

Limitations

  • Decimal arithmetic, so results can show tiny rounding like 0.9999999999.

Runs in your browser. Calculations run in your browser - nothing you enter is sent anywhere.

Definitions

Determinant
A number that says whether a square matrix can be inverted.
Rank
The number of independent rows.

Frequently asked questions

Why is A × B different from B × A?+

Matrix multiplication is not commutative - the order changes which rows meet which columns.

Was this calculator helpful?