Matrix Subtraction
Subtract two matrices element by element. Both matrices must have the same dimensions.
−
What Is Matrix Subtraction?
Subtract one matrix from another, element by element — both need the same dimensions. A 3×3 minus a 3×3 works; a 3×3 minus a 2×4 does not. And everything runs in your browser. Nothing gets uploaded.
FAQ
Do both matrices need the same size?
Yes. Matrix subtraction requires identical dimensions. A 3×3 can only be subtracted from another 3×3.
Is A−B the same as B−A?
No. Matrix subtraction is not commutative. A−B = −(B−A), meaning each element is negated.
Can I use negative numbers?
Yes. Negative numbers, decimals, and zero are all supported in the input matrices.
What format should I use?
Enter one row per line with values separated by spaces, commas, or tabs.