Math calculators

Determinant Calculator

Updated Sep 1, 2026 By Infinity Calculator
Rate Formulas
Matrix Setup
Supports integers, decimals, fractions (2/3), complex (3+2i), variables (a, x)
|
|
3×3 Integer 4×4 Diagonal 2×2 Fractions 2×2 Complex 2×2 Symbolic 3×3 Symmetric 5×5 Circulant 3×3 with x

Determinant Result
det(A) =
-12
Properties
Input Matrix
Step-by-Step Solution
Cofactor Contribution (Row 1 Expansion)

Introduction

The determinant is a single number that you can calculate from a square matrix. It tells you important things about the matrix, like whether the matrix has an inverse or whether a system of equations has a unique solution. If the determinant equals zero, the matrix is called "singular," and it cannot be inverted. Determinants are used throughout linear algebra, from solving systems of linear equations to finding eigenvalues and understanding geometric transformations.

This Determinant Calculator lets you quickly find the determinant of any square matrix. Just enter your matrix values, and the tool computes the determinant. It works for 2×2, 3×3, and larger matrices, saving you time and helping you avoid errors that are common with manual calculation. This calculator makes the process simple.

How to Use Our Determinant Calculator

Enter the values of your square matrix, and this calculator will find the determinant. It shows the final answer along with step-by-step solutions using methods like cofactor expansion, row reduction, and Sarrus' rule.

Matrix Size (n×n): Choose how big your square matrix is. You can type a number from 1 to 99 in the size field, or click one of the quick template buttons (2×2, 3×3, 4×4, or 5×5) to set a common size right away.

Input Mode: Pick how you want to enter your matrix. Use Grid mode to type values directly into each cell of the matrix one at a time. Use Text mode to type or paste the entire matrix at once using bracket notation, such as [[1,2,3],[4,5,6],[7,8,9]]. The text mode also understands natural language prompts like "determinant of [[1,2],[3,4]]."

Matrix Entries: Fill in every cell of the matrix with a value. The calculator supports whole numbers, decimals, fractions like 2/3, complex numbers like 3+2i, and even variables like a, x, or d for symbolic determinant results.

Example Matrices: Click any of the example chips below the input area to instantly load a sample matrix and see how the calculator works. Options include integer, fraction, complex, symbolic, symmetric, and circulant matrices of various sizes.

Calculate Determinant: Press the Calculate Determinant button to run the computation. The calculator will display the determinant value, key matrix properties such as whether the matrix is singular or invertible, and a full step-by-step breakdown of the solution. For numeric matrices up to 10×10, a bar chart shows how much each cofactor from the first row contributes to the final determinant.

Solution Methods: After calculating, use the method tabs to switch between different step-by-step approaches. Depending on matrix size, you may see cofactor expansion, Gaussian row reduction, Sarrus' rule for 3×3 matrices, or the direct ad − bc formula for 2×2 matrices.

Reset: Click the Reset button to clear your entries and return the calculator to its default 3×3 example matrix.

What Is a Determinant?

The determinant is a single number you can calculate from a square matrix (a grid of numbers with equal rows and columns). It tells you important things about the matrix and the system of equations it represents. If the determinant equals zero, the matrix is called singular, which means it has no inverse and the system of equations it describes either has no solution or infinitely many solutions. If the determinant is not zero, the matrix is invertible, and its system has exactly one solution.

How to Calculate a Determinant

For a 2×2 matrix, the formula is simple: multiply the two diagonal entries and subtract the product of the other two. Written out, if your matrix is [[a, b], [c, d]], the determinant is ad − bc. For a 3×3 matrix, you can use Sarrus' Rule, which involves adding three diagonal products going one direction and subtracting three diagonal products going the other direction. For matrices of any size, two common methods work well:

  • Cofactor Expansion: Pick any row or column. For each entry in that row, multiply it by the determinant of the smaller matrix you get when you cross out that entry's row and column. Alternate the signs (positive, negative, positive, and so on), then add everything up. This method is clear and great for learning, but it gets slow for large matrices. The number of terms grows according to the factorial of the matrix size, which is why larger matrices need more efficient approaches.
  • Row Reduction (Gaussian Elimination): Use row operations to turn the matrix into a triangle shape (all zeros below the main diagonal). Then simply multiply the diagonal entries together. If you swapped any rows during the process, each swap flips the sign of the determinant. This method is much faster for bigger matrices.

