Adawaty

Matrix Calculator

Add, subtract, and multiply matrices up to 6×6 — with transpose, determinant, inverse, rank, and a linear-system solver.

Runs in your browser — files never leave your device

How it works

  1. Pick an operation — A+B, A−B, A×B, transpose, determinant, inverse, rank, or solve A·x = b.

  2. Set each matrix's size with the row and column steppers (1×1 up to 6×6).

  3. Fill in the entries — blank cells count as 0, so sparse matrices are quick to type.

  4. 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