Matrix Addition and Subtraction Calculator

Enter each row of both matrices with numbers separated by commas or spaces.

Operation

Example: 1, 2. Both matrices must have the same number of rows and columns.

This result is an estimate only. Double-check important figures before relying on them.

How it is calculated

  • (A ± B)ᵢⱼ = Aᵢⱼ ± Bᵢⱼ

To multiply, use the matrix multiplication calculator.

Worked example

[1 2; 3 4] + [5 6; 7 8]:

  • Row 1: 6 8
  • Row 2: 10 12

Why your number may differ

Matrices larger than 3 rows are not covered. Leave row 3 empty for 2-row matrices.

Frequently asked questions

How do I add matrices?

Add the numbers in the same position. Both matrices must be the same size.

Is matrix subtraction order important?

Yes. A − B is not the same as B − A: every number changes sign.

How do I multiply matrices instead?

Use the matrix multiplication calculator. The rule is different and the sizes only need to match inside.