Matrix Addition

Matrix Addition combines two matrices of the same size by adding each pair of elements in matching positions; use it to combine data sets.

(A+B)ij=aij+bij(A + B)_{ij} = a_{ij} + b_{ij}

Solve a problem with Matrix Addition

Type the problem. The solver will use Matrix Addition where Matrix Addition is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Matrix Addition takes
AA
BB
aija_{ij}
bijb_{ij}
Matrix Addition
SymbolMeaning
AAThe first matrix in the addition, containing numbers arranged in rows and columns.
BBThe second matrix being added to A, which must have the same dimensions as A.
aija_{ij}A single number from matrix A located in row i and column j; misreading this as only row i or only column j will cause you to add incomplete data.
bijb_{ij}A single number from matrix B in row i and column j, which is added directly to aija_{ij} to produce the element (A+B)ij(A+B)_{ij}.

When to use it

Use matrix addition when combining two data sets organized in a rectangular array, such as sales figures from different days or combining coordinate data.

Level

Usually taught in: Algebra II

Worked examples

1. Add two simple 2×2 matrices with small integers

Problem

Add the matrices (2314)\begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix} and (1232)\begin{pmatrix} 1 & 2 \\ 3 & 2 \end{pmatrix}.
  1. (2314)+(1232)\begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix} + \begin{pmatrix} 1 & 2 \\ 3 & 2 \end{pmatrix}

    Write down both matrices in addition form to identify all pairs of corresponding elements.

  2. (2+13+21+34+2)\begin{pmatrix} 2+1 & 3+2 \\ 1+3 & 4+2 \end{pmatrix}

    Add each pair of corresponding elements: position (1,1)(1,1) becomes 2+12 + 1, position (1,2)(1,2) becomes 3+23 + 2, and so on.

  3. (3546)\begin{pmatrix} 3 & 5 \\ 4 & 6 \end{pmatrix}

    Simplify each addition to get the final result matrix.

Answer: (3546)\begin{pmatrix} 3 & 5 \\ 4 & 6 \end{pmatrix}

Matrix addition works element-by-element, so every element of the result comes from adding the elements in the same position. This is ordinary arithmetic applied to each location in the matrix.

2. Add matrices with negative numbers and fractions

Problem

Add the matrices (11223)\begin{pmatrix} -1 & \frac{1}{2} \\ 2 & -3 \end{pmatrix} and (33212)\begin{pmatrix} 3 & -\frac{3}{2} \\ -1 & 2 \end{pmatrix}.
  1. (11223)+(33212)\begin{pmatrix} -1 & \frac{1}{2} \\ 2 & -3 \end{pmatrix} + \begin{pmatrix} 3 & -\frac{3}{2} \\ -1 & 2 \end{pmatrix}

    Write out both matrices, paying careful attention to negative signs and fraction symbols.

  2. (1+312+(32)2+(1)3+2)\begin{pmatrix} -1+3 & \frac{1}{2}+\left(-\frac{3}{2}\right) \\ 2+(-1) & -3+2 \end{pmatrix}

    Add each pair, being careful with negative numbers and fractions. For fractions, use the rule ac+bc=a+bc\frac{a}{c} + \frac{b}{c} = \frac{a+b}{c}.

  3. (213211)\begin{pmatrix} 2 & \frac{1-3}{2} \\ 1 & -1 \end{pmatrix}

    Simplify the subtraction inside the fraction: 13=21 - 3 = -2.

  4. (2111)\begin{pmatrix} 2 & -1 \\ 1 & -1 \end{pmatrix}

    Finish simplifying: 22=1\frac{-2}{2} = -1.

Answer: (2111)\begin{pmatrix} 2 & -1 \\ 1 & -1 \end{pmatrix}

This example shows that matrix addition works the same with negative numbers and fractions as with positive integers. Each element is added using ordinary arithmetic rules, and fractions are combined using standard fraction addition.

3. Word problem: combine bake sale data from two time periods

Problem

At the school bake sale, the 9th grade club sold items over two time periods. In the morning, they sold 45 cookies and 30 cupcakes. In the afternoon, they sold 38 cookies and 25 cupcakes. Use matrix addition to find the total sales for each item.
  1. (4530)+(3825)\begin{pmatrix} 45 & 30 \end{pmatrix} + \begin{pmatrix} 38 & 25 \end{pmatrix}

    Organize the data into matrices: the first represents morning sales (cookies, cupcakes) and the second represents afternoon sales.

  2. (45+3830+25)\begin{pmatrix} 45 + 38 & 30 + 25 \end{pmatrix}

    Add each pair of corresponding elements: cookies add to 45+3845 + 38 and cupcakes add to 30+2530 + 25.

  3. (8355)\begin{pmatrix} 83 & 55 \end{pmatrix}

    Simplify the arithmetic: 45+38=8345 + 38 = 83 and 30+25=5530 + 25 = 55.

