UnitCompiler
🔢

Determinant Solver

Calculate the determinant and properties of any matrix instantly.

Use numbers (e.g. 5, -3.2 ) or algebraic expressions. Advanced properties require numeric matrices.
Matrix A
×

Determinant Formulas

2x2 Matrix
A = [a b]
    [c d]
det(A) = ad - bc
3x3 Matrix
A = [a b c]
    [d e f]
    [g h i]
det(A) = a(ei - fh) - b(di - fg) + c(dh - eg)

How This Calculation Works

A matrix determinant is a scalar value computed from a square matrix that encodes geometric scaling and algebraic invertibility. If det(A) is zero, the matrix is singular and a linear system Ax = b has no unique solution. Determinants are foundational across Cramer’s rule, coordinate Jacobian transforms, and structural mechanics.

Core Formulas & Identities

2×2 Determinant
det(A) = ad − bc
3×3 Cofactor Expansion
det(A) = a(ei − fh) − b(di − fg) + c(dh − eg)
Invertibility Rule
A⁻¹ exists ⇔ det(A) ≠ 0

Variable Legend:Letters a through i denote elements ordered row by row from top-left to bottom-right inside a square n × n matrix.

Step-by-Step Worked Examples

Example1

2×2 Matrix: A = [4, 7; 2, 6]

  1. Multiply the main diagonal: 4 × 6 = 24.
  2. Multiply the anti-diagonal: 7 × 2 = 14.
  3. Subtract: 24 − 14.
Result:det(A) = 10
Example2

3×3 Upper-Triangular Matrix: B = [2, 3, 1; 0, 5, 4; 0, 0, 3]

  1. Expand along the first column where two entries are 0.
  2. Compute 2 × (5 × 3 − 4 × 0) = 2 × 15.
  3. Verify diagonal product equals det(B).
Result:det(B) = 30

Practical Applications & Accuracy Tips

  • Swapping any two rows reverses the sign of the determinant.
  • If an entire row or column is zero, or two rows are proportional, det(A) equals 0 immediately.
  • Scalar multiplication obeys det(kA) = kⁿ · det(A) for an n × n matrix, not k · det(A).