AI Tools Free

Determinant Calculator

Enter four real numbers in 2 × 2 row order (a, b, c, d) into this determinant calculator to evaluate det(A) = ad - bc in your browser. It supports integers, decimals, negative values, and scientific notation up to 1 billion in magnitude, formats output to 12 significant digits, and lets you copy or download the scalar result.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate result.

Separate values with commas, spaces or new lines. At most 1,000 finite numbers, each with magnitude no greater than 1 billion.

Your result
Enter your details

Result will appear here

How to calculate the determinant of a matrix (2x2 formula)

The Matrix Determinant Calculator reads four numbers entered in row-major order as the 2 × 2 square array with top row (a, b) and bottom row (c, d), then subtracts the anti-diagonal product from the main-diagonal product.

det(A) = ad - bc, where row 1 is [a, b] and row 2 is [c, d].

Where a (row 1, column 1) and d (row 2, column 2) form the main diagonal, and b (row 1, column 2) and c (row 2, column 1) form the anti-diagonal. Understanding how to calculate determinant of 2x2 matrix values also tells you immediately whether A is invertible: when ad - bc ≠ 0, the inverse A⁻¹ = (1 / (ad - bc)) × [d, -b; -c, a] exists.

2x2 matrix determinant diagram showing main diagonal product ad minus anti-diagonal product bc.
Main diagonal product (a × d) minus anti-diagonal product (b × c) for a 2 × 2 matrix.

2x2 matrix determinant reference table

Use these 10 standard 2 × 2 matrices to verify your row-order input, check diagonal products ad and bc, and see how the determinant behaves across identity, scaling, rotation, reflection, shear, and singular matrices.

Matrix Type / ScenarioRow-Order Input (a, b, c, d)Diagonal Products (ad - bc)Determinant det(A)Geometric / Algebraic Meaning
Preloaded baseline matrix1, 2, 3, 4(1)(4) - (2)(3) = 4 - 6-2Invertible; scales area by 2× and flips orientation
2 × 2 identity matrix (I₂)1, 0, 0, 1(1)(1) - (0)(0) = 1 - 01Unit area preserved (1×); orientation unchanged
Singular matrix (proportional rows)2, 4, 3, 6(2)(6) - (4)(3) = 12 - 120Non-invertible; collapses 2D plane onto a 1D line
Reflection across line y = x0, 1, 1, 0(0)(0) - (1)(1) = 0 - 1-1Area preserved (1×); reverses coordinate orientation
90° counterclockwise rotation0, -1, 1, 0(0)(0) - (-1)(1) = 0 - (-1)1Rigid rotation; preserves both area and orientation
Uniform 3× isotropic scaling3, 0, 0, 3(3)(3) - (0)(0) = 9 - 09Linear scale ×3 expands 2D area by 3² = 9×
Horizontal shear (k = 2)1, 2, 0, 1(1)(1) - (2)(0) = 1 - 01Cavalieri shear; base and height stay 1 so area stays 1
Negative-entry matrix-3, 5, 2, -4(-3)(-4) - (5)(2) = 12 - 102Invertible; positive determinant despite negative diagonal
Decimal stiffness matrix2.5, 1.2, 0.5, 3.2(2.5)(3.2) - (1.2)(0.5) = 8 - 0.67.4Nonsingular symmetric coupling matrix
Cramer's rule system matrix2, 1, 1, -1(2)(-1) - (1)(1) = -2 - 1-3Nonzero system denominator D = -3 gives a unique solution

How to calculate a determinant step by step

Follow these three steps to format your 2 × 2 matrix in row order, validate the four numeric entries, and export the computed determinant.

Enter four matrix values in row order

Paste four numbers (a, b, c, d) into First 2 × 2 matrix, row order, separated by commas, spaces, or newlines. The workspace preloads 1, 2, 3, 4 for immediate testing.

Input and settings
Determinant Calculator Step 1 showing the First 2 × 2 matrix, row order textarea preloaded with 1, 2, 3, 4.
Step 1: Enter four real numbers (a, b, c, d) in 2 × 2 row order.

Check the four-entry and magnitude rules

Confirm that your input contains exactly four finite real numbers, each with an absolute value up to 10⁹. Standard decimals (2.5), negative values (-4), and scientific notation (1.5e3) work directly.

Tool result
Determinant Calculator Step 2 showing the calculated scalar determinant -2 in the result panel.
Step 2: Verify the four-entry bound and evaluate det(A) = ad - bc.

Calculate and export the scalar determinant

Click Calculate result to evaluate ad - bc in your browser, then select Copy or Download (result.txt) from the result panel to save the value for homework or engineering notes.

Review the details
Determinant Calculator Step 3 showing the -2 result alongside Copy and Download result.txt buttons.
Step 3: Copy the scalar determinant or download result.txt.

Worked examples: 2x2 matrix determinants in practice

These three worked scenarios show how the determinant calculator tests matrix invertibility, measures 2D area scaling, and supplies the denominator for Cramer's rule.

Preloaded invertibility test (1, 2, 3, 4 → -2)

For a 2 × 2 matrix with top row (1, 2) and bottom row (3, 4), the main-diagonal product is 1 × 4 = 4 and the anti-diagonal product is 2 × 3 = 6, yielding det(A) = 4 - 6 = -2. Because det(A) ≠ 0, the matrix is invertible and you can pass 1, 2, 3, 4 directly into the Matrix Inverse Calculator to obtain A⁻¹ with entries -2, 1, 1.5, -0.5.

