Matrix Subtraction Calculator

Subtract matrices step by step

The calculator will find the difference of two matrices (if possible), with steps shown. It subtracts matrices of any size up to 10x10 (2x2, 3x3, 4x4, etc.).

$$$\times$$$
A
$$$\times$$$
A

If the calculator didn't work as expected, or you'd like to report an error or share feedback, please contact us.

Your Input

Calculate $$$\left[\begin{array}{ccc}1 & 2 & -3\\2 & -3 & -5\\1 & 7 & 1\end{array}\right] - \left[\begin{array}{ccc}2 & -3 & 0\\1 & 1 & 5\\1 & 0 & -1\end{array}\right].$$$

Solution

$$$\left[\begin{array}{ccc}{\color{BlueViolet}1} & {\color{Violet}2} & {\color{Chartreuse}-3}\\{\color{Peru}2} & {\color{DarkCyan}-3} & {\color{Blue}-5}\\{\color{OrangeRed}1} & {\color{Purple}7} & {\color{Crimson}1}\end{array}\right] - \left[\begin{array}{ccc}{\color{BlueViolet}2} & {\color{Violet}-3} & {\color{Chartreuse}0}\\{\color{Peru}1} & {\color{DarkCyan}1} & {\color{Blue}5}\\{\color{OrangeRed}1} & {\color{Purple}0} & {\color{Crimson}-1}\end{array}\right] = \left[\begin{array}{ccc}{\color{BlueViolet}\left(1\right)} - {\color{BlueViolet}\left(2\right)} & {\color{Violet}\left(2\right)} - {\color{Violet}\left(-3\right)} & {\color{Chartreuse}\left(-3\right)} - {\color{Chartreuse}\left(0\right)}\\{\color{Peru}\left(2\right)} - {\color{Peru}\left(1\right)} & {\color{DarkCyan}\left(-3\right)} - {\color{DarkCyan}\left(1\right)} & {\color{Blue}\left(-5\right)} - {\color{Blue}\left(5\right)}\\{\color{OrangeRed}\left(1\right)} - {\color{OrangeRed}\left(1\right)} & {\color{Purple}\left(7\right)} - {\color{Purple}\left(0\right)} & {\color{Crimson}\left(1\right)} - {\color{Crimson}\left(-1\right)}\end{array}\right] = \left[\begin{array}{ccc}-1 & 5 & -3\\1 & -4 & -10\\0 & 7 & 2\end{array}\right]$$$

Answer

$$$\left[\begin{array}{ccc}1 & 2 & -3\\2 & -3 & -5\\1 & 7 & 1\end{array}\right] - \left[\begin{array}{ccc}2 & -3 & 0\\1 & 1 & 5\\1 & 0 & -1\end{array}\right] = \left[\begin{array}{ccc}-1 & 5 & -3\\1 & -4 & -10\\0 & 7 & 2\end{array}\right]$$$A