Matrix Calculator
Add, subtract and multiply matrices, or compute the determinant, inverse, transpose and rank of a matrix — up to 6×6, with the working shown.
Matrices
Click any cell and type a number. Decimals and scientific notation (e.g. 2.5, -1e-3) are accepted.
How it works
Determinants, inverses and ranks are computed by Gaussian elimination with partial pivoting in double precision — the same algorithm used by professional numerical libraries. The inverse is found by solving AX = I column by column. Singular matrices are detected via rank deficiency, not by a lucky division. Use it to check homework, verify a hand-computed inverse (A × A⁻¹ should give the identity), or test invertibility before solving a system — a zero determinant means it isn't invertible.
Frequently asked questions
What is the largest matrix I can enter?
Up to 6×6. That covers nearly all textbook and homework problems while keeping every operation instant. Larger problems belong in NumPy, MATLAB, or Julia.
What does "singular matrix" mean?
A square matrix with determinant zero — it has no inverse and its rank is smaller than its size. The calculator reports this instead of dividing by zero.
How is the inverse computed?
By solving AX = I with Gaussian elimination and partial pivoting, one column at a time — the numerically stable route, rather than the adjugate formula which is only good for 2×2 by hand.
Is my data sent to a server?
No. Every computation runs in JavaScript in your own browser. Nothing you type ever leaves your device.