Invert Matrix
Calculate the inverse of a square matrix using Gauss-Jordan elimination.
Paste in a square matrix and get its inverse back, computed through Gauss-Jordan elimination with partial pivoting. Works on 2x2s, 3x3s, and larger — and if the matrix is singular (determinant zero), you'll get a clear error instead of junk numbers. And everything runs in your browser. Nothing gets uploaded.
Frequently Asked Questions
What matrices can be inverted?
Only square matrices with a non-zero determinant are invertible. If the determinant is zero (singular matrix), the tool will show an error.
How do I enter the matrix?
Enter one row per line. Separate values with spaces or commas. The tool auto-detects the matrix dimensions.
What algorithm is used?
Gauss-Jordan elimination with partial pivoting, which augments the matrix with the identity and row-reduces to find the inverse.
How accurate are the results?
Results use JavaScript floating-point arithmetic (64-bit double precision). Values very close to zero are displayed as 0 for readability.