Math & Everyday
Matrix Calculator
Add, multiply, transpose, invert, or find the determinant.
🔒 Runs entirely in your browser — nothing here is ever uploaded
CalcoTools · Matrix Calculator · generated 8/23/2026, 1:05:37 PM
About the Matrix Calculator
Performs matrix addition, subtraction, multiplication, transposition, determinant, and inversion for matrices of any compatible size, entered row by row.
How to use it
- Enter Matrix A (and Matrix B, if the operation needs it), one row per line.
- Choose an Operation.
- Read the result below, and copy it with the copy button.
Formula
Determinant uses cofactor expansion. Inverse uses the adjugate matrix divided by the determinant. Multiplication follows standard row-by-column matrix multiplication rules.
Worked example
For matrix A = [[1,2],[3,4]], the determinant is (1×4) − (2×3) = −2.
Recommendations
- • Matrix dimensions must be compatible for the chosen operation — multiplication requires A's column count to match B's row count.
- • A matrix with a zero determinant has no inverse — the tool flags this as a singular matrix.
- • Enter each row on its own line, with values separated by commas or spaces.
Frequently asked questions
A matrix is only invertible if its determinant is nonzero — matrices with a zero determinant (singular matrices) don't have a mathematical inverse.