Maths & numbers

Small matrix calculator

Add, multiply, transpose, invert or find a determinant for matrices up to 6 × 6.

Small matrix calculator
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Accepts rectangular matrices up to 6 × 6 with finite entries of magnitude at most 10¹², and non-zero entries of at least 10⁻¹². Addition/subtraction require matching shapes; multiplication requires A columns=B rows. Determinants use elimination with partial pivoting; inverses use pivoted Gauss–Jordan elimination. Exact zero pivots are singular in this numeric model. Inverse output includes an infinity-norm condition estimate and warns above 10¹²; arithmetic and displayed values are floating-point approximations.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Operation
A × B
Matrix A: rows on new lines, entries separated by spaces or commas
1, 2
3, 4
Matrix B (needed for add, subtract and multiply)
5, 6
7, 8

Example result

Example result
RowColumn 1Column 2
11922
24350

Floating-point matrix arithmetic; results are approximate.