Determinant Solver - Matrix Determinant Calculator Logo
Калькулятор определителей
Руководство • 10 ноября 2026 г.

Determinant Calculator 4x4 - Руководство и Расчеты (Руководство)

Руководство и Расчеты: Use the free determinant calculator 4x4 to solve any 4 by 4 matrix in seconds. E... [Точные формулы и расчет]

S
Shahabuddin
Lead Engineer at Shahab Dev
Last updated: 10 ноября 2026 г. | About the author
Determinant Calculator 4x4 - Руководство и Расчеты (Руководство) - Калькулятор определителей

Direct Answer / AI Overview: A determinant calculator 4x4 finds the single number that describes a 4 by 4 square matrix. Open the free Determinant Solver, pick size 4, type in your 16 values, and the answer appears at once. For the matrix in the worked example on this page, the answer is $\mathbf{-28}$.

Use this page when you need an answer for a 4 by 4 matrix and you want to see how the answer is reached. The calculator on the home page gives the number. The worked example below shows every step, first with expansion by minors and then with row reduction as a cross check, so you can follow the working and spot any slip in your own calculation.

For the full method guide, with why the Sarrus diagonal shortcut fails on 4 by 4 matrices, see our 4x4 determinant guide.


Use the Calculator

  1. Open the free Determinant Solver.
  2. Pick size 4 in the size menu.
  3. Type your 16 matrix values into the grid, row by row.
  4. Read the determinant under the grid. It updates as you type, so you can test values and see the answer change at once.

The calculator uses LU decomposition with partial pivoting, which stays accurate for 4 by 4 matrices. It does not use the Sarrus diagonal shortcut, because that shortcut only works for 3 by 3 matrices and gives a wrong answer on 4 by 4 matrices. Learn more in our LU decomposition guide.


Worked Example: A Full 4x4 Determinant

Find the determinant of matrix $A$:

$$A = \begin{bmatrix} 2 & 1 & 0 & 3 \ 1 & 0 & 2 & 1 \ 3 & 2 & 1 & 0 \ 0 & 1 & 1 & 2 \end{bmatrix}$$

Expansion by Minors

Expand along the first row. The sign pattern on the first row is $+$, $-$, $+$, $-$, so:

$$\det(A) = 2\det(M_{11}) - 1\det(M_{12}) + 0\det(M_{13}) - 3\det(M_{14})$$

Each minor is a 3 by 3 determinant. Each one is checked here with the Sarrus rule, which is valid for 3 by 3 matrices.

Minor $M_{11}$: cross out row 1 and column 1:

$$M_{11} = \begin{bmatrix} 0 & 2 & 1 \ 2 & 1 & 0 \ 1 & 1 & 2 \end{bmatrix}$$

Down diagonals: $0 + 0 + 2 = 2$. Up diagonals: $1 + 0 + 8 = 9$. So $\det(M_{11}) = 2 - 9 = -7$.

Minor $M_{12}$: cross out row 1 and column 2:

$$M_{12} = \begin{bmatrix} 1 & 2 & 1 \ 3 & 1 & 0 \ 0 & 1 & 2 \end{bmatrix}$$

Down diagonals: $2 + 0 + 3 = 5$. Up diagonals: $0 + 0 + 12 = 12$. So $\det(M_{12}) = 5 - 12 = -7$.

Minor $M_{13}$: cross out row 1 and column 3:

$$M_{13} = \begin{bmatrix} 1 & 0 & 1 \ 3 & 2 & 0 \ 0 & 1 & 2 \end{bmatrix}$$

Down diagonals: $4 + 0 + 3 = 7$. Up diagonals: $0 + 0 + 0 = 0$. So $\det(M_{13}) = 7 - 0 = 7$.

Minor $M_{14}$: cross out row 1 and column 4:

$$M_{14} = \begin{bmatrix} 1 & 0 & 2 \ 3 & 2 & 1 \ 0 & 1 & 1 \end{bmatrix}$$

Down diagonals: $2 + 0 + 6 = 8$. Up diagonals: $0 + 1 + 0 = 1$. So $\det(M_{14}) = 8 - 1 = 7$.

Now combine the four terms:

$$\det(A) = 2(-7) - 1(-7) + 0(7) - 3(7)$$ $$\det(A) = -14 + 7 + 0 - 21 = -28$$

Result: $\det(A) = \mathbf{-28}$.

Row Reduction Check

The same answer follows from row reduction, which turns the matrix into upper triangular form. Only row addition is used, so the determinant stays unchanged at every step.

Step 1: clear column 1 below the first entry, using $R_2 \to R_2 - \frac{1}{2}R_1$ and $R_3 \to R_3 - \frac{3}{2}R_1$:

