Math Tools Math Tools

Matrix Subtraction Calculator

Matrix Subtraction Calculator

Matrix subtraction works just like matrix addition: subtract two matrices by subtracting their corresponding entries. As with addition, both matrices must have the same number of rows and the same number of columns — and unlike subtracting plain numbers, A − B and B − A produce different matrices (every entry just flips sign between the two).

Make sure JavaScript is enabled for this calculator to work.

Advertisement

Build Your Matrices

Both matrices must be the same size to subtract them.

Matrix A

Matrix B

A − B

Advertisement

Matrix Subtraction Calculator Example

Matrix a b c d e f g h i, minus matrix A B C D E F G H I, equals the matrix of each pair subtracted entry-wise

Other Matrix Calculators

Advertisement