Skip to main content

Inverse Matrix Calculator

Our free linear algebra calculator solves inverse matrix problems. Get worked examples, visual aids, and downloadable results.

Skip to calculator
Mathematics

Inverse Matrix Calculator

Calculate the inverse of 2x2 and 3x3 matrices. Find determinant, adjugate, condition number, and verify invertibility with step-by-step results.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
Determinant
5
Matrix is invertible
Inverse Matrix
0.6000
-0.2000
0
-0.2000
0.4000
0
0
0
1
Adjugate Matrix
3
-1
0
-1
2
0
0
0
5
Condition Number
5.0596
Trace
6
Your Result
Determinant: 5 | Condition Number: 5.0596
Share Your Result
Understand the Math

Formula

A^(-1) = (1/det(A)) * adj(A)

Where A^(-1) is the inverse matrix, det(A) is the determinant of A, and adj(A) is the adjugate (transpose of the cofactor matrix). The inverse exists only when det(A) is not zero.

Last reviewed: December 2025

Worked Examples

Example 1: 2x2 Matrix Inverse

Find the inverse of the matrix [[4, 7], [2, 6]].
Solution:
Determinant = 4(6) - 7(2) = 24 - 14 = 10 Adjugate = [[6, -7], [-2, 4]] Inverse = (1/10) * [[6, -7], [-2, 4]] = [[0.6, -0.7], [-0.2, 0.4]] Verification: [[4,7],[2,6]] * [[0.6,-0.7],[-0.2,0.4]] = [[1,0],[0,1]]
Result: Inverse: [[0.6, -0.7], [-0.2, 0.4]] with determinant = 10

Example 2: 3x3 Matrix Inverse

Find the inverse of [[2, 1, 0], [1, 3, 0], [0, 0, 1]].
Solution:
Determinant = 2(3*1 - 0*0) - 1(1*1 - 0*0) + 0 = 6 - 1 = 5 Cofactor matrix computed for all 9 entries Adjugate = [[3, -1, 0], [-1, 2, 0], [0, 0, 5]] Inverse = (1/5) * [[3, -1, 0], [-1, 2, 0], [0, 0, 5]] = [[0.6, -0.2, 0], [-0.2, 0.4, 0], [0, 0, 1]]
Result: Inverse: [[0.6, -0.2, 0], [-0.2, 0.4, 0], [0, 0, 1]] with determinant = 5
Expert Insights

Background & Theory

The Inverse Matrix Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.

History

The history behind the Inverse Matrix Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.

Key Features

  • Solves linear, quadratic, and higher-degree polynomial equations step by step, returning all real and complex roots with full working shown.
  • Simplifies fractions to lowest terms and computes ratios and proportions, including cross-multiplication checks and equivalent fraction generation.
  • Performs complete prime factorization of any integer and computes the Greatest Common Divisor and Least Common Multiple for sets of numbers.
  • Handles matrix operations including addition, scalar multiplication, matrix multiplication, determinant calculation, and full matrix inversion for square matrices.
  • Evaluates all standard trigonometric functions and their inverses in degrees or radians, and verifies common trigonometric identities symbolically.
  • Calculates permutations, combinations, and binomial coefficients for combinatorics problems, supporting both formula display and step-by-step breakdown.
  • Converts integers between binary, octal, decimal, and hexadecimal bases instantly, with optional display of the positional value expansion.
  • Computes the sum of arithmetic and geometric sequences given the first term, common difference or ratio, and number of terms, with formula derivation.

Share this calculator

Explore More

Frequently Asked Questions

