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.