Matrix Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter two 2×2 matrices A and B, choose an operation, and read the resulting matrix entry by entry.
Result
Result row 1, column 1
Result row 1, column 2
- Result row 2, column 1
- Result row 2, column 2
- Determinant of the result
- Determinant of A
- Determinant of B
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Operation: choose A + B, A − B or A × B.
- A row 1, column 1: enter a number.
- A row 1, column 2: enter a number.
- A row 2, column 1: enter a number.
- A row 2, column 2: enter a number.
- B row 1, column 1: enter a number.
- B row 1, column 2: enter a number.
- B row 2, column 1: enter a number.
- B row 2, column 2: enter a number.
- Read the result: Result row 1, column 1; the panel also shows Result row 1, column 2, Result row 2, column 1, Result row 2, column 2, Determinant of the result, Determinant of A and Determinant of B.
How this calculator works
Addition and subtraction work entry by entry: (A ± B)ᵢⱼ = Aᵢⱼ ± Bᵢⱼ.
Multiplication takes row i of A against column j of B: (AB)ᵢⱼ = Aᵢ₁B₁ⱼ + Aᵢ₂B₂ⱼ. Matrix multiplication is not commutative: A × B is usually different from B × A.
The determinant of a 2×2 matrix [[a, b], [c, d]] is ad − bc, and det(AB) = det(A) × det(B).
The formula
| Symbol | Meaning |
|---|---|
| Operation (1: A + B; 2: A − B; 3: A × B) | |
| A row 1, column 1 | |
| A row 1, column 2 | |
| B row 1, column 1 | |
| B row 2, column 1 | |
| Result row 1, column 1 |
Worked example
| Operation | A × B |
|---|---|
| A row 1, column 1 | 1 |
| A row 1, column 2 | 2 |
| A row 2, column 1 | 3 |
| A row 2, column 2 | 4 |
| B row 1, column 1 | 5 |
| B row 1, column 2 | 6 |
| B row 2, column 1 | 7 |
| B row 2, column 2 | 8 |
| Result row 1, column 2 | 22 |
|---|---|
| Result row 2, column 1 | 43 |
| Result row 2, column 2 | 50 |
| Determinant of the result | 4 |
| Determinant of A | -2 |
| Determinant of B | -2 |
Result row 1, column 1 19
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Can you multiply any two matrices?
Only when the number of columns of the first equals the number of rows of the second. Two 2×2 matrices can always be multiplied.
Why is A × B different from B × A?
Each entry pairs rows of the first matrix with columns of the second, so swapping the order pairs different numbers.
What does the determinant tell you?
A matrix with determinant 0 has no inverse. Otherwise its absolute value is the factor by which the matrix scales areas.