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:
| 5 | 7 |
| 3 | 9 |
Let B be:
| 2 | 4 |
| 1 | 6 |
Result A − B:
| 3 | 3 |
| 2 | 3 |
Both matrices must have identical dimensions for subtraction to be defined.
See also
- Matrix Calculations Guide — Addition & Subtraction — In-depth notes on Addition & Subtraction with worked examples
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.