Matrix Addition Calculator

Matrix addition and subtraction are fundamental operations in linear algebra. You can add or subtract two matrices only if they have the same dimensions, meaning the same number of rows and columns. This calculator supports 2x2 and 3x3 matrices and performs both addition (A + B) and subtraction (A - B) instantly. Enter your matrix values, and the calculator displays both the sum and difference of your matrices, making it easy to verify your linear algebra computations.

Matrix A

Matrix B

A + B

A - B

Matrix addition and subtraction

(A + B)ij = Aij + Bij
(A - B)ij = Aij - Bij

Matrix addition calculator: frequently asked questions

What is matrix addition?

Matrix addition is the operation of adding corresponding elements of two matrices of the same dimensions. If A and B are matrices with the same number of rows and columns, then A + B is found by adding each element in position (i,j) of A to the element in position (i,j) of B.

When can you add two matrices?

Two matrices can be added only if they have the same dimensions, meaning they have the same number of rows and the same number of columns. For example, you can add two 2x3 matrices, but not a 2x3 matrix and a 3x2 matrix.

Is matrix addition commutative?

Yes, matrix addition is commutative, meaning A + B = B + A. The order in which you add matrices does not matter. This differs from matrix multiplication, where A * B does not always equal B * A.

What is matrix subtraction?

Matrix subtraction is similar to addition: you subtract corresponding elements. A - B is found by subtracting each element in position (i,j) of B from the element in position (i,j) of A. You can also think of it as A + (-B), adding A to the negative of B.

What are real-world applications of matrix addition?

Matrix addition is used in computer graphics (combining transformations), image processing (blending images), physics and engineering (combining forces or stresses), and data science (combining data from multiple sources). Any situation involving combining multi-dimensional data uses matrix operations.

Official sources

Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.