Math & trig function

MDETERM function

Returns the determinant of a square matrix, showing whether a system of equations has a unique solution.

Available in All versions of Excel, Excel for the web, Excel for Mac

In every Excel versionWorks in Google Sheets

Syntax

MDETERM(array)
ArgumentWhat it means
arrayRequiredA square range or array of numbers (same number of rows and columns).

Returns: One number: the determinant.

How MDETERM works

The determinant is a single number calculated from a square table of numbers. For a 2 × 2 matrix [[a, b], [c, d]] it is a×d − b×c. Its most practical meaning: if the determinant is 0, the rows are not independent and the matching system of equations has no unique solution, so MINVERSE cannot invert the matrix. A non-zero value means you can solve it.

Other uses include areas and volumes (the determinant of two side vectors gives the area of a parallelogram) and checking models in economics and engineering. The range must be square and contain only numbers; empty cells or text return #VALUE!. Results are computed with floating point, so a theoretically zero determinant may show as a tiny number like 1E-16.

Examples

1Determinant of a 2 × 2 matrix

E2fx=MDETERM(B2:C3)
ABCDE
1MatrixCol 1Col 2
2Row 14214
3Row 235

Result: 14

4 × 5 − 2 × 3 = 20 − 6 = 14.

2Can a production plan be solved uniquely?

F2fx=MDETERM(B2:D4)
ABCDEF
1Recipe (kg)FlourSugarButter
2Cake211-1
3Biscuits132
4Bread100

Result: -1

The recipes use flour, sugar and butter in independent proportions, so the determinant is non-zero (−1) and the quantities of each product can be worked out from total ingredient use with MINVERSE and MMULT.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!The range is not square, or contains blanks or text.Use a square range filled with numbers.
Tiny non-zero resultFloating-point rounding, e.g. 6.66E-16 instead of 0.Test with ABS(MDETERM(...))<1E-9.

Tips

  • Before using MINVERSE, check that MDETERM is not 0.
  • Swapping two rows changes the sign of the determinant.

Google Sheets

MDETERM also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

MDETERM in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechDETERMINANT
DutchDETERMINANTMAT
FrenchDETERMAT
GermanMDET
ItalianMATR.DETERM
PolishWYZNACZNIK.MACIERZY
Portuguese (Brazil)MATRIZ.DETERM
Portuguese (Portugal)MATRIZ.DETERM
RussianМОПРЕД
TurkishDETERMİNANT