Back to home

Matrix Calculator

Matrix multiplication, addition, transpose, determinant, inverse, rank and trace

Operation
A: 2 × 2 B: 2 × 2
Matrix A
2 × 2
Matrix B
2 × 2

Rows split on newlines or semicolons, values on spaces or commas — pasting [1, 2; 3, 4] works too. Every operation except A × B needs A to be square.

Result
[25, 36]
[20, 28]
2 rows

The determinant uses partial-pivot elimination and the inverse uses Gauss-Jordan; a singular matrix raises an error instead of returning amplified rounding noise. Everything runs in your browser, the numbers are never uploaded.