# Matrix Subtraction Calculator

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$
$\times$

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please write it in the comments below.

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].$
$\left[\begin{array}{ccc}\color{GoldenRod}{1} & \color{BlueViolet}{2} & \color{Crimson}{-3}\\\color{DarkBlue}{2} & \color{Green}{-3} & \color{OrangeRed}{-5}\\\color{Brown}{1} & \color{Peru}{7} & \color{Chartreuse}{1}\end{array}\right] - \left[\begin{array}{ccc}\color{GoldenRod}{2} & \color{BlueViolet}{-3} & \color{Crimson}{0}\\\color{DarkBlue}{1} & \color{Green}{1} & \color{OrangeRed}{5}\\\color{Brown}{1} & \color{Peru}{0} & \color{Chartreuse}{-1}\end{array}\right] = \left[\begin{array}{ccc}\color{GoldenRod}{\left(1\right)} - \color{GoldenRod}{\left(2\right)} & \color{BlueViolet}{\left(2\right)} - \color{BlueViolet}{\left(-3\right)} & \color{Crimson}{\left(-3\right)} - \color{Crimson}{\left(0\right)}\\\color{DarkBlue}{\left(2\right)} - \color{DarkBlue}{\left(1\right)} & \color{Green}{\left(-3\right)} - \color{Green}{\left(1\right)} & \color{OrangeRed}{\left(-5\right)} - \color{OrangeRed}{\left(5\right)}\\\color{Brown}{\left(1\right)} - \color{Brown}{\left(1\right)} & \color{Peru}{\left(7\right)} - \color{Peru}{\left(0\right)} & \color{Chartreuse}{\left(1\right)} - \color{Chartreuse}{\left(-1\right)}\end{array}\right] = \left[\begin{array}{ccc}-1 & 5 & -3\\1 & -4 & -10\\0 & 7 & 2\end{array}\right]$
$\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