Matrix Inverse Calculator
Compute the inverse of a square matrix using Gauss-Jordan elimination, singular matrices flagged.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Calculated locally in your browser. Your matrix never leaves this tab.
How to Use Matrix Inverse Calculator
- Enter a square matrix. One row per line, values separated by spaces.
- Invert. The inverse is computed by Gauss-Jordan elimination.
- Read the result. A singular matrix is reported as having no inverse.
- Copy the result. Click Copy result. It all runs in your browser.
Example: the inverse of a 2×2 matrix
Enter the matrix one row per line, with spaces between the numbers:
4 7 2 6
The tool returns:
0.6 -0.7 -0.2 0.4
To check it, multiply the two matrices: you get the identity matrix (1 0 on the first row, 0 1 on the second). A 2×2 inverse is also easy by hand: swap a and d, change the sign of b and c, then divide every number by the determinant ad − bc. Here the determinant is 4 × 6 − 7 × 2 = 10.
How the calculator works
It uses Gauss-Jordan elimination. The identity matrix is written next to yours, and row operations turn your side into the identity; the other side is then the inverse. In each column it picks the largest available number as the pivot (partial pivoting), which keeps rounding errors small.
Limits
- Square matrices only, from 2×2 up to 10×10.
- A matrix whose determinant is 0 has no inverse. For example, in 1 2 / 2 4 the second row is twice the first, and the tool reports that it is singular instead of returning numbers.
- Results are decimals, not fractions, so 1/3 appears as 0.3333…, and nearly singular matrices can show small rounding differences.
Frequently Asked Questions
Which matrices have an inverse?
Only square matrices whose determinant is not zero. The inverse undoes the matrix when the two are multiplied.
What if my matrix is singular?
The tool detects it and reports that there is no inverse, rather than returning meaningless numbers.
What size is supported?
Up to ten by ten, using Gauss-Jordan elimination with partial pivoting.
Is anything uploaded?
No. The calculation runs in your browser, so your matrix never leaves the tab.
Related Tools
Generate Identity Matrix →
Generate an identity matrix of any size up to 50 by 50, ones on…
Random Matrix Generator →
Generate a matrix of random whole numbers with the rows, columns, and value range…
Matrix Addition Calculator →
Add two matrices of the same size, element by element, in your browser.
Matrix Determinant →
Compute the determinant of a square matrix using a stable elimination method.
Matrix Multiplication Calculator →
Multiply two matrices, where the columns of A must equal the rows of B.
Matrix Subtraction Calculator →
Subtract one matrix from another of the same size, element by element.
Transpose a Matrix Online →
Transpose a matrix so its rows become columns and its columns become rows.
Age Calculator - Years, Months and Days →
Free age calculator. Find your exact age in years, months and days from your…
Calculate Factorial →
Calculate Factorial up to n=5,000 with exact BigInt arithmetic. Free, offline, client-side - includes…
Date Difference Calculator - Days Between →
Free date difference calculator. Find the time between two dates in years, months and…
Discount Calculator - Sale Price and Savings →
Works out what you pay after a discount, including "extra % off" stacked on…
Find All Divisors →
Find every divisor of any integer up to 1 billion - divisor count, sum,…