Matrix Determinant Calculator
Calculate the determinant of a square matrix up to 6 × 6 with cofactor expansion, trace and an invertibility check. For a 2 × 2 matrix, det = ad − bc. Example: with square matrix 2 1 3 / 0 4 5 / 1 0 6, the result is Determinant = 41.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
How do you use the Matrix Determinant Calculator?
Type a square matrix with entries separated by spaces or commas and rows separated by a slash or a new line, for example 2 1 3 / 0 4 5 / 1 0 6. The calculator computes the determinant by cofactor expansion, reports the trace and tells you whether the matrix is invertible.
What formula does the Matrix Determinant Calculator use?
For a 2 × 2 matrix, det = ad − bc. For larger matrices, expand along a row: det A = Σ (−1)^(1+j) · a₁ⱼ · det(M₁ⱼ) where M₁ⱼ is the minor obtained by deleting row 1 and column j. A matrix is invertible exactly when its determinant is non-zero.
Worked example: Square matrix 2 1 3 / 0 4 5 / 1 0 6
For rows (2, 1, 3), (0, 4, 5), (1, 0, 6): det = 2(24 − 0) − 1(0 − 5) + 3(0 − 4) = 48 + 5 − 12 = 41. Since 41 ≠ 0 the matrix is invertible and scales volumes by a factor of 41.
With the default values the calculator returns Determinant = 41; Matrix size = 3 × 3; Singular (not invertible)? = No, the matrix is invertible; Trace (sum of the diagonal) = 12.
Where Is This Calculation Used?
The determinant measures how a linear transformation scales area (2 × 2) or volume (3 × 3) and its sign shows whether orientation flips. It decides whether linear systems have unique solutions and appears in Cramer’s rule, eigenvalue equations and change-of-variable formulas.
What are the most common mistakes with the Matrix Determinant Calculator?
- Forgetting the alternating signs in the expansion.
- Trying to take the determinant of a non-square matrix.
- Assuming det(A + B) = det A + det B; it is not additive.
What Is the Tested Example for the Default Values?
This example is computed by the same code that powers the calculator above, so you can compare it with your own numbers or a textbook answer.
| Input: Square matrix | 2 1 3 / 0 4 5 / 1 0 6 |
|---|---|
| Determinant | 41 |
| Matrix size | 3 × 3 |
| Singular (not invertible)? | No, the matrix is invertible |
| Trace (sum of the diagonal) | 12 |
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
What is the determinant of a matrix?
A single number that summarises how the matrix scales volume and whether it is invertible.
What does a determinant of zero mean?
The matrix is singular: its rows are dependent and it has no inverse.
How do I enter a matrix?
Write each row with spaces between entries and separate rows with a slash or a new line.