What the Determinant Tells You

Beyond solving equations, the determinant has a clear geometric meaning. For a 2×2 matrix, the absolute value of the determinant equals the area of the parallelogram formed by the matrix's row (or column) vectors. For a 3×3 matrix, it gives the volume of the parallelepiped (a 3D shape like a slanted box). A negative determinant means the transformation flips the orientation of space, like turning a shape into its mirror image.

How to Use This Calculator

Enter your matrix size (from 1×1 up to 99×99), then type values into the grid or switch to text mode and paste your matrix using bracket notation like [[1,2],[3,4]]. The calculator accepts integers, decimals, fractions (like 2/3), complex numbers (like 3+2i), and even variables (like x or a) for symbolic results. Click "Calculate Determinant" to get your answer along with a full step-by-step solution. You can view the solution using different methods (cofactor expansion, row reduction, Sarrus' rule, or the direct formula), depending on the matrix size. The tool also shows whether your matrix is singular or invertible, and displays a bar chart showing how each element in the first row contributes to the final determinant value.


Formulas used

2×2 Determinant
\det\begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc
Cofactor Expansion along Row 1
\det(A) = \sum_{j=1}^{n} (-1)^{1+j}\, a_{1j}\, M_{1j}
Sarrus' Rule (3×3)
\det(A) = a_{11}a_{22}a_{33} + a_{12}a_{23}a_{31} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31} - a_{11}a_{23}a_{32} - a_{12}a_{21}a_{33}
Gaussian Elimination (Product of Pivots)
\det(A) = (-1)^{s} \prod_{i=1}^{n} p_{ii}
Singularity Test
A \text{ is singular (non-invertible)} \iff \det(A) = 0

Frequently asked questions

What is a singular matrix?

A singular matrix is a square matrix whose determinant equals zero. This means the matrix has no inverse. If you try to solve a system of equations using a singular matrix, the system either has no solution or has infinitely many solutions.

Can I calculate the determinant of a non-square matrix?

No. The determinant is only defined for square matrices, meaning the number of rows must equal the number of columns. A 2×3 or 4×5 matrix does not have a determinant.

What does a negative determinant mean?

A negative determinant means the matrix flips the orientation of space. Think of it like turning a shape into its mirror image. The absolute value still tells you the area or volume scaling factor, but the negative sign means the direction is reversed.

What happens if one row of my matrix is all zeros?

If any row or column of a square matrix is all zeros, the determinant is automatically zero. This makes the matrix singular, meaning it has no inverse.

What is cofactor expansion?

Cofactor expansion is a method to find the determinant by picking a row or column, then multiplying each entry by the determinant of the smaller matrix left after crossing out that entry's row and column. You alternate signs (+ and −) across the entries and add everything up.

What is Sarrus' Rule?

Sarrus' Rule is a shortcut that only works for 3×3 matrices. You copy the first two columns to the right of the matrix, then add the products of the three downward diagonals and subtract the products of the three upward diagonals. The result is the determinant.

Which method is fastest for large matrices?

Row reduction (Gaussian elimination) is the fastest method for large matrices. Cofactor expansion requires computing many smaller determinants, and the work grows very quickly as the matrix gets bigger. Row reduction scales much better.

What does it mean if a matrix is invertible?

A matrix is invertible if its determinant is not zero. An invertible matrix has a unique inverse matrix, and any system of equations it represents has exactly one solution.

Does swapping two rows change the determinant?

Yes. Every time you swap two rows (or two columns), the determinant changes its sign. So if the original determinant was 5, after one swap it becomes −5. After two swaps it goes back to 5.

Does multiplying a row by a constant change the determinant?

Yes. If you multiply one row of a matrix by a constant k, the determinant also gets multiplied by k. If you multiply every row by k in an n×n matrix, the determinant gets multiplied by kn.

What is the determinant of an identity matrix?

The determinant of any identity matrix is 1, no matter the size. The identity matrix has 1s on the main diagonal and 0s everywhere else.

What is the determinant of a diagonal matrix?

For a diagonal matrix (where all entries off the main diagonal are zero), the determinant is simply the product of the diagonal entries. For example, a diagonal matrix with entries 2, 3, and 5 has a determinant of 2 × 3 × 5 = 30.