Matrix Addition Calculator

Add matrices together. Free online matrix addition calculator with step-by-step solution.

The Matrix Addition Calculator adds two matrices of the same dimensions element by element. Matrix addition is fundamental to linear algebra, computer graphics, data science, and many engineering applications. Enter your matrices and get the sum instantly with clear visual representation of the operation.

Matrix Addition Calculator

One row per line; separate values with spaces or commas.

One row per line; separate values with spaces or commas.

Formula: (A + B)ᵢⱼ = Aᵢⱼ + Bᵢⱼ (same dimensions required)

Worked example

Matrix A
1 2 3 4
Matrix B
5 6 7 8
A + B
[ 6 8 ] [ 10 12 ]
A − B[ -4 -4 ] [ -4 -4 ]
Dimensions2 × 2
Step by step
  1. Add matching entries, e.g. top-left: 1 + 5 = 6

Replace these values in the calculator above to compute your own numbers.

Common use cases

  • Linear algebra coursework
  • Image processing (combining images)
  • Financial data aggregation
  • Physics vector fields
  • Machine learning data operations

How to use

  1. Enter the dimensions (rows × columns)
  2. Input values for Matrix A
  3. Input values for Matrix B
  4. Click add to compute A + B
  5. View element-by-element addition

FAQ

How does matrix addition work?

Add corresponding elements: (A+B)ᵢⱼ = Aᵢⱼ + Bᵢⱼ. Matrices must have same dimensions.

Can I add matrices of different sizes?

No, matrix addition requires identical dimensions. A 2×3 and 3×2 matrix cannot be added.

Is matrix addition commutative?

Yes, A + B = B + A for matrix addition.

What about subtraction?

Same process with subtraction: (A-B)ᵢⱼ = Aᵢⱼ - Bᵢⱼ.