Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Matrix Calculator

Operation

Operation: choose A + B, A − B or A × B. Prefilled example: A × B.

A row 1, column 1: enter a number. Prefilled example: 1.

A row 1, column 2: enter a number. Prefilled example: 2.

A row 2, column 1: enter a number. Prefilled example: 3.

A row 2, column 2: enter a number. Prefilled example: 4.

B row 1, column 1: enter a number. Prefilled example: 5.

B row 1, column 2: enter a number. Prefilled example: 6.

B row 2, column 1: enter a number. Prefilled example: 7.

B row 2, column 2: enter a number. Prefilled example: 8.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Operation: choose A + B, A − B or A × B.
  2. A row 1, column 1: enter a number.
  3. A row 1, column 2: enter a number.
  4. A row 2, column 1: enter a number.
  5. A row 2, column 2: enter a number.
  6. B row 1, column 1: enter a number.
  7. B row 1, column 2: enter a number.
  8. B row 2, column 1: enter a number.
  9. B row 2, column 2: enter a number.
  10. 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

  1. R11={a11+b11if op=1a11−b11if op=2a11×b11+a12×b21otherwise
Symbols used in the formula
SymbolMeaning
opOperation (1: A + B; 2: A − B; 3: A × B)
a11A row 1, column 1
a12A row 1, column 2
b11B row 1, column 1
b21B row 2, column 1
R11Result row 1, column 1

Worked example

OperationA × B
A row 1, column 11
A row 1, column 22
A row 2, column 13
A row 2, column 24
B row 1, column 15
B row 1, column 26
B row 2, column 17
B row 2, column 28
Result row 1, column 222
Result row 2, column 143
Result row 2, column 250
Determinant of the result4
Determinant of A-2
Determinant of B-2
  1. R11=1×5+2×7=19

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.

Related calculators