CalcWorldHub
Math · CalcWorldHub

How to Multiply 2×2 Matrices: Row-by-Column Steps

To multiply two 2×2 matrices, take each row of the first matrix and dot it with each column of the second. For A=[[1,2],[3,4]] and B=[[2,0],[1,3]], AB=[[4,6],[10,12]]. The order matters: the product is A times B, not an unordered combination.

Open calculator
Two square matrices are multiplied row by column to form a new four-cell matrix.

Share this article

A row from the left matrix and a column from the right matrix are paired, multiplied component by component, and added to make one output entry.
One row-column pairing makes one cell of the product.

Build every output cell from a row and a column

Write A=[[a,b],[c,d]] and B=[[e,f],[g,h]]. The four product entries are AB=[[ae+bg, af+bh],[ce+dg, cf+dh]]. The first output uses row 1 of A with column 1 of B; moving across chooses the next column, and moving down chooses the next row.

For example, the upper-right entry is af+bh, not ab+fh. Multiplication pairs positions only after selecting the row and column. Each pair of products is then added. The calculator takes A entries in row order A₁₁, A₁₂, A₂₁, A₂₂, followed by B₁₁, B₁₂, B₂₁, B₂₂.

The two inner dimensions must agree. A 2×2 matrix multiplied by a 2×2 matrix produces another 2×2 matrix. This tool is fixed to that shape; it does not accept rectangular matrices or infer a different multiplication order from the labels.

Worked examples

Example 1 · multiply in the stated order

Inputs: A=[[1,2],[3,4]] and B=[[2,0],[1,3]].

Calculation: AB=[[1×2+2×1, 1×0+2×3], [3×2+4×1, 3×0+4×3]]=[[4,6],[10,12]].

The product has four entries; the top-right and bottom-left values come from different row-column pairs.

Example 2 · include negative entries

Inputs: A=[[-1,2],[0,3]] and B=[[4,1],[2,-2]].

Calculation: AB=[[(-1)×4+2×2, (-1)×1+2×(-2)], [0×4+3×2, 0×1+3×(-2)]]=[[0,-5],[6,-6]].

The zero upper-left entry is cancellation; it does not make the product matrix a zero matrix.

The product of [[1,2],[3,4]] and [[2,0],[1,3]] is [[4,6],[10,12]].
Check the order and each row-column pair.

Respect the order of the operations

Matrix multiplication is generally not commutative. In the example above, AB=[[4,6],[10,12]], while BA=[[2,4],[10,14]]. Both products exist, but their entries differ. A calculator result is meaningful only when you preserve which matrix acts first in the represented process.

When matrices encode successive linear transformations, the rightmost matrix acts on a column vector first: A(Bx)=(AB)x. This convention can feel reversed if the steps are described verbally. Test a simple vector or inspect one output entry before deciding whether A or B should be on the left.

Attach units and meaning to the entries

The tool accepts numbers without unit fields. In pure algebra the entries are often dimensionless. If a matrix represents a physical mapping, document what one input and one output component mean. Matrix entries may carry units, and each product entry then combines the units of an A coefficient with a B coefficient.

For a two-stage mapping, label the intermediate quantity explicitly. If B converts an input representation into an intermediate state and A maps that state to a final output, the combined map is AB. Inserting a conversion in the wrong position can leave the arithmetic valid while the model is dimensionally or conceptually wrong.

Use identity and zero matrices as checks

The 2×2 identity matrix I=[[1,0],[0,1]] should satisfy AI=A and IA=A. This is a useful independent check for the row and column order. The zero matrix should produce a zero matrix on either side. These tests catch indexing slips without relying on a complex example.

A product can contain zero entries even when neither input is the zero matrix because positive and negative products can cancel. Do not interpret a zero result cell as evidence that the whole transformation is zero. Compare all four entries and, when useful, verify the product by applying it to a test vector.

Check one row-column calculation by hand

For a manual spot check, calculate one output at a time and write its paired terms. With the first example, the lower-left cell is 3×2+4×1=10. This catches a common transposition error: using a row from B instead of a column. Then verify the remaining cells or multiply the resulting matrix by a simple vector.

The calculator displays each entry rounded to five decimal places. Integer and terminating-decimal examples are convenient for checking the display. For fractional or very large inputs, compare with sufficient precision and remember that floating-point arithmetic can round the printed value.

Know what this calculator does not decide

This page calculates one fixed product A×B. It does not test whether the matrices describe the right real-world model, find eigenvalues, solve a system, or estimate uncertainty in measurements. If the matrices represent data transformations, confirm the row and column labels before entering numbers.

A 2×2 example is small enough to audit directly. For larger matrices, sparse data, numerical conditioning, or chained transformations, use a tool designed for those tasks and preserve its precision and dimension checks. The hand calculation below is a reproducible input-output check, not a claim that any chosen matrix is appropriate for an application.

Sources and further reading

Share this article

Browse all articles · Calculator: 2×2 matrix product calculator