$$\begin{bmatrix} 2 & 1 & 0 & 3 \ 0 & -\frac{1}{2} & 2 & -\frac{1}{2} \ 0 & \frac{1}{2} & 1 & -\frac{9}{2} \ 0 & 1 & 1 & 2 \end{bmatrix}$$

Step 2: clear column 2 below the second entry, using $R_3 \to R_3 + R_2$ and $R_4 \to R_4 + 2R_2$:

$$\begin{bmatrix} 2 & 1 & 0 & 3 \ 0 & -\frac{1}{2} & 2 & -\frac{1}{2} \ 0 & 0 & 3 & -5 \ 0 & 0 & 5 & 1 \end{bmatrix}$$

Step 3: clear column 3 below the third entry, using $R_4 \to R_4 - \frac{5}{3}R_3$:

$$\begin{bmatrix} 2 & 1 & 0 & 3 \ 0 & -\frac{1}{2} & 2 & -\frac{1}{2} \ 0 & 0 & 3 & -5 \ 0 & 0 & 0 & \frac{28}{3} \end{bmatrix}$$

The matrix is now upper triangular, so the determinant is the product of the diagonal entries:

$$\det(A) = 2 \times \left(-\frac{1}{2}\right) \times 3 \times \frac{28}{3} = -28$$

Both methods agree. The determinant of matrix $A$ is negative 28.


A Second Quick Check

An upper triangular matrix has a determinant equal to the product of its diagonal entries. For example:

$$T = \begin{bmatrix} 3 & 5 & 1 & 2 \ 0 & 2 & 4 & 1 \ 0 & 0 & 1 & 6 \ 0 & 0 & 0 & 4 \end{bmatrix}$$

$$\det(T) = 3 \times 2 \times 1 \times 4 = 24$$

The 4 by 4 identity matrix has a determinant of 1. Read more in our triangular matrix determinant guide.


What a Zero Answer Means

If the calculator returns 0 for your 4 by 4 matrix, the matrix is singular. That means it has no inverse, its rows or columns are linearly dependent, and a system of four linear equations built from it has no unique solution. A matrix with a full row or a full column of zeros always has a determinant of 0. See the invertible matrix theorem for the full test.


Mistakes to Avoid

  1. Using Sarrus on a 4 by 4 matrix: the Sarrus diagonal shortcut produces only 8 of the 24 terms a 4 by 4 determinant needs, so the answer is wrong. Use expansion by minors or row reduction instead. Our 3x3 determinant calculator is the place where Sarrus does apply.
  2. Missing the alternating signs: the first row sign pattern is $+$, $-$, $+$, $-$. Forgetting the minus on the second and fourth terms is the most common slip.
  3. Forgetting a row swap: swapping two rows flips the sign of the determinant. If your row reduction swaps rows, multiply the final answer by negative 1 for each swap.
  4. Scaling a row by mistake: multiplying a whole row by a number multiplies the determinant by the same number. Row addition, by contrast, leaves the determinant unchanged.

Frequently Asked Questions (FAQ)

How do I use the determinant calculator 4x4?

Open the free Determinant Solver, pick size 4, and type your 16 values into the grid. The determinant appears under the grid and updates as you type. You can also work through the example on this page to check the steps by hand.

Why does the Sarrus rule fail on 4x4 matrices?

A 4 by 4 determinant has 24 terms, 12 positive and 12 negative. Drawing diagonals across extended columns only produces 8 terms, so 16 terms are missing and the answer is wrong. Sarrus works only for 3 by 3 matrices. For 4 by 4 matrices, use expansion by minors, row reduction, or the calculator on this site.

What does a determinant of 0 mean for a 4x4 matrix?

A determinant of 0 means the matrix is singular. It has no inverse, its rows or columns are linearly dependent, and a system of equations built from it has no unique solution. Check the invertible matrix theorem for the full list of equivalent conditions.

Can the calculator handle decimals and negative numbers?

Yes. Type decimals and negative numbers into the grid exactly as they appear in your matrix. The calculator works with fractions and decimals and shows the answer with up to 12 decimal places. For a 5 by 5 matrix, use our 5x5 determinant calculator.

⚡

Related Mathematical Resources

Essential matrix guides, determinant theorems, and computational tutorials

  • •
    Sarrus' Rule Shortcut – Master the visual diagonal method for rapid manual 3x3 matrix determinant evaluations without expansion errors. Sarrus rule for 3x3 determinants .
  • •
    LU Decomposition Method – Learn how partial pivoting and triangular factorization compute matrix determinants with high numerical stability. LU decomposition determinant calculation .
  • •
    Cramer's Rule Guide – Step-by-step guide to solving simultaneous linear equations using coefficient matrix determinant ratios. Cramer's rule linear systems .