Invertibility check for the preloaded 2x2 matrix [1, 2; 3, 4] yielding det(A) = -2.
Worked example 1: Nonzero determinant (-2) confirms the 2 × 2 matrix is invertible.

2D parallelogram area and orientation (4, 1, 2, 3 → 10)

A 2 × 2 matrix whose rows are the vectors u = (4, 1) and v = (2, 3) spans a parallelogram in the xy-plane. Entering 4, 1, 2, 3 returns 4(3) - 1(2) = 10, meaning the parallelogram has an area of 10 square units and v lies counterclockwise from u. Swapping the rows to 2, 3, 4, 1 flips the sign to -10 while keeping the area magnitude at 10.

Parallelogram spanned by 2D row vectors (4, 1) and (2, 3) with signed area det(A) = 10.
Worked example 2: Signed area and orientation of a 2D parallelogram (det = 10).

Cramer's rule denominator for a 2x2 system (2, 1, 1, -1 → -3)

To solve the linear system 2x + y = 5 and x - y = 1, first find the coefficient determinant D by entering 2, 1, 1, -1, which gives (2)(-1) - (1)(1) = -3. Replacing the x-column with the constants (5, 1) gives 5, 1, 1, -1 (Dx = -6), and replacing the y-column gives 2, 5, 1, 1 (Dy = -3), so x = -6 / -3 = 2 and y = -3 / -3 = 1, matching the System of Equations Solver.

Cramer's rule 2x2 linear system denominator D = -3 from coefficient matrix [2, 1; 1, -1].
Worked example 3: Using det(A) = -3 as the denominator D in Cramer's rule.

How to interpret the matrix determinant sign and magnitude

Every scalar returned by this determinant calculator encodes two geometric facts about the 2 × 2 linear transformation T(x) = Ax:

Invertibility and rank (det(A) = 0 vs. det(A) ≠ 0): When det(A) = 0, the second row is a scalar multiple of the first row, the matrix has rank < 2, and the transformation squashes the entire 2D plane onto a line or the origin. No inverse matrix exists. When det(A) ≠ 0, the rows and columns are linearly independent (full rank 2).

Area scaling (|det(A)|) and orientation (sgn(det(A))): Any region in R² with area S maps to a transformed region with area |det(A)| · S. A positive determinant (det(A) > 0) means the basis vectors keep their right-handed counterclockwise orientation; a negative determinant (det(A) < 0) means the transformation includes a reflection that reverses orientation. Outputs are rounded to up to 12 significant digits (toPrecision(12)), and IEEE 754 -0 is normalized to 0.

Visual guide to positive, negative, and zero 2x2 determinants for area scaling and orientation.
Interpreting det(A) > 0 (orientation kept), det(A) < 0 (flipped), and det(A) = 0 (singular).

Determinant calculator input rules, limits & related tools

Before using the output in coursework, finite-element stiffness checks, or graphics pipelines, note these validation rules enforced by the workspace:

Strict 2 × 2 row-major scope: The input parser (matrix4) requires exactly 4 numeric tokens. Entering 3 values or 9 values (such as a 3 × 3 matrix) halts execution with 'Supply exactly four entries in 2 × 2 row order.' Each entry must be a finite real number with |x| ≤ 10⁹ (1,000,000,000).

Chain your linear algebra calculations: After checking det(A), compute A⁻¹ with the Matrix Inverse Calculator, multiply two 2 × 2 matrices with the Matrix Multiplication Calculator, or solve Ax = b directly in the System of Equations Solver.

Validation rules for 4 row-ordered entries and magnitude limits in the Determinant Calculator.
Row-order entry rules, 10⁹ magnitude cap, and related linear algebra tools.

Frequently Asked Questions About Determinant Calculator

Answers about using Determinant Calculator and understanding its results.

What is the formula for the determinant of a 2x2 matrix?

Multiply the top-left element (a) by the bottom-right element (d), then subtract the product of the top-right element (b) and the bottom-left element (c): det(A) = ad - bc. For example, a matrix with row 1 equal to (5, 2) and row 2 equal to (3, 4) has determinant (5 × 4) - (2 × 3) = 14.

How do I enter a 2x2 matrix into this determinant calculator?

Type the four numbers in row order (a, b, c, d), where the first two numbers are row 1 and the last two numbers are row 2. You can separate them with commas (1, 2, 3, 4), spaces (1 2 3 4), or a line break between the two rows.

What does a determinant of 0 mean?

A determinant of 0 means the matrix is singular (non-invertible). Its rows and columns are linearly dependent, the 2D transformation collapses area to zero, and a linear system Ax = b has either no solution or infinitely many solutions rather than a unique intersection.

Can the determinant of a matrix be negative?

Yes. A negative determinant (det(A) < 0) means the linear transformation flips the orientation of the coordinate plane (like a mirror reflection). The actual area scaling factor is the absolute value |det(A)|; for example, det(A) = -2 scales 2D areas by a factor of 2 while reversing orientation.

How do you calculate the determinant of a 3x3 matrix?

This calculator evaluates 2 × 2 matrices (4 entries). To calculate the determinant of a 3 × 3 matrix by hand, use Laplace cofactor expansion along the first row (det(A) = a(ei - fh) - b(di - fg) + c(dh - eg)), which breaks the 3 × 3 matrix into three 2 × 2 determinants that you can each evaluate here.

Is this Determinant Calculator free and private?

Yes. The Determinant Calculator runs 100% locally in your browser's JavaScript engine. No matrix values or outputs are sent to any external server, and no account or sign-up is required.

Calculate result with your input

Choose another tool for your next calculation, conversion, or text task.

Calculate result