Updated on April 23rd, 2026

Determinant Calculator

Created By Jehan Wadia

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 does the math for you. It works for 2×2, 3×3, and larger matrices, saving you time and helping you avoid errors that are common with manual calculation. Whether you are a student learning linear algebra or someone who needs a fast answer, this calculator makes the process simple. For broader matrix operations like addition, multiplication, and inverses, check out our Matrix Calculator.

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 (see our Fraction Calculator if you need help simplifying fractions), 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. If you're working with vectors and need to compute the dot product of row or column vectors, that can also be helpful in understanding matrix geometry.

The determinant also connects to many other concepts in linear algebra and mathematics. For example, the Quadratic Formula Calculator can help when the determinant of a matrix leads to a quadratic expression in eigenvalue problems. When working with statistical data organized in matrices, tools like the Standard Deviation Calculator or Correlation Coefficient Calculator can complement your analysis. And if your determinant computation involves ratios of values, our Ratio Calculator may be useful as well.

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.

If you need to convert decimal results into exact fractions, try our Decimal to Fraction Calculator. For finding the greatest common factor to simplify fractional determinant values, the GCF Calculator and LCM Calculator can help. And for related computations involving slopes and rates derived from matrix solutions, our Slope Calculator and Rate of Change Calculator are handy companions.


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.

How do I enter fractions into the calculator?

Type fractions using a forward slash. For example, type 2/3 or -5/7 directly into a matrix cell. The calculator will handle the fraction math exactly without converting to decimals.

How do I enter complex numbers?

Type complex numbers in the form a+bi or a-bi. For example, enter 3+2i or 1-4i. For a pure imaginary number, just type something like 5i.

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.

Can I use variables like x or a in the matrix?

Yes. You can type variables such as x, a, b, or d into matrix cells. The calculator will give you a symbolic expression for the determinant instead of a single number.

What is the maximum matrix size this calculator supports?

You can enter matrices up to 99×99. However, step-by-step cofactor expansion is only shown for matrices up to 5×5 because it becomes extremely long for larger sizes. Row reduction steps are shown for all sizes.

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.

What does the cofactor contribution chart show?

The bar chart shows how much each element in the first row adds to or subtracts from the total determinant. Each bar represents one entry multiplied by its cofactor. Green bars are positive contributions and red bars are negative contributions.

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.

Can I paste a matrix from another source?

Yes. Switch to Text input mode and paste your matrix using bracket notation like [[1,2],[3,4]]. The calculator also accepts curly braces, parentheses, and pipe notation.


Related Calculators

Dot Product Calculator

Visit Dot Product Calculator

Matrix Calculator

Visit Matrix Calculator