Skip to calculator
Veomark

Free · Instant · No signup

Matrix Addition, Subtraction & Multiplication Calculator

Add, subtract, or multiply two 2x2 matrices and print the four result entries.

Page updated 2026-09-04.

Matrix Addition, Subtraction & Multiplication Calculator visual
Sponsored

Calculator

Default 1.

Default 2.

Default 3.

Default 4.

Default 5.

Default 6.

Default 7.

Default 8.

Calculated Results

C11

--

C22

--

Sponsored

Multiplying, not just combining element by element

Multiplying matrix A [[1,2],[3,4]] by matrix B [[5,6],[7,8]] produces [[19, 22], [43, 50]] -- with C11 = 19 and C22 = 50, calculated using real matrix multiplication rules, not a simple element-by-element combination.

C11 (19) comes from the dot product of A's first row and B's first column: (1 x 5) + (2 x 7) = 5 + 14 = 19. Similarly, C22 (50) comes from A's second row and B's second column: (3 x 6) + (4 x 8) = 18 + 32 = 50 -- each output cell combines an entire row from A with an entire column from B, not just the corresponding single cells from each matrix.

This row-times-column structure is exactly why matrix multiplication is order-dependent -- A x B generally produces a different result than B x A, unlike ordinary number multiplication or a simple element-wise operation, which would be the same regardless of order.

Why this isn't the same as element-wise multiplication

2x2 only. Multiplication is A times B, not element-wise. A common point of confusion: element-wise multiplication (sometimes called the Hadamard product) would simply multiply each position directly -- A[1,1] x B[1,1], A[1,2] x B[1,2], and so on, producing [[5,12],[21,32]] for these same two matrices. That's a genuinely different operation from the standard matrix multiplication (row-dot-column) this calculator performs, which is the convention used in linear algebra, computer graphics transformations, and most mathematical contexts referring to 'matrix multiplication.'

This calculator is limited to 2x2 matrices specifically -- larger matrices (3x3 and beyond) follow the same underlying row-times-column logic, but require more computation and a properly sized calculator to handle correctly.

Matrix addition, by contrast, is genuinely element-wise (each position in A adds directly to the corresponding position in B) -- it's specifically matrix multiplication, not addition, where the row-times-column distinction from simple element-wise combination actually matters.

Related mathematical calculation tools

For a different structured algebra problem -- solving for the roots of a quadratic equation -- the Quadratic Equation Solver handles that separate calculation.

Frequently Asked Questions (FAQ)

How is C11 (19) calculated in the matrix product?

C11 = (A's first row) dot (B's first column) = (1 x 5) + (2 x 7) = 5 + 14 = 19. Matrix multiplication combines an entire row from A with an entire column from B, not just the single corresponding cells.

Why is matrix multiplication different from just multiplying each position directly?

2x2 only. Multiplication is A times B, not element-wise. Direct position-by-position multiplication (the Hadamard product) would give a different, simpler result. Standard matrix multiplication uses the row-times-column (dot product) method instead, which is the convention used throughout linear algebra and most mathematical and computational contexts.

Does A x B always equal B x A for matrices?

No, generally not. Because matrix multiplication combines rows of the first matrix with columns of the second, swapping the order changes which rows pair with which columns, typically producing a different result -- unlike ordinary number multiplication, which is always commutative.

Is matrix addition also row-times-column, like multiplication?

No. Matrix addition is genuinely element-wise -- each position in matrix A simply adds to the corresponding position in matrix B. It's specifically multiplication where the more complex row-times-column rule applies, not addition.

Can this calculator handle matrices larger than 2x2?

2x2 only. Multiplication is A times B, not element-wise. No, it's built specifically for 2x2 matrices. Larger matrices (3x3 and beyond) follow the same underlying multiplication logic but require a differently sized calculator to handle the additional rows, columns, and computation correctly.