Matrix Subtraction Calculator

Subtract two matrices element by element. Matrices must have the same dimensions.

Matrix Size

Matrix A

Matrix B

Result: A - B

Difference Matrix

4
4
4
4

Formula

For matrices A and B of the same dimensions, the difference C = A - B is calculated as:

C[i][j] = A[i][j] - B[i][j]