Matrix Subtraction Calculator

Subtract one matrix from another of any size. Select dimensions, enter entries, and get the result A − B instantly.

Loading calculator…

Notes

How Matrix Subtraction Works

Matrix subtraction is defined element-wise: each entry of A minus the corresponding entry of B. Both matrices must have identical dimensions.

Worked Example

Let A be:

57
39

Let B be:

24
16

Result A − B:

33
23
Both matrices must have identical dimensions for subtraction to be defined.

Frequently Asked Questions

Is matrix subtraction commutative?

No. A − B ≠ B − A in general. The order matters: A − B = −(B − A).

What are the conditions for matrix subtraction?

Both matrices must have the same number of rows and the same number of columns.

Can I write A − B as A + (−B)?

Yes. A − B = A + (−1)·B, where −B negates every element of B.