Worked examples
Basic: [[1, 2], [3, 4]]
determinant 1×4 − 2×3 = −2, inverse [[−2, 1], [3/2, −1/2]]
Basic: [[1, 2, 3], [0, 1, 4], [5, 6, 0]]
determinant 1, inverse with integer entries [[−24, 18, 5], [20, −15, −4], [−5, 4, 1]]
Basic: [[2, 4], [1, 2]]
determinant 0, so no inverse
How to use it
- First choose 2×2 or 3×3.
- Enter the entries row by row; every cell needs a number, including 0.
- Read the determinant, inverse, trace and rank.
What this calculates
The determinant det(A) is a single number for a square matrix; for a 2×2 matrix [[a, b], [c, d]] it is ad − bc. If it is not 0 the inverse A⁻¹ exists, and if it is 0 there is none. The inverse is the adjugate divided by the determinant, where the adjugate is the transposed matrix of cofactors. The trace is the sum of the diagonal entries and the rank is the number of independent rows. They are basic tools of linear algebra, used for systems of equations and coordinate transformations.
The formulas
- 2×2 determinant det [[a, b], [c, d]] = ad − bc
- 2×2 inverse A⁻¹ = 1 ÷ (ad − bc) × [[d, −b], [−c, a]]
- 3×3 determinant expand along row 1: a₁₁C₁₁ + a₁₂C₁₂ + a₁₃C₁₃ (Cᵢⱼ = (−1)ⁱ⁺ʲ × minor)
- General inverse A⁻¹ = adj(A) ÷ det(A)
- Product rule det(AB) = det(A) × det(B)
Reference table
| Matrix | Result |
|---|---|
| [[1, 2], [3, 4]] | -2 |
| [[2, 0], [0, 2]] | 4 |
| [[1, 1], [1, 1]] | 0 |
| [[3, 1], [2, 5]] | 13 |
| [[4, -2], [1, 3]] | 14 |
Good to know
- To solve systems with matrices, use the Linear System Calculator.
- For the link between 3×3 determinants and cross products, see the Vector Calculator.
Sources
Frequently asked questions
What does a determinant of 0 mean?
The matrix collapses space and loses information. There is no inverse, and as a system of equations the solution is not unique.
What is the rank used for?
It tells how many independent equations there are, and when the determinant is 0 it separates "no solution" from "infinitely many".
What is the trace?
The sum of the diagonal entries from top left to bottom right. It is different from the determinant.
Can I use non-square matrices?
No. Determinants and inverses exist only for square matrices.
Can entries be decimals?
Yes. Decimals are converted to exact fractions.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.