Matrix Subtraction Calculator

Subtract two matrices of the same size effortlessly.

Matrix Subtraction

Enter the dimensions and values of two matrices to compute their difference.

Enter Matrix Dimensions
About Matrix Subtraction

Matrix subtraction involves subtracting two matrices \( A \) and \( B \) of the same size \( m \times n \). The result matrix \( C \) has elements:

  • \( c_{ij} = a_{ij} - b_{ij} \)

For example, for \( A = \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} \) and \( B = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \), the result is \( \begin{bmatrix} 4 & 4 \\ 4 & 4 \end{bmatrix} \).