Excel function

MINVERSEfunction

Returns the inverse of a square matrix.

All versions
=MINVERSE(A2:B3)
A
B
C
D
E
F
G
H
I
J
K
1
2
3
4

Drag the corner dots to change array. Widen the range to A2:C4. A matrix with a determinant of 0 has no inverse: #NUM!. Try breaking it on purpose to see the errors.

Result

{-2,1;1.5,-0.5}

array
A2:B3Drag the corner dots on the table

A square range of numbers (rows = columns).

What is the MINVERSE function?

=MINVERSE(array)

MINVERSE returns the inverse of a square matrix: the matrix that gives the identity matrix (1s on the diagonal) when multiplied by the original.

If the determinant is 0 there is no inverse and you get #NUM!. A2:C4 is matrix 1, E2:G4 is matrix 2, and the result fills from column I. Drag a range to change the matrix size.

Arguments

array
A range of numbers with as many rows as columns.

MINVERSE examples

  1. Example 1. 2×2 inverse

    =MINVERSE(A2:B3)

    {-2,1;1.5,-0.5}.

  2. Example 2. Solve a system of equations

    =MMULT(MINVERSE(A2:B3), D2:D3)

    Multiply the inverse of the coefficient matrix by the constants to get the solution.

Common mistakes

FAQ

How do I check it?
See whether =MMULT(original, inverse) is the identity matrix.
Tiny rounding errors
Results can have very small errors, so wrapping them in ROUND can help.