Matrix Calculator
Add, subtract, multiply, transpose, determinant, and inverse for 2×2 and 3×3 matrices.
Matrix size
Operation
Matrix A
Matrix B
Result
How the matrix calculator works
All operations run entirely in your browser using standard linear algebra formulas. Addition and subtraction add or subtract corresponding elements. Multiplication uses the dot-product row × column formula (A must be m×n and B must be n×p; for square matrices the output is the same size).
Determinant for a 2×2 uses ad−bc; for a 3×3 it expands along the first row using cofactors. Inverse divides the adjugate (transposed cofactor matrix) by the determinant — if the determinant is 0 the matrix is singular and has no inverse. Transpose flips rows and columns.
For more number tools see the Scientific Calculator and the Standard Deviation Calculator.
Private & free — this tool runs entirely in your browser.