ad − bc2×2 determinants
Use ad − bc. A negative result is valid; it describes a reversal of orientation.
Use this determinant calculator for AI-guided 2×2 and 3×3 worked solutions, cofactor expansion, and row-operation checks. Enter a square matrix and interpret whether it is invertible.
determinant calculator
2×2 determinants
3×3 cofactor expansion
Larger matrices and row operations
Paste each matrix row in brackets, or upload a clear image. State the operation and ask for steps. Responses are AI-generated; check important arithmetic independently.
determinant calculator
The determinant is a scalar defined for square matrices. Match the method to the size and structure of your matrix.
ad − bcUse ad − bc. A negative result is valid; it describes a reversal of orientation.
+ − +Expand across a row or column, showing the minors and the alternating signs. Sarrus works only for 3×3 matrices.
det(U) = ∏uᵢᵢAsk for elimination or expansion along a row with zeros. Track swaps and scaling before multiplying the diagonal.
det(A) = 0 ⇔ singulardet(A) = 0 means a square matrix is singular. The absolute determinant measures area or volume scaling.
Method
Keep the original matrix visible while you follow the explanation.
A ∈ ℝⁿˣⁿInclude equal numbers of rows and columns, preserving all signs and fractions.
Cᵢⱼ = (−1)ⁱ⁺ʲ MᵢⱼAsk for ad − bc, cofactor expansion, or elimination as appropriate.
Rᵢ ↔ Rⱼ ⇒ −det(A)A row swap changes the sign; scaling one row scales the determinant.
det(A) ≠ 0 ⇒ A⁻¹Test invertibility or confirm with an alternative expansion or triangular form.
Tip: a zero determinant does not mean the matrix is all zeros. Dependent rows are enough.
Quick reference
These rules help audit a calculation, especially when a solution uses row reduction.
2×2 formula
det([[a,b],[c,d]]) = ad − bcMultiply the main diagonal, then subtract the other diagonal product.
Cofactor expansion
det(A) = Σⱼ aᵢⱼ(−1)ⁱ⁺ʲMᵢⱼMᵢⱼ is the determinant after deleting row i and column j; signs use 1-based indices.
Row replacement
Rᵢ ← Rᵢ + kRⱼAdding a multiple of a different row leaves the determinant unchanged.
Triangular matrix
det(U) = u₁₁u₂₂…uₙₙUndo any row-scaling factors and row-swap signs introduced during elimination.
Worked example
These reviewed examples show the method, result, and an independent check. Use the example prompts above to try them in the solver.
Worked example 1
det([[2,1],[1,3]])A 2×2 example with a nonzero determinant.
Result: det(A) = 5; A is invertible.
Check: Replace R₂ with R₂ − (1/2)R₁: the triangular diagonal is 2, 5/2, whose product is 5.
Worked example 2
det([[1,2,0],[0,3,4],[5,0,6]])Expand along the first row to see each cofactor sign.
Result: det(A) = 58
Check: R₃ ← R₃ − 5R₁ gives [0,−10,6]; then R₃ ← R₃ + (10/3)R₂ gives diagonal 1, 3, 58/3. Their product is 58.
Worked example 3
det([[1,2,3],[2,4,6],[0,1,1]])Dependent rows make the matrix singular.
Result: det(A) = 0; no inverse exists.
Check: First-row expansion also gives 1·(4−6) − 2·(2−0) + 3·(2−0) = −2−4+6 = 0.
Check the conditions before trusting a result.
First-row expansion uses +, −, +. Keep the sign separate from the signed minor.
Replacement preserves the determinant, swaps negate it, and row scaling multiplies it.
A determinant requires a square matrix. Sarrus does not extend to 4×4 or larger matrices.

