Matrix Calculator (2×2)
Add, multiply, and find determinants for 2×2 matrices.
Matrix operations, step by step
Matrices are how linear systems, computer graphics transformations and much of machine learning are actually written down. This matrix calculator handles the standard 2×2 operations — addition, subtraction, multiplication, determinant and inverse — which is exactly the set that comes up in school and first-year university algebra.
How to use the Matrix Calculator
- Choose an Operation from the dropdown.
- Fill in the matrix entries in the grid.
- Read the result matrix or scalar.
- For an inverse, check the determinant first — it must not be zero.
Formula and a worked example
det(A) = ad − bc for A = [[a, b], [c, d]]
A−1 = (1 ÷ det) × [[d, −b], [−c, a]]
Matrix multiplication is not commutative: A×B and B×A usually differ, and often only one of them is even defined. A matrix with determinant zero is singular and has no inverse — it collapses space onto a line, and that cannot be undone.
Worked example
For A = [[4, 7], [2, 6]] the determinant is (4×6) − (7×2) = 10. The inverse is therefore (1/10) × [[6, −7], [−2, 4]] = [[0.6, −0.7], [−0.2, 0.4]].
Frequently asked questions
How do I calculate the inverse of a 2×2 matrix?
Swap the top-left and bottom-right entries, negate the other two, then divide everything by the determinant ad − bc.
Why can some matrices not be inverted?
Because their determinant is zero. Geometrically the transformation flattens space, so there is no way to reverse it.
Does the order of multiplication matter?
Yes. A×B and B×A are generally different matrices. Matrix multiplication is associative but not commutative.
What does the determinant mean geometrically?
It is the factor by which the matrix scales area. A determinant of 10 means shapes come out ten times larger; a negative determinant means orientation is flipped.
Related calculators
Other tools people use alongside the matrix calculator.