Matrix Determinant & Inverse Calculator (2x2 / 3x3)
Find the determinant, trace, and inverse of a 2x2 or 3x3 matrix, using the standard cofactor expansion and adjugate formulas.
- Determinant
- -3
- Trace
- 6
- Invertible
- Yes
- Inverse
- [-1.666667, 0.666667] [1.333333, -0.333333]
How it works
For a 2x2 matrix [[a,b],[c,d]], the determinant is ad − bc and the trace is a + d. For a 3x3 matrix, the determinant is found by cofactor expansion along the first row — each entry times the determinant of the 2x2 'minor' left after removing its row and column, with alternating signs — and the trace is the sum of the three diagonal entries.
The inverse exists only when the determinant is nonzero (a 'singular' matrix, determinant zero, has no inverse — this is reported rather than treated as an error, since it's a valid mathematical outcome). For 2x2, the inverse is (1 ÷ det) × [[d,−b],[−c,a]]. For 3x3, it's the adjugate matrix (the transpose of the matrix of cofactors) divided by the determinant — the standard closed-form inverse formula for any invertible square matrix up to 3x3.
When 2x2 is selected, only the top-left four entries (rows/cols 1-2) are used — the remaining fields are ignored, the same way a 'solve for' selector on other calculators on this site ignores whichever field isn't part of the current calculation.
FAQ
What does it mean for a matrix to be singular?
A singular matrix has a determinant of exactly zero, which means it has no inverse — geometrically, it 'flattens' space into a lower dimension (a 2x2 singular matrix squashes the plane onto a line), so the transformation can't be undone. It's a normal, valid matrix, just one without a corresponding inverse.
What is the trace used for?
The trace (the sum of the diagonal entries) shows up throughout linear algebra — for example, it equals the sum of a matrix's eigenvalues, and for a 2x2 matrix, trace and determinant together are exactly what you need to write down its characteristic equation.
Related calculators
- Percentage Calculator
- Quadratic Equation Solver
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- Prime Factorization Calculator
- System of Linear Equations Solver (2 Equations)
- Half-Life Decay Calculator
- Vector Calculator (Dot Product, Cross Product, Angle)
- Ohm's Law Calculator
- Projectile Motion Calculator
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Pythagorean Triple Generator
- Binomial Probability Calculator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Thin Lens Equation Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Birthday Paradox Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator