Matrix Multiplication Calculator: Products, Sizes, and Claim Checks
A matrix multiplication calculator builds each entry row times column, one pairing at a time. It helps students work through matrix products and understand how individual values combine to form a new matrix.
A matrix multiplication calculator checks the inner dimensions first, because the pairing needs equal lengths. This makes it easier to identify compatible matrices, calculate products, and verify whether a proposed result is valid.
Default product rows 19, 22 and 43, 50.
Using the Matrix Multiplication Calculator
Open the matrix multiplication calculator and pick the mode that matches your sizes.
Multiply 2x2: Enter the four entries of each 2x2 factor, then calculate the four-entry product.
Multiply 3x3: Enter the nine entries of each 3x3 factor, then calculate the nine-entry product.
Dimension Check: Enter both sizes to see whether the product is defined and what shape it takes.
Order Check: Enter two factors to compare AB with BA side by side.
Check My Answer: Enter the factors and a claimed product to see which entry slips.
What the Product Means
Think of the matrix multiplication calculator as repeated dot product work: each entry pairs one row with one column.
For every position in the result, multiply corresponding values from the selected row and column, then add those products together. Each row combines with every column to produce one entry, so the number of rows in the first matrix and columns in the second matrix determines the product's size.
The order matters from the first pairing, because swapping the factors changes the pairings. Even when both multiplication orders are possible, the resulting matrices may have different dimensions or values.
How to Multiply Matrices
The Dimension Gate
Before multiplying two matrices, check their dimensions. The number of columns in the first matrix must equal the number of rows in the second matrix. If these middle numbers do not match, the product is undefined.
For example, a 2x3 matrix can multiply a 3x4 matrix because both middle numbers are 3. However, a 2x3 matrix cannot multiply a 2x4 matrix because 3 and 2 do not match.
The Row Rule
Take one complete row from the first matrix. This row supplies the first set of values for each calculation. Each value will be paired with a corresponding value from a column in the second matrix.
The Column Rule
Take one complete column from the second matrix and multiply its values by the corresponding values in the selected row. Add the individual products to find one entry in the answer.
The matrix multiplication calculator reads the outer dimensions to name the answer shape. The result size comes from the rows of the first factor and the columns of the second factor.
Multiply 2x2 Results
Choose a mode based on the matrix sizes or the type of check you want to perform. Each option focuses on a different part of the multiplication process, from calculating a complete product to checking dimensions and verifying an answer.
Each mode of the matrix multiplication calculator multiplies matching entries and adds the products.
Multiply 2x2
Enter two matrices with two rows and two columns each. The mode calculates all four entries of the resulting matrix using row and column matches.
Multiply 3x3
Enter two three-row, three-column matrices to calculate a nine-entry product. Each result position uses one row from the first matrix and one column from the second.
Dimension Check
Enter the dimensions of both matrices to determine whether their multiplication is valid. The mode checks whether the middle numbers match and identifies the possible answer shape.
Order Check
Compare the two multiplication orders to see how changing the factor positions affects compatibility, dimensions, and calculated values.
Check My Answer
Enter the original matrices and your proposed product. The mode compares the calculated entries with your answer to identify any incorrect values.
Worked Examples
Use sample matrices to follow the multiplication process from selecting rows and columns to calculating and arranging the final entries.
Reading the Result
Review the resulting matrix by its rows, columns, and individual entries. Check the displayed dimensions and calculations to understand how each value was obtained.
The matrix multiplication calculator writes each entry as a sum of products, never as a single pair.
| First Matrix | Second Matrix | Product |
|---|---|---|
| [[1,2],[3,4]] | [[5,6],[7,8]] | [[19,22],[43,50]] |
| [[2,0],[1,3]] | [[4,1],[2,5]] | [[8,2],[10,16]] |
| [[3,-2],[5,1]] | [[1,0],[0,1]] | [[3,-2],[5,1]] |
| [[2,1],[0,3]] | [[1,4],[2,0]] | [[4,8],[6,0]] |
| [[1,2],[3,4]] | [[2,0],[1,3]] | [[4,6],[10,12]] |
Multiply 3x3 Results
The matrix multiplication calculator keeps each column pairing visible, so long sums stay easy to audit.
| First Matrix | Second Matrix | Product |
|---|---|---|
| [[1,2,0],[0,1,3],[2,0,1]] | [[2,1,0],[1,0,2],[0,3,1]] | [[4,1,4],[1,9,5],[4,5,1]] |
| [[2,0,1],[1,3,2],[0,1,1]] | [[1,2,0],[0,1,3],[2,0,1]] | [[4,4,1],[5,5,11],[2,1,4]] |
| [[1,1,0],[0,1,1],[1,0,1]] | [[2,0,1],[1,3,0],[0,2,2]] | [[3,3,1],[1,5,2],[2,2,3]] |
Dimension Check Results
The matrix multiplication calculator stops at once when a dimension mismatch makes the pairing impossible.
For multiplication to be defined, the number of columns in the first matrix must match the number of rows in the second matrix. When they match, the outside numbers determine the product size.
| First Matrix | Second Matrix | Status | Result Size |
|---|---|---|---|
| 2x3 | 3x2 | Defined | 2x2 |
| 2x3 | 2x3 | Undefined | Not possible |
| 3x2 | 2x4 | Defined | 3x4 |
| 2x2 | 3x3 | Undefined | Not possible |
| 1x4 | 4x3 | Defined | 1x3 |
A zero matrix factor gives a zero product, but a zero product does not need a zero factor. Different nonzero matrices can also produce an all-zero result when their row-column calculations cancel each other.
Steps and Worked Examples
The matrix multiplication calculator shows the four product entries in reading order.
For the example below, multiply the first matrix by the second matrix. Each entry comes from multiplying one row by one column and adding the two products.
[[1,2],[3,4]] x [[5,6],[7,8]] = [[19,22],[43,50]]
| Result Entry | Calculation | Answer |
|---|---|---|
| c11 | 1x5 + 2x7 | 19 |
| c12 | 1x6 + 2x8 | 22 |
| c21 | 3x5 + 4x7 | 43 |
| c22 | 3x6 + 4x8 | 50 |
The four calculations fill the result from left to right, starting with the first row and continuing to the second row.
Reading the Result
Read the product matrix row by row, moving from left to right. Each entry represents the added products from one row of the first matrix and one column of the second matrix.
Check the displayed dimensions first, then review individual values and their signs. A valid product should have the same number of rows as the first matrix and the same number of columns as the second matrix.
A fast identity matrix check with the matrix multiplication calculator catches most slips before you submit.
Checking a Claimed Answer
A claimed product check is fastest when the sizes are read first. Confirm that multiplication is defined, then compare the proposed entries with the calculated product.
The matrix multiplication calculator names the slip, so an entrywise product can be rebuilt one entry at a time.
| First Matrix x Second Matrix | Claimed Answer | Check | Correct Answer |
|---|---|---|---|
| [[1,2],[3,4]] x [[5,6],[7,8]] | [[5,12],[21,32]] | Entrywise slip | [[19,22],[43,50]] |
| [[1,2],[3,4]] x [[5,6],[7,8]] | [[23,34],[31,46]] | Wrong order | [[19,22],[43,50]] |
| [[1,2],[3,4]] x [[5,-6],[7,8]] | [[19,22],[43,50]] | Sign dropped | [[19,10],[43,14]] |
| 2x3 x 2x3 | Defined | Dimension mismatch | Undefined |
| [[1,2],[3,4]] x [[5,6],[7,8]] | [[19,22],[43,50]] | Matches | [[19,22],[43,50]] |
When the product must undo a matrix instead, run an inverse product check before mixing topics.
Common Mistakes
Entrywise and Size Slips
A common mistake is matching values by position instead of pairing a complete row with a complete column. Another is writing the product with the wrong dimensions. Always check the middle numbers before calculating and use the outside numbers to determine the answer shape.
Order and Sign Slips
Changing the order of the factors changes the multiplication process. Negative values also require careful attention because their signs affect the final sums.
The reverse order is a different problem, not a shortcut.
| Matrix A | Matrix B | AB | BA |
|---|---|---|---|
| [[1,2],[3,4]] | [[0,1],[1,0]] | [[2,1],[4,3]] | [[3,4],[1,2]] |
| [[1,2],[3,4]] | [[5,6],[7,8]] | [[19,22],[43,50]] | [[23,34],[31,46]] |
Quick Answers
These quick answers mirror the matrix multiplication calculator defaults.
Why is the top-left entry 19 and not 5? [[1,2],[3,4]] x [[5,6],[7,8]] gives c11 1x5 + 2x7 = 19, so the product is [[19,22],[43,50]].
When is a product undefined? 2x3 x 2x3 is Undefined because the inner numbers 3 and 2 differ.
Does swapping the factors keep the answer? AB is [[19,22],[43,50]] while BA is [[23,34],[31,46]], so the answer changes.
What size is a 2x3 times 3x2 product? The outer numbers give 2x2, while the reverse order gives 3x3.
What does the identity do? [[3,-2],[5,1]] x [[1,0],[0,1]] = [[3,-2],[5,1]], so the matrix stays unchanged.
Can nonzero factors give a zero product? [[1,1],[1,1]] x [[1,-1],[-1,1]] = [[0,0],[0,0]], so yes.
Frequently Asked Questions
Final Thought
Accurate matrix multiplication depends on matching the correct dimensions and calculating every entry carefully. Before accepting a result, read the sizes first, then check the order and each row sum. Use the matrix multiplication calculator to multiply each row by the matching column, adding the products to build every entry of the answer. Check that the middle dimensions agree before calculating, and remember that swapping the order can change the result or make the product impossible. Recheck signs and row sums before accepting the final matrix. Careful entry checks prevent most size and sign slips.
