How to Do Matrix Multiplication

Learn how to do matrix multiplication with row-by-column products, size checks, examples, common mistakes, troubleshooting, and FAQs.

EducationEdited by Pramod Tiwari
2 min read

Quick Answer

To do matrix multiplication, confirm the first matrix columns equal the second matrix rows, multiply each row by each column, add the products, and place each result in the matching position.

What You Need

  • Two matrices
  • Paper or spreadsheet
  • Multiplication and addition skills
  • Clear row and column labels
  • Calculator if allowed

Safety Precautions

  • Check matrix dimensions before multiplying.
  • Keep row and column order consistent.
  • Remember that matrix multiplication order matters.
  • Do not multiply matching positions only unless the problem specifically asks for element-wise multiplication.

Step-by-Step Instructions

  1. Step 1

    Check dimensions

    A matrix with size m x n can multiply a matrix with size n x p.

  2. Step 2

    Set result size

    The answer will have size m x p.

  3. Step 3

    Choose a row

    Start with the first row of the first matrix.

  4. Step 4

    Choose a column

    Use the first column of the second matrix.

  5. Step 5

    Multiply pairs

    Multiply matching entries from the row and column.

  6. Step 6

    Add products

    Add those products to get one answer entry.

  7. Step 7

    Repeat

    Repeat for every row-column pair.

Practical Example

Example: For row [1, 2] and column [3, 4], the entry is 1 x 3 + 2 x 4 = 11.

Common Mistakes

  • Ignoring dimensions
  • Multiplying element by element
  • Switching row and column order
  • Forgetting to add products
  • Misplacing answer entries
  • Assuming AB equals BA

Troubleshooting

Dimensions do not match

The matrices cannot be multiplied in that order.

Answer size seems wrong

Use outside dimensions: m x p.

Numbers are correct but misplaced

Label rows and columns before calculating.

AB and BA differ

That is normal; matrix multiplication is usually not commutative.

FAQs

When can two matrices be multiplied?

When columns of the first equal rows of the second.

What size is the result?

The result uses rows of the first and columns of the second.

Does order matter?

Yes. AB and BA can be different or one may be impossible.

What is a row-by-column product?

It means multiply matching row and column entries, then add them.

Education2 min read

How to Divide

Learn how to divide numbers with sharing, long division basics, remainders, decimals, examples, common mistakes, troubleshooting, and FAQs.

Education2 min read

How to Obtain Square Root

Learn how to obtain square roots by factor pairs, estimation, calculators, and checking answers, with mistakes, troubleshooting, and FAQs.

Education2 min read

How to Learn Math

Learn how to learn math with foundations, examples, practice, mistake review, problem-solving habits, troubleshooting, and FAQs.

Help us improve this guide

Tell us about an outdated instruction, unclear step, broken link or safety concern. Do not include passwords, account numbers, medical records or other sensitive information.

Email a correction or suggestion