Free 2×2 matrix calculator: determinant, trace, transpose, inverse and eigenvalues from four entries, with the singular case flagged and every step shown.
Matrix Calculator
Determinant first, then trace, inverse and eigenvalues for any 2x2 matrix — including an honest flag when no inverse exists.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Matrix Result
Calculated locally in your browser
—
Name
—
A row 1, col 1
—
A row 1, col 2
—
A row 2, col 1
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
The determinant of a 2x2 matrix with entries a, b, c and d equals a times d minus b times c. For the matrix with rows 1, 2 and 3, 4, the determinant is one times four minus two times three, which is negative two, so the matrix is invertible.
- det [[a,b],[c,d]] = ad - bc
- Inverse exists only when the determinant is not zero
- Eigenvalues solve lambda^2 - trace*lambda + det = 0
Reading a 2x2 determinant
Reference values for this calculator.
| Determinant | Meaning | Example |
|---|---|---|
| Positive | Orientation preserved | [[2,0],[0,3]] det 6 |
| Negative | Orientation flipped | [[1,2],[3,4]] det -2 |
| Zero | Singular, no inverse | [[1,2],[2,4]] det 0 |
| 1 (identity) | No scaling | [[1,0],[0,1]] det 1 |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Scoped honestly to a single 2x2 matrix: determinant (headline), trace, transpose, inverse and eigenvalues. Enhancement: eigenvalues and the singular-matrix verdict are included, which most basic determinant tools omit.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Classic textbook matrix
A = [[1,2],[3,4]]
| Calculation | Steps |
|---|---|
| det = 1x4 - 2x3 = -2. Trace = 1 + 4 = 5. Inverse = (1/-2)[[4,-2],[-3,1]] = [[-2,1],[1.5,-0.5]]. | Determinant -2; trace 5; matrix is invertible. |
Result
Example 2
Diagonal scaling matrix
A = [[2,0],[0,3]]
| Calculation | Steps |
|---|---|
| det = 2x3 - 0x0 = 6. Trace = 5. Eigenvalues are the diagonal entries 2 and 3. | Determinant 6; eigenvalues 2 and 3. |
Result
Example 3
Identity matrix
A = [[1,0],[0,1]]
| Calculation | Steps |
|---|---|
| det = 1x1 - 0x0 = 1. Trace = 2. Inverse is the identity itself; both eigenvalues are 1. | Determinant 1; the transformation changes nothing. |
Result
How to use this calculator
Step 1
Enter the four entries of the 2x2 matrix in row order.
Step 2
Read the determinant as the headline result.
Step 3
Check the inverse detail; it only exists when the determinant is not zero.
Step 4
Use the eigenvalues detail for stability and dynamics questions.
Step 5
For a singular result, check whether one row is a multiple of the other.
Frequently asked questions
What does the determinant tell me?
It is the factor by which the matrix scales areas (with sign for orientation). Zero means the matrix flattens the plane onto a line or point and cannot be undone.
When does a 2x2 matrix have no inverse?
Exactly when ad - bc = 0, which happens when the rows (or columns) are proportional, like [[1,2],[2,4]].
How is the inverse calculated?
Swap the diagonal entries, negate the off-diagonal entries, and divide every entry by the determinant: A^-1 = (1/(ad-bc)) [[d,-b],[-c,a]].
Does this calculator multiply two matrices?
No — this build is scoped to one 2x2 matrix: determinant, trace, transpose, inverse and eigenvalues. Matrix multiplication of larger matrices is a separate tool.
What are the eigenvalues of a 2x2 matrix?
They are the roots of lambda^2 - (trace)lambda + det = 0. This tool reports them, including complex pairs when the discriminant is negative.
About this calculator
This matrix calculator analyses one 2x2 matrix: you enter its four entries and it returns the determinant as the headline, plus the trace, transpose, inverse (when one exists) and both eigenvalues. Those five quantities answer most first-course linear algebra questions about a 2x2 transformation.
The determinant is the single most informative number for a square matrix: it measures area scaling, decides invertibility, and appears in the characteristic equation whose roots are the eigenvalues. For 2x2 it is just ad - bc, but that small formula drives all the rest.
The inverse formula swaps and negates entries, then divides by the determinant — which is exactly why a zero determinant means no inverse: division by zero. The eigenvalues come from lambda^2 - (trace)lambda + det = 0, so once you have trace and determinant you have them too.
Use it for homework checks in linear algebra, for testing whether a 2x2 system of equations has a unique solution, and for dynamics problems where the eigenvalues decide stability. If you need 3x3 matrices or products of matrices, this is the wrong tool.
How to calculate it yourself
Step 1
Write the matrix as [[a,b],[c,d]] in row order.
Step 2
Compute the determinant ad - bc.
Step 3
Add the diagonal for the trace, a + d.
Step 4
If the determinant is not zero, form the inverse (1/det)[[d,-b],[-c,a]].
Step 5
Solve lambda^2 - (trace)lambda + det = 0 for the eigenvalues.
Real-life examples
Checking a system of equations
A student solves x + 2y = 5 and 3x + 4y = 11 and wants to know first whether a unique solution even exists.
The coefficient matrix is [[1,2],[3,4]] with determinant 1x4 - 2x3 = -2, which is not zero, so a unique solution exists and inverse methods will work.
Determinant -2 confirms a unique solution exists.
A singular trap in homework
Another problem uses [[1,2],[2,4]]; a student tries to invert it and keeps failing.
det = 1x4 - 2x2 = 0. The second row is exactly twice the first, so the matrix is singular and no inverse exists — the failure is the correct answer.
Determinant 0: no inverse, and the system has no unique solution.
Ideas & use cases
- Test invertibility before solving: run the coefficient matrix here first; a zero determinant saves you from chasing a solution that does not exist.
- Read area change geometrically: enter a rotation or shear matrix and use the determinant to confirm rotations preserve area (det 1) while shears keep it too.
- Use eigenvalues for stability: a discrete system x -> Ax settles only when both eigenvalues have absolute value below 1 — check them here before simulating.
Limitations & sources
- One 2x2 matrix only: no 3x3 or larger matrices, no matrix multiplication or addition of two matrices, no row-reduction. Dot and cross product searches land here, but vectors are not an input of this tool.
Sources: Strang, G. Introduction to Linear Algebra (Wellesley-Cambridge) — 2x2 determinant, inverse and eigenvalue formulas · Standard 2x2 matrix reference, Wolfram MathWorld: Determinant and Matrix Inverse entries
