
Determinant Calculator
Use this determinant calculator to evaluate any 2x2 matrix in your browser with det(A) = ad - bc. Check invertibility, area scaling, and 10 worked examples.
Open toolEnter four real numbers (a, b, c, d) in row order into this matrix inverse calculator to compute the exact 2 × 2 inverse matrix in your browser. As an instant inverse matrix calculator, the tool evaluates the determinant ad - bc, swaps the main diagonal, negates the off-diagonal terms, and displays up to 12 significant digits with automatic singularity detection.
Enter the inputs, then select Calculate result.
Result will appear here
The Matrix Inverse Calculator evaluates four real numbers entered in row-major order to check whether a square array has a multiplicative inverse. Understanding how to calculate inverse of a matrix starts with the identity condition: a square matrix A is invertible (nonsingular) if and only if there exists an inverse matrix A⁻¹ such that A · A⁻¹ = A⁻¹ · A = I₂.
When learning how to calculate inverse matrix 2x2 arrays with top row (a, b) and bottom row (c, d), the closed-form adjugate rule divides the classical adjoint by the scalar determinant det(A) = ad - bc: A⁻¹ = (1 / (ad - bc)) × [d, -b; -c, a] = [d / (ad - bc), -b / (ad - bc); -c / (ad - bc), a / (ad - bc)].
Three algebraic steps govern this transformation: (1) Main diagonal swap: top-left entry a and bottom-right entry d exchange positions. (2) Off-diagonal sign reversal: top-right entry b and bottom-left entry c stay in their slots but flip signs to -b and -c. (3) Determinant division: every entry in the adjugate matrix is divided by det(A) = ad - bc, which you can inspect separately in the Determinant Calculator. If ad - bc = 0, the rows are linearly dependent and no inverse exists.
Review the 10 common 2 × 2 matrix classes, their row-order inputs (a, b, c, d), scalar determinants, adjugate matrices, and resulting inverse outputs below.
| Matrix Class / Transformation | Row-Order Input (a, b, c, d) | Determinant (ad - bc) | Adjugate (d, -b, -c, a) | Inverse Matrix A⁻¹ Output |
|---|---|---|---|---|
| Preloaded Default Matrix | 1, 2, 3, 4 | -2 | 4, -2, -3, 1 | -2 1 / 1.5 -0.5 |
| 2×2 Identity Matrix (I₂) | 1, 0, 0, 1 | 1 | 1, 0, 0, 1 | 1 0 / 0 1 |
| Unimodular Integer Matrix (det = 1) | 3, 2, 4, 3 | 1 | 3, -2, -4, 3 | 3 -2 / -4 3 |
| Unimodular Reflection (det = -1) | 2, 3, 3, 4 | -1 | 4, -3, -3, 2 | -4 3 / 3 -2 |
| Diagonal Axis Scaling Matrix | 2, 0, 0, 5 | 10 | 5, 0, 0, 2 | 0.5 0 / 0 0.2 |
| Horizontal Shear (k = 3) | 1, 3, 0, 1 | 1 | 1, -3, 0, 1 | 1 -3 / 0 1 |
| 90° Counterclockwise Rotation | 0, -1, 1, 0 | 1 | 0, 1, -1, 0 | 0 1 / -1 0 |
| 45° Rotation & √2 Scale | 1, -1, 1, 1 | 2 | 1, 1, -1, 1 | 0.5 0.5 / -0.5 0.5 |
| Symmetric Covariance Matrix | 4, 2, 2, 3 | 8 | 3, -2, -2, 4 | 0.375 -0.25 / -0.25 0.5 |
| Singular Proportional Matrix | 2, 4, 3, 6 | 0 | 6, -4, -3, 2 | Rejected (Singular matrix) |
Follow these three steps to format your 2 × 2 entries in row-major order, check invertibility, and export the inverted matrix.
Paste four real numbers (a, b, c, d) into the First 2 × 2 matrix, row order text area, separated by commas, spaces, or newlines. The parser assigns the first two numbers to the top row (a, b) and the last two numbers to the bottom row (c, d). The workspace preloads 1, 2, 3, 4 for immediate testing.
Ensure your input contains exactly four finite real numbers within ±1,000,000,000 (10⁹) and a non-zero determinant ad - bc. Before dividing, the runtime checks whether |ad - bc| <= 100 * Number.EPSILON * max(|ad|, |bc|) and stops with a diagnostic prompt if the matrix is singular or ill-conditioned.
Select Calculate result to compute [d/det, -b/det; -c/det, a/det] in your browser. The result panel prints row one on line one and row two on line two, rounded to 12 significant digits with -0 normalized to 0. Click Copy or Download (result.txt) to save the output.
Use these three concrete test cases to verify standard fractional inverses, unimodular integer inverses, and singular matrix rejection.
For the preloaded matrix with top row (1, 2) and bottom row (3, 4), the determinant is (1)(4) - (2)(3) = 4 - 6 = -2. Swapping the main diagonal gives 4 and 1, while negating the off-diagonal gives -2 and -3. Dividing all four entries by -2 produces row one '-2 1' and row two '1.5 -0.5'.

