Matrix Determinant & Inverse Calculator
Calculate the determinant, inverse, transpose, and adjugate of 2x2 and 3x3 matrices with full working shown.
Matrices Guide
2x2 Determinant and Inverse
For a 2×2 matrix A = [[a, b], [c, d]], the determinant is computed by a single simple formula: det(A) = ad − bc. The two products on the diagonals — top-left × bottom-right minus top-right × bottom-left — give a single number that encodes essential information about the matrix. A worked example: for A = [[2, 3], [1, 4]], det(A) = (2 × 4) − (3 × 1) = 8 − 3 = 5. The determinant has a powerful geometric meaning: it's the signed area of the parallelogram defined by the matrix's column vectors (or row vectors), so a non-zero determinant means the matrix transforms the plane invertibly, while a zero determinant means it collapses the plane to a line or point (and so can't be reversed). This directly determines whether the matrix has an inverse: if det = 0 the matrix is 'singular' and has no inverse; if det ≠ 0 the inverse exists and is given by A⁻¹ = (1/det) × [[d, −b], [−c, a]]. Note the swap of a and d on the diagonal and the sign change on b and c. For our example, A⁻¹ = (1/5) × [[4, −3], [−1, 2]] = [[0.8, −0.6], [−0.2, 0.4]]. You can verify by computing A × A⁻¹, which should give the identity matrix [[1, 0], [0, 1]]. The inverse is what you use to solve systems like Ax = b for the unknown vector x (multiply both sides by A⁻¹ to get x = A⁻¹b).
3x3 Determinant
The 3×3 determinant follows the same idea but with more terms. For a matrix [[a, b, c], [d, e, f], [g, h, i]], the standard formula by cofactor expansion along the first row is det = a(ei − fh) − b(di − fg) + c(dh − eg). Note the alternating signs (+, −, +) — they come from the cofactor sign pattern, where the sign for position (row i, column j) is (−1)^(i+j), so the top-row signs are +, −, +. Each parenthesised term is the 2×2 determinant of the 'minor' you get by deleting that element's row and column. Worked example: for [[1, 2, 3], [4, 5, 6], [7, 8, 10]], the determinant is 1(50 − 48) − 2(40 − 42) + 3(32 − 35) = 1(2) − 2(−2) + 3(−3) = 2 + 4 − 9 = −3. An alternative for 3×3 specifically is the Sarrus rule: write the first two columns again to the right of the matrix, then sum the three left-to-right diagonals and subtract the three right-to-left diagonals. Both methods give the same answer; Sarrus is sometimes faster for hand calculation but only works for 3×3. For 4×4 and larger, cofactor expansion is the standard method (or row reduction for efficiency on large matrices). Just as in 2×2, a 3×3 determinant of zero means the matrix is singular and the system has either no solution or infinitely many; non-zero means a unique inverse exists. The geometric meaning generalises too: in 3D, the 3×3 determinant is the signed volume of the parallelepiped defined by the column vectors.
Matrix Inverse 3x3
For a 3×3 matrix, the inverse is given by A⁻¹ = (1/det) × adj(A), where adj(A) is the adjugate (or 'classical adjoint') — the transpose of the cofactor matrix. The procedure: first compute all nine cofactors (each one is the 2×2 minor determinant multiplied by the appropriate sign from the (−1)^(i+j) pattern); arrange them into the cofactor matrix; transpose it (swap rows and columns) to get the adjugate; then divide every element by the determinant of the original matrix. It's mechanical but laborious by hand, and prone to arithmetic errors. For matrices larger than 3×3, the standard practical method is Gaussian elimination (row reduction) — augment A with the identity matrix and row-reduce until A becomes the identity; the right-hand side becomes A⁻¹. The cofactor method becomes computationally infeasible for larger matrices because the number of operations grows factorially. The main application is solving linear systems: writing simultaneous equations as Ax = b lets you solve x = A⁻¹b in one matrix multiplication. For example, the system 2x + 3y = 8, x + 4y = 9 becomes [[2, 3], [1, 4]] × [x, y] = [8, 9], and multiplying by A⁻¹ (computed above) gives [x, y] = [0.8 × 8 + (−0.6) × 9, (−0.2) × 8 + 0.4 × 9] = [6.4 − 5.4, −1.6 + 3.6] = [1, 2]. You can check: 2(1) + 3(2) = 8 ✓ and 1(1) + 4(2) = 9 ✓. This calculator handles 2×2 and 3×3 determinants and inverses, doing the arithmetic so you can focus on the application.
Applications of Matrices
Matrices are far more than an exam exercise — they underpin a vast range of practical mathematics. Simultaneous equations are the obvious one: write a system as Ax = b, find A⁻¹, and the solution is x = A⁻¹b. This scales to systems with hundreds or thousands of unknowns — exactly what engineers, economists, and scientists deal with daily, with the matrix work handled by software. Computer graphics rely on matrices throughout: every rotation, scaling, translation, and projection of a 3D object onto a 2D screen is a matrix multiplication. Stacking transformations (rotate, then scale, then translate) corresponds to multiplying their matrices together — and matrix multiplication is the standard tool because it composes neatly. The transformation matrices for a game character moving and rotating through 3D space are computed at every frame on the GPU. Image processing uses matrices for filters, blurring, sharpening, and edge detection (each operation is essentially a small matrix applied to neighbourhoods of pixels). Statistics relies on matrices for regression (the normal equations express least-squares fitting as a matrix equation), for principal component analysis (extracting the main patterns in high-dimensional data via eigenvalues and eigenvectors), and for covariance structures. Quantum mechanics is fundamentally matrix-based — Heisenberg's original formulation predated wave mechanics, and observables in quantum systems are represented as matrices. Even Google's PageRank algorithm — the breakthrough that made early Google searches better than competitors — was built on the eigenvector of a giant matrix representing the structure of the web. Behind the dry-looking det(A) and A⁻¹ lies the machinery of huge parts of modern science and technology.
Recommended for this calculator