n×n Inverse Matrix Calculator (Gauss-Jordan)
Compute the inverse of an n×n square matrix via Gauss-Jordan elimination, with determinant and invertibility check.
Input
Enter one matrix row per line, separating entries with spaces or commas (square matrices only).
Result
Matrix size
2×2
Size
2×2
Determinant
10
Invertible
Yes
Inverse matrix A⁻¹
The inverse obtained by Gauss-Jordan reduction of the augmented matrix [A|I].
| 0.6 | -0.7 |
| -0.2 | 0.4 |
How it works
- The inverse is found by forming the augmented matrix [A|I] and applying Gauss-Jordan elimination (row reduction) until the left half A becomes the identity; the right half is then the inverse.
- Partial pivoting (choosing the row with the largest absolute pivot in each column) is used to improve numerical stability.
- If every pivot candidate is effectively zero (determinant = 0), the matrix is singular and has no inverse.
- The determinant is obtained from the product of the pivots used during elimination, adjusted by the sign of row swaps.
- Enter one matrix row per line with entries separated by spaces or commas. Only square matrices (equal rows and columns) can be inverted.
Reviews
Tell us what you think of this calculator.
Write a review
- Home
n×n Inverse Matrix Calculator (Gauss-Jordan)