In Hill cipher cryptography and integer lattice problems, an integer matrix has an all-integer inverse over the real numbers only when its determinant is +1 or -1 (a unimodular matrix). Entering 3, 2, 4, 3 gives det(A) = (3)(3) - (2)(4) = 9 - 8 = 1. Dividing the adjugate (3, -2, -4, 3) by 1 returns the exact integer inverse '3 -2' on line one and '-4 3' on line two.

If you enter 2, 4, 3, 6, the second row is 1.5 times the first row, making the determinant (2)(6) - (4)(3) = 12 - 12 = 0. Similarly, if you enter a nearly collinear matrix where |ad - bc| falls within 100 * Number.EPSILON of the product magnitude, the calculator blocks division and displays: 'The matrix or system is singular or numerically too close to singular.'

The output panel prints four space-separated and newline-separated numbers representing row one on the top line and row two on the bottom line.
When an off-diagonal entry is zero (such as in the diagonal scaling matrix 2, 0, 0, 5), negating 0 in IEEE 754 floating-point arithmetic normally produces -0. Our output formatter explicitly checks Object.is(v, -0) and normalizes signed zero to clean 0 while displaying up to 12 significant digits.
To verify any result, paste your original matrix into the first box of the Matrix Multiplication Calculator and your computed inverse into the second box. Multiplying A · A⁻¹ yields the 2 × 2 identity matrix '1 0' on row one and '0 1' on row two (up to minor 12th-digit rounding on repeating decimals like 1/3). If you are inverting a coefficient matrix to solve a linear system Ax = b, you can also verify the solution vector (x, y) directly in the System of Equations Solver.
![Identity verification diagram showing how multiplying A by its computed inverse A⁻¹ recovers the 2x2 identity matrix [1, 0; 0, 1].](/tools/assets/detail-illustrations/families/math/interpret-v1.webp)
Review these four-entry parsing rules, numeric bounds, and relative conditioning thresholds before applying the inverted matrix to coursework or engineering models.
This workspace is purpose-built for 2 × 2 real matrices and requires exactly four finite numbers in row-major order (a, b, c, d). Supplying fewer or more than four numbers (such as a 9-entry 3 × 3 array) triggers the validation prompt: 'Supply exactly four entries in 2 × 2 row order.' Each entry must be a standard decimal or scientific-notation number (1.5e-4 is accepted; fraction slashes like 1/3 are rejected) with magnitude at most 1,000,000,000.
Need an adjacent algebra solver? You can solve single-variable equations in the Linear Equation Solver or compute real and complex roots in the Quadratic Equation Solver, alongside the 2 × 2 determinant, matrix multiplication, and linear system tools linked below.


Use this determinant calculator to evaluate any 2x2 matrix in your browser with det(A) = ad - bc. Check invertibility, area scaling, and 10 worked examples.
Open tool
Use this matrix multiplication calculator to multiply two 2x2 matrices in row order using row-by-column dot products, with 10 worked examples and instant copy.
Open tool
Use this free system of equations solver to solve two linear equations (ax + by = c, dx + ey = f) for x and y using Cramer's rule, elimination, and matrices.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this free linear equation solver to solve a*x + b = c for x over the real numbers. Handles unique roots, no solution, and infinitely many solutions.
Open toolUse this free quadratic equation solver to solve ax² + bx + c = 0 for real, repeated, or complex roots (a ± bi) and discriminant Δ = b² − 4ac in one click.
Open tool
Use this dot product calculator and vector dot product calculator to compute the scalar product of two 3D or 2D vectors (x·u + y·v + z·w) in your browser.
Open tool
Use this free cross product calculator to find the right-handed 3D vector product a × b = (yw - zv, zu - xw, xv - yu) for physics torque and surface normals.
Open toolAnswers about using Matrix Inverse Calculator and understanding its results.
First, calculate the determinant D = ad - bc. If D is not zero, form the adjugate matrix by swapping the main diagonal entries (a and d) and changing the signs of the off-diagonal entries (b becomes -b, and c becomes -c). Finally, divide all four entries by D.
A matrix is singular when its determinant ad - bc equals zero, which happens whenever one row is a scalar multiple of the other or a row or column consists entirely of zeros. The calculator also blocks matrices where |ad - bc| <= 100 * Number.EPSILON * max(|ad|, |bc|) because floating-point cancellation has destroyed all reliable significant digits.
An integer matrix has an inverse composed solely of integers over the real numbers if and only if its determinant ad - bc equals +1 or -1 (a unimodular matrix). For any other non-zero determinant D, at least some entries in the inverse matrix are divided by |D| > 1 and become fractions.
This browser tool is scoped strictly to 2 × 2 matrices (4 entries). For 3 × 3 or 4 × 4 matrices, use Gauss-Jordan row reduction [A | I] -> [I | A⁻¹], run =MINVERSE(A1:C3) in Excel or Google Sheets, or enter the matrix under [MATRIX] on a TI-84 calculator and press the x⁻¹ key.
Yes. Every calculation runs locally inside your browser using client-side JavaScript. Your numeric inputs and exported result.txt files are never sent to an external server.
Choose another tool for your next calculation, conversion, or text task.