Intermediate

Matrix Determinant Calculator

Enter a square 2x2 or 3x3 matrix and instantly see its determinant with the full cofactor expansion.
One row per line; separate numbers with spaces or commas. Use a 2x2 or 3x3 square matrix.
Determinant
-2

2x2 matrix

Expansion
det = a·d − b·c = -2
This linear map scales area by a factor of det(A) = -2
Matrix size
2×2
Determinant
-2
Invertible
Yes
Step by step
  1. 1

    Product a·d

    1 × 4 = 4
  2. 2

    Product b·c

    2 × 3 = 6
  3. 3

    Determinant

    4 − 6 = -2
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

The determinant of a 2×2 matrix is a·d − b·c, and of a 3×3 matrix it is a(ei−fh) − b(di−fg) + c(dh−eg). Enter your square matrix one row per line; the tool detects the size, computes the value, and flags whether the matrix is invertible (nonzero determinant).

Formula
2×2: det = a·d − b·c 3×3: det = a(ei−fh) − b(di−fg) + c(dh−eg)
How this is calculated

Type your matrix one row per line, separating numbers with spaces or commas. The calculator counts the rows to detect the matrix size n and requires the matrix to be square (each row must have exactly n entries) with n equal to 2 or 3; any other shape returns no result.

For a 2×2 matrix [[a,b],[c,d]] the determinant is a·d − b·c. For a 3×3 matrix the calculator expands along the first row using the rule of Sarrus / cofactor expansion: det = a(ei−fh) − b(di−fg) + c(dh−eg). The bar chart shows the absolute size of each term so you can see which contributions dominate, and the equation card shows the signed expansion.

The determinant is unitless and scales linearly: multiplying any single row by a constant multiplies the determinant by that same constant. A determinant of exactly zero means the matrix is singular (its rows are linearly dependent) and therefore has no inverse, which is reported in the summary.

Frequently asked questions

Only square 2×2 and 3×3 matrices. The size is detected from the number of rows, and each row must contain that same number of values.

A zero determinant means the matrix is singular: its rows (or columns) are linearly dependent, so the matrix is not invertible and the corresponding linear system has no unique solution.

Put one row of the matrix on each line and separate the numbers in a row with spaces or commas, for example "1 2" on one line and "3 4" on the next.

Also known as

determinant
matrix determinant
det of matrix
2x2 determinant
3x3 determinant
det a
find determinant

APA

TG we-Calculate Editorial Team. (2026). Matrix Determinant Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/matrix-determinant-calculator

Chicago

TG we-Calculate Editorial Team. "Matrix Determinant Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/matrix-determinant-calculator.

IEEE

TG we-Calculate Editorial Team, "Matrix Determinant Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/matrix-determinant-calculator

BibTeX

@misc{wecalculate_matrix_determinant_calculator, title = {Matrix Determinant Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/matrix-determinant-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?