Math concepts

Matrix Multiplication Practice Problems with Solutions

November 24, 2026Ivan Terekhin5 min read
Matrix Multiplication Practice Problems with Solutions

Suppose a 2×32\times3 matrix multiplies a 3×23\times2 matrix. The answer is 2×22\times2, not 3×33\times3. The inner dimensions, both 3, tell you whether multiplication is defined. The outer dimensions, 2 and 2, tell you the result's shape. Write that shape before calculating a single entry. It catches a surprising number of otherwise plausible answers.

These practice problems move from a basic 2×22\times2 product to rectangular products, order, and a missing entry. Try each problem on paper before reading the solution. For the geometric meaning of a matrix, start with the intuitive matrices guide. Here the task is to multiply accurately and check your result. OpenStax College Algebra 2e, section 7.5 gives the row-by-column definition used throughout.

The row-by-column rule

If AA has mm rows and nn columns, and BB has nn rows and pp columns, then ABAB has mm rows and pp columns. Its entry in row ii and column jj is the dot product of row ii of AA with column jj of BB:

(AB)ij=∑k=1naikbkj.(AB)_{ij}=\sum_{k=1}^{n}a_{ik}b_{kj}.

Do not multiply entries in matching positions. Matrix multiplication combines a row with a column. An entrywise product is a different operation. If the inner dimensions disagree, stop: the product in that order is undefined. Reversing the factors may be defined, but it is a different calculation.

Before workingCheck
A2×3B3×2A_{2\times3}B_{3\times2}Defined; result 2×22\times2
B3×2A2×3B_{3\times2}A_{2\times3}Defined; result 3×33\times3
A2×3C2×2A_{2\times3}C_{2\times2}Undefined; 3 and 2 do not match

Problem 1: two square matrices

Let A=(2−134)A=\begin{pmatrix}2&-1\\3&4\end{pmatrix} and B=(520−3)B=\begin{pmatrix}5&2\\0&-3\end{pmatrix}. Find ABAB. Both matrices are 2×22\times2, so the result is 2×22\times2. Calculate each entry from one row and one column:

AB=(2(5)+(−1)(0)2(2)+(−1)(−3)3(5)+4(0)3(2)+4(−3))=(10715−6).AB=\begin{pmatrix} 2(5)+(-1)(0)&2(2)+(-1)(-3)\\ 3(5)+4(0)&3(2)+4(-3) \end{pmatrix} =\begin{pmatrix}10&7\\15&-6\end{pmatrix}.

Check. The top-right entry is 7 because 4+3=74+3=7. A common sign error gives 1 by treating (−1)(−3)(-1)(-3) as negative. The lower-right entry is 6−12=−66-12=-6. Check those two signs before moving on.

Problem 2: a rectangular product

Let C=(12−1034)C=\begin{pmatrix}1&2&-1\\0&3&4\end{pmatrix} and D=(20−1531)D=\begin{pmatrix}2&0\\-1&5\\3&1\end{pmatrix}. Find CDCD. The shapes are 2×32\times3 and 3×23\times2, so the answer has two rows and two columns:

CD=(1(2)+2(−1)+(−1)(3)1(0)+2(5)+(−1)(1)0(2)+3(−1)+4(3)0(0)+3(5)+4(1))=(−39919).CD=\begin{pmatrix} 1(2)+2(-1)+(-1)(3)&1(0)+2(5)+(-1)(1)\\ 0(2)+3(-1)+4(3)&0(0)+3(5)+4(1) \end{pmatrix} =\begin{pmatrix}-3&9\\9&19\end{pmatrix}.

Independent check. The first output column is C(2−13)=(−39)C\begin{pmatrix}2\\-1\\3\end{pmatrix}=\begin{pmatrix}-3\\9\end{pmatrix}. It agrees with the first column above. This column-by-column view is useful when a long row calculation is hard to inspect.

Problem 3: does reversing the order change the answer?

Use the matrices from Problem 1. BABA is also defined, but calculate it rather than assuming it equals ABAB:

BA=(5(2)+2(3)5(−1)+2(4)0(2)+(−3)(3)0(−1)+(−3)(4))=(163−9−12).BA=\begin{pmatrix} 5(2)+2(3)&5(-1)+2(4)\\ 0(2)+(-3)(3)&0(-1)+(-3)(4) \end{pmatrix} =\begin{pmatrix}16&3\\-9&-12\end{pmatrix}.

This differs from AB=(10715−6)AB=\begin{pmatrix}10&7\\15&-6\end{pmatrix}. Matrix multiplication is generally order-sensitive. Even the shape can change: in Problem 2, DCDC is 3×33\times3 while CDCD is 2×22\times2. When a problem represents successive transformations, the order also changes what happens first. The vectors guide gives a starting point for thinking about inputs and directions.

Problem 4: find a missing entry from a product

Let E=(1x2−1)E=\begin{pmatrix}1&x\\2&-1\end{pmatrix} and F=(3450)F=\begin{pmatrix}3&4\\5&0\end{pmatrix}. Suppose the top-left entry of EFEF is 18. Find xx, then calculate all of EFEF.

The top-left entry is row 1 of EE dotted with column 1 of FF: 1(3)+x(5)=3+5x1(3)+x(5)=3+5x. Thus 3+5x=183+5x=18, so x=3x=3. Substitute before computing the other entries:

EF=(132−1)(3450)=(18418).EF=\begin{pmatrix}1&3\\2&-1\end{pmatrix} \begin{pmatrix}3&4\\5&0\end{pmatrix} =\begin{pmatrix}18&4\\1&8\end{pmatrix}.

Check. Row 2 with column 1 gives 2(3)+(−1)(5)=12(3)+(-1)(5)=1. Row 2 with column 2 gives 2(4)+(−1)(0)=82(4)+(-1)(0)=8. The known entry is one equation, not permission to fill the rest by pattern.

Problem 5: identify an undefined product

Let GG be 3×23\times2 and HH be 3×33\times3. Can you calculate GHGH or HGHG? For GHGH, the inner dimensions are 2 and 3, so it is undefined. For HGHG, they are both 3, so the product exists and has shape 3×23\times2. No entries are needed to answer this question. It is often worth checking dimensions before copying numbers into a long calculation.

Find the wrong step

Proposed methodWhy it failsFirst repair
CDCD is 3×33\times3The inner dimensions were kept instead of the outer ones2×32\times3 times 3×23\times2 gives 2×22\times2
Multiply AA and BB entry by entryThat is not the matrix productPair one row with one column
Set BA=ABBA=ABOrder matters in generalCalculate both products separately
Continue with GHGH although 2 ≠ 3No product exists in that orderCheck HGHG if the question permits it

For a final self-check, multiply (12)\begin{pmatrix}1&2\end{pmatrix} by (34)\begin{pmatrix}3\\4\end{pmatrix}. The shapes 1×21\times2 and 2×12\times1 give a 1×11\times1 result, with entry 1(3)+2(4)=111(3)+2(4)=11. Reversing the factors yields a 2×22\times2 matrix (3648)\begin{pmatrix}3&6\\4&8\end{pmatrix}. The same numbers produce different shapes and values in different orders.

The habit to keep is simple: write the dimensions, choose a row and column, calculate one dot product, then check the result's shape and signs. Math Zen's matrices practice gives more exercises when you want fresh values. If multiplication is part of solving a linear system, the systems-of-equations guide explains the larger problem the matrices represent.

Edited by Ivan Terekhin, drafted with AI tools.