Answer: (8355)\begin{pmatrix} 83 & 55 \end{pmatrix}

Word problems with matrix addition often involve combining data from different time periods, groups, or locations. By organizing the data in matrices and adding them, we can find combined totals systematically. The result shows 83 total cookies and 55 total cupcakes were sold.

Common mistakes

Where Matrix Addition usually goes wrong
Answer came out wrong
Trying to add matrices of different dimensions, such as adding a 2×22 \times 2 matrix to a 2×32 \times 3 matrix.
Check the dimensions of both matrices before adding. If they do not match, you cannot perform the addition.
Adding only some elements instead of all of them, such as writing (35)\begin{pmatrix} 3 & 5 \end{pmatrix} as the answer to (1234)+(2312)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} + \begin{pmatrix} 2 & 3 \\ 1 & 2 \end{pmatrix} by only adding the first row.
Add systematically: (1+22+33+14+2)=(3546)\begin{pmatrix} 1+2 & 2+3 \\ 3+1 & 4+2 \end{pmatrix} = \begin{pmatrix} 3 & 5 \\ 4 & 6 \end{pmatrix}.
Confusing matrix addition with matrix multiplication when combining data sets.
Use matrix addition when combining separate data sets (like sales from two stores); use matrix multiplication for linear transformations or composing operations.
The mistakeWhy it is wrongThe fix
Trying to add matrices of different dimensions, such as adding a 2×22 \times 2 matrix to a 2×32 \times 3 matrix.You can only add matrices that have exactly the same dimensions—the same number of rows and the same number of columns.Check the dimensions of both matrices before adding. If they do not match, you cannot perform the addition.
Adding only some elements instead of all of them, such as writing (35)\begin{pmatrix} 3 & 5 \end{pmatrix} as the answer to (1234)+(2312)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} + \begin{pmatrix} 2 & 3 \\ 1 & 2 \end{pmatrix} by only adding the first row.Matrix addition requires that you add every single pair of corresponding elements. Skipping elements or rows means you are not actually performing matrix addition.Add systematically: (1+22+33+14+2)=(3546)\begin{pmatrix} 1+2 & 2+3 \\ 3+1 & 4+2 \end{pmatrix} = \begin{pmatrix} 3 & 5 \\ 4 & 6 \end{pmatrix}.
Confusing matrix addition with matrix multiplication when combining data sets.Matrix addition and multiplication are completely different operations with different rules and purposes. Addition adds elements position-by-position; multiplication combines rows and columns using a different formula entirely.Use matrix addition when combining separate data sets (like sales from two stores); use matrix multiplication for linear transformations or composing operations.

Tips and when to use something else

  • Both matrices must have the same dimensions—count the rows and columns of each matrix before you start adding.
  • Add each element individually in its own position; you cannot skip any elements or rearrange which pairs you add together.
  • Matrix addition is commutative, so A+B=B+AA + B = B + A—order does not matter (unlike matrix multiplication, where ABBAAB \neq BA in general).
  • For combining separate data sets like sales or test scores, matrix addition is the right tool; for rotating or transforming shapes, use matrix multiplication instead.

Frequently asked questions

Can I add matrices of different sizes?
No, both matrices must have exactly the same dimensions. A 2×32 \times 3 matrix cannot be added to a 3×23 \times 2 matrix, or to a 2×22 \times 2 matrix. The number of rows must match, and the number of columns must match.
What is the difference between matrix addition and matrix multiplication?
Matrix addition adds elements in the same position together. Matrix multiplication combines entire rows and columns following a different rule. Use addition to combine separate data; use multiplication for transformations or finding products of related quantities.
Does order matter in matrix addition—is A+BA + B the same as B+AB + A?
Yes, they are the same. Matrix addition is commutative, so A+B=B+AA + B = B + A. This is different from matrix multiplication, where order usually matters and ABBAAB \neq BA.
What do I do if my matrices contain negative numbers or fractions?
Add them using ordinary arithmetic rules. If an element is 3-3 and you are adding 55, the result is 3+5=2-3 + 5 = 2. If an element is 14\frac{1}{4} and you are adding 34\frac{3}{4}, the result is 14+34=1\frac{1}{4} + \frac{3}{4} = 1.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18