Matrix Calculator
Add, subtract, and multiply matrices up to 6×6 — with transpose, determinant, inverse, rank, and a linear-system solver.
How it works
-
Pick an operation — A+B, A−B, A×B, transpose, determinant, inverse, rank, or solve A·x = b.
-
Set each matrix's size with the row and column steppers (1×1 up to 6×6).
-
Fill in the entries — blank cells count as 0, so sparse matrices are quick to type.
-
Read the result instantly; values are rounded to 6 significant digits.
Frequently asked questions
Which matrix dimensions can be combined?
Addition and subtraction need A and B to share the same shape. Multiplication needs A's column count to equal B's row count. Determinant, inverse, and solving need a square matrix — the calculator explains any mismatch instead of failing.
What happens with a singular matrix?
If the determinant is 0 the matrix has no inverse and A·x = b has no unique solution; you get a clear message instead of a cryptic error. The rank operation tells you how degenerate the matrix is.
How is rank computed?
By Gaussian elimination with partial pivoting; pivots smaller than 10⁻¹⁰ are treated as zero, which keeps floating-point noise from inflating the rank.
Are my matrices sent to a server?
No — calculations run entirely in your browser — nothing is uploaded. The page keeps working even if you go offline after it loads.
Related tools
Equation Solver
Solve polynomials up to cubic (with complex roots), 2×2/3×3 linear systems, and any f(x) = 0 numerically.
Scientific Calculator
Type full expressions with sin, cos, log, √, π and more — evaluated instantly, with history and an ans variable.
Graph Plotter
Plot up to three functions of x on one grid — zoom, set the domain, and download the graph as a PNG.
Statistics Calculator
Mean, median, mode, standard deviation, quartiles, and outliers — with a histogram and box plot drawn from your data.