Matrix addition calculator

Type two matrices of the same size, one row per line with the numbers separated by spaces, and get their sum.

One row per line, numbers separated by spaces. Fractions such as 1/2 are allowed.

Fill in the fields; the answer appears here straight away.

How it works

  1. Enter the values

    Type the numbers or the formula. Decimals may use a point or a comma. No idea? Click Fill in an example.

  2. Instant answer

    The answer appears as you type, with the most important intermediate values.

  3. See the working

    Under "How it's worked out" you see the steps, handy for checking your own calculation.

How matrices are added

Add the numbers in the same position: the top-left of A plus the top-left of B, and so on. That only works when both matrices have the same number of rows and columns; otherwise you get a message saying which sizes you entered.

For A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]], A + B = [[6, 8], [10, 12]].

Fractions such as 1/2 are allowed and the result is exact. To subtract, use the matrix subtraction calculator.

Frequently asked questions

Is the matrix addition free?

Yes. The matrix addition is completely free, with no account, sign-up or usage limit.

How accurate is the result?

The tool calculates with your browser's number precision. For important calculations, always double-check what you entered.

Does it work on my phone?

Yes. The tool works in any modern browser on a phone, tablet or computer.