The inverse of a matrix A is another matrix, denoted A-inverse, such that when multiplied together they produce the identity matrix. A matrix inverse exists if and only if the determinant of the matrix is non-zero, meaning the matrix is non-singular. Square matrices that have an inverse are called invertible or non-singular matrices. For a 2x2 matrix, the inverse is computed by swapping the diagonal elements, negating the off-diagonal elements, and dividing by the determinant. For larger matrices, methods like cofactor expansion, Gauss-Jordan elimination, or LU decomposition are typically used to find the inverse efficiently.
For a 3x3 matrix, the inverse is found using the matrix of cofactors (adjugate) divided by the determinant. First, compute the determinant using cofactor expansion along the first row. Then calculate each of the nine cofactors by finding the determinant of the 2x2 submatrix obtained by removing that element row and column, applying the checkerboard sign pattern. The transpose of this cofactor matrix gives the adjugate. Finally, divide each element of the adjugate by the determinant. This method is known as the classical adjoint method and is exact, though computationally expensive for matrices larger than 3x3.
A singular matrix is one whose determinant equals zero, which means it has no inverse. Geometrically, a singular matrix collapses at least one dimension, mapping some nonzero vectors to the zero vector. This means the linear transformation represented by the matrix is not bijective and cannot be reversed. Common causes include having a row or column of all zeros, having two identical rows or columns, or having one row that is a scalar multiple or linear combination of other rows. In practical applications, near-singular matrices with very small determinants can cause numerical instability and should be handled with care.
Matrix inversion is fundamental in solving systems of linear equations, where x = A-inverse times b gives the solution directly. In computer graphics, inverse matrices are used for coordinate transformations, camera projections, and undoing rotations or scaling operations. In statistics, the inverse of the covariance matrix appears in multivariate normal distributions and in the least squares regression formula. Control systems engineering uses matrix inversions for state-space analysis and controller design. Cryptography systems like the Hill cipher use modular matrix inversion for encoding and decoding messages. Economics uses input-output analysis relying on Leontief inverse matrices.
The determinant and inverse are intimately connected. A matrix has an inverse if and only if its determinant is non-zero. The inverse is computed as the adjugate matrix divided by the determinant, so the determinant appears as a scaling factor in every element of the inverse. When the determinant is very small but non-zero, the inverse elements become very large, indicating numerical instability. The determinant of the inverse equals the reciprocal of the original determinant, and the determinant of the product of two matrices equals the product of their determinants. These properties make the determinant a quick screening tool for invertibility.
The computational complexity of matrix inversion grows rapidly with matrix size. For a 2x2 matrix, inversion requires just a few arithmetic operations using a direct formula. A 3x3 matrix requires computing nine cofactors and a determinant, involving dozens of operations. For an n-by-n matrix, naive cofactor expansion has factorial time complexity, making it impractical beyond small sizes. In practice, algorithms like Gaussian elimination with partial pivoting achieve cubic time complexity, meaning doubling the matrix size increases computation time by roughly eight times. For very large matrices, iterative methods or specialized decompositions like LU or QR are preferred.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

A^(-1) = (1/det(A)) * adj(A)

Where A^(-1) is the inverse matrix, det(A) is the determinant of A, and adj(A) is the adjugate (transpose of the cofactor matrix). The inverse exists only when det(A) is not zero.

Worked Examples

Example 1: 2x2 Matrix Inverse

Problem: Find the inverse of the matrix [[4, 7], [2, 6]].

Solution: Determinant = 4(6) - 7(2) = 24 - 14 = 10\nAdjugate = [[6, -7], [-2, 4]]\nInverse = (1/10) * [[6, -7], [-2, 4]] = [[0.6, -0.7], [-0.2, 0.4]]\nVerification: [[4,7],[2,6]] * [[0.6,-0.7],[-0.2,0.4]] = [[1,0],[0,1]]

Result: Inverse: [[0.6, -0.7], [-0.2, 0.4]] with determinant = 10

Example 2: 3x3 Matrix Inverse

Problem: Find the inverse of [[2, 1, 0], [1, 3, 0], [0, 0, 1]].

