Matrix determinant calculator guide
The determinant is a scalar associated with a square matrix. A zero determinant identifies a singular matrix, while a nonzero determinant identifies a nonsingular matrix.
This calculator uses elimination to transform a copy of the entered matrix. Adding a multiple of one row to another does not change the determinant, while every row interchange reverses its sign. The resulting triangular diagonal product, adjusted for swaps, gives the determinant.
How to use the determinant calculator
- Select the order: Choose a square matrix size from 2 by 2 through 5 by 5.
- Enter every entry: Provide a finite number for each labeled row and column position.
- Calculate: Select Calculate determinant to run partial-pivoting elimination.
- Interpret zero carefully: A displayed zero means the computed matrix is singular; close-to-zero floating-point results may require application-specific tolerance.
Formula and variables
After row elimination produces an upper-triangular matrix U, multiply its diagonal entries and reverse the sign once for each of the s row swaps.
det(A) = (-1)^s product of u_ii- A — Input matrix
- The square matrix whose determinant is required.
- U — Upper-triangular matrix
- The matrix produced by elimination without scaling pivot rows.
- s — Row swaps
- The number of row interchanges made while choosing pivots.
- u_ii — Diagonal pivots
- The diagonal entries of U.
Calculate a 2 by 2 determinant
Find the determinant of the matrix with rows [4, 7] and [2, 6].
- First row
- 4, 7
- Second row
- 2, 6
- det(A) = ad - bc
- det(A) = (4)(6) - (7)(2)
- det(A) = 24 - 14
Result: The determinant is 10.
Because the determinant is nonzero, the matrix is nonsingular and has an inverse.
Understanding your results
Nonzero result
The matrix is nonsingular. For a square coefficient matrix, this supports a unique solution to the corresponding linear system.
Zero result
The matrix is singular. Its rows or columns are linearly dependent, so it has no inverse.
Assumptions
- The input is a square matrix between order 2 and order 5 in the interface.
- Every entry is a finite real number.
- Calculations use JavaScript double-precision floating-point arithmetic.
Limitations
- The interface does not accept complex-valued matrix entries.
- It does not compute eigenvalues, eigenvectors, inverses, or solutions to a full linear system.
- Numerically ill-conditioned matrices may produce a small nonzero floating-point result even when an exact symbolic determinant would be zero.
- The maximum interface order is 5 by 5.
Common mistakes
- Entering rows and columns in the wrong positions.
- Using a non-square array of coefficients.
- Forgetting that a row swap changes the determinant sign.
- Assuming a small rounded value is exactly zero without considering numeric tolerance.
- Confusing the determinant with the sum or trace of the matrix.
Practical use cases
Invertibility check
Determine whether a square matrix has a nonzero determinant and therefore an inverse.
Linear systems
Check the coefficient determinant before using Cramer’s rule or related determinant methods.
Planning and decision guide
Keep full precision
Use the unrounded value when a determinant feeds another calculation. For sensitive scientific work, compare against a justified tolerance rather than relying only on the displayed decimal.
Frequently asked questions
What does a determinant of zero mean?
It means the square matrix is singular and has no inverse.
Can I calculate a determinant for a rectangular matrix?
No. A determinant is defined only for a square matrix.
How is a 2 by 2 determinant calculated?
For rows [a, b] and [c, d], the determinant is ad minus bc.
Why does swapping two rows change the sign?
A determinant is alternating: interchanging two rows multiplies its value by negative one.
Why use elimination instead of expanding minors?
Elimination scales much better as matrix size grows and, with partial pivoting, avoids dividing by a zero pivot when a usable row is available.
Sources and review
- Solve Systems of Equations Using Determinants — OpenStax Intermediate Algebra 2e. Accessed 2026-08-29.
- Solving Systems with Cramer’s Rule — OpenStax College Algebra 2e. Accessed 2026-08-29.
Reviewed 2026-08-29.