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)| Argument | What it means | |
|---|---|---|
array | Required | A 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
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Matrix | Col 1 | Col 2 | ||
| 2 | Row 1 | 4 | 2 | 14 | |
| 3 | Row 2 | 3 | 5 |
Result: 14
4 × 5 − 2 × 3 = 20 − 6 = 14.
2Can a production plan be solved uniquely?
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Recipe (kg) | Flour | Sugar | Butter | ||
| 2 | Cake | 2 | 1 | 1 | -1 | |
| 3 | Biscuits | 1 | 3 | 2 | ||
| 4 | Bread | 1 | 0 | 0 |
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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#VALUE! | The range is not square, or contains blanks or text. | Use a square range filled with numbers. |
Tiny non-zero result | Floating-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.
| Language | Function name |
|---|---|
| Czech | DETERMINANT |
| Dutch | DETERMINANTMAT |
| French | DETERMAT |
| German | MDET |
| Italian | MATR.DETERM |
| Polish | WYZNACZNIK.MACIERZY |
| Portuguese (Brazil) | MATRIZ.DETERM |
| Portuguese (Portugal) | MATRIZ.DETERM |
| Russian | МОПРЕД |
| Turkish | DETERMİNANT |