Solution: Determinant = 2(3*1 - 0*0) - 1(1*1 - 0*0) + 0 = 6 - 1 = 5\nCofactor matrix computed for all 9 entries\nAdjugate = [[3, -1, 0], [-1, 2, 0], [0, 0, 5]]\nInverse = (1/5) * [[3, -1, 0], [-1, 2, 0], [0, 0, 5]] = [[0.6, -0.2, 0], [-0.2, 0.4, 0], [0, 0, 1]]

Result: Inverse: [[0.6, -0.2, 0], [-0.2, 0.4, 0], [0, 0, 1]] with determinant = 5

Frequently Asked Questions

What is the inverse of a matrix and when does it exist?

The inverse of a matrix A is another matrix, denoted A-inverse, such that when multiplied together they produce the identity matrix. A matrix inverse exists if and only if the determinant of the matrix is non-zero, meaning the matrix is non-singular. Square matrices that have an inverse are called invertible or non-singular matrices. For a 2x2 matrix, the inverse is computed by swapping the diagonal elements, negating the off-diagonal elements, and dividing by the determinant. For larger matrices, methods like cofactor expansion, Gauss-Jordan elimination, or LU decomposition are typically used to find the inverse efficiently.

How is the inverse of a 3x3 matrix calculated?

For a 3x3 matrix, the inverse is found using the matrix of cofactors (adjugate) divided by the determinant. First, compute the determinant using cofactor expansion along the first row. Then calculate each of the nine cofactors by finding the determinant of the 2x2 submatrix obtained by removing that element row and column, applying the checkerboard sign pattern. The transpose of this cofactor matrix gives the adjugate. Finally, divide each element of the adjugate by the determinant. This method is known as the classical adjoint method and is exact, though computationally expensive for matrices larger than 3x3.

What does it mean when a matrix is singular?

A singular matrix is one whose determinant equals zero, which means it has no inverse. Geometrically, a singular matrix collapses at least one dimension, mapping some nonzero vectors to the zero vector. This means the linear transformation represented by the matrix is not bijective and cannot be reversed. Common causes include having a row or column of all zeros, having two identical rows or columns, or having one row that is a scalar multiple or linear combination of other rows. In practical applications, near-singular matrices with very small determinants can cause numerical instability and should be handled with care.

What are common applications of matrix inversion?

Matrix inversion is fundamental in solving systems of linear equations, where x = A-inverse times b gives the solution directly. In computer graphics, inverse matrices are used for coordinate transformations, camera projections, and undoing rotations or scaling operations. In statistics, the inverse of the covariance matrix appears in multivariate normal distributions and in the least squares regression formula. Control systems engineering uses matrix inversions for state-space analysis and controller design. Cryptography systems like the Hill cipher use modular matrix inversion for encoding and decoding messages. Economics uses input-output analysis relying on Leontief inverse matrices.

What is the relationship between determinant and inverse?

The determinant and inverse are intimately connected. A matrix has an inverse if and only if its determinant is non-zero. The inverse is computed as the adjugate matrix divided by the determinant, so the determinant appears as a scaling factor in every element of the inverse. When the determinant is very small but non-zero, the inverse elements become very large, indicating numerical instability. The determinant of the inverse equals the reciprocal of the original determinant, and the determinant of the product of two matrices equals the product of their determinants. These properties make the determinant a quick screening tool for invertibility.

How does matrix size affect inverse computation difficulty?

The computational complexity of matrix inversion grows rapidly with matrix size. For a 2x2 matrix, inversion requires just a few arithmetic operations using a direct formula. A 3x3 matrix requires computing nine cofactors and a determinant, involving dozens of operations. For an n-by-n matrix, naive cofactor expansion has factorial time complexity, making it impractical beyond small sizes. In practice, algorithms like Gaussian elimination with partial pivoting achieve cubic time complexity, meaning doubling the matrix size increases computation time by roughly eight times. For very large matrices, iterative methods or specialized decompositions like LU or QR are preferred.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy