Matrix Calculator

Pick a size, fill in matrix A (and B, if the operation needs it) — the result updates as you type.

Matrix A
Matrix B

How it works

Addition and subtraction combine matrices A and B entry by entry, so both must be the same size. Multiplication combines A's rows with B's columns, which only works when A's column count matches B's row count — for two square matrices of the same size (as above) that's always true. The determinant is computed by recursive cofactor expansion along the first row, and only exists for square matrices. Transpose flips a matrix across its diagonal, turning rows into columns.