Matrix Multiplication Calculator
What is the Matrix Multiplication Calculator?
What this calculator does
This page multiplies matrices properly: two 2x2 matrices in the first group and two 3x3 matrices in the second. Every entry of each product is computed as a row of the first matrix dotted with a column of the second, never element by element.
The row-by-column rule
The entry of C in row i, column j is Cij = Ai1 × B1j + Ai2 × B2j, with a third term Ai3 × B3j added for 3x3 matrices. You run across a row of A and down a column of B, multiply the pairs, and add.
How the entries are labeled
Every box names its matrix, its size, and its row and column: "2x2 A - row 1, column 2" is the top-right entry of the first 2x2 matrix. Result tiles use the same wording for C, so each answer can be traced to its row and column without guessing.
The 2x2 product, entry by entry
For the defaults A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]]: C11 = 1 × 5 + 2 × 7 = 19, C12 = 1 × 6 + 2 × 8 = 22, C21 = 3 × 5 + 4 × 7 = 43, and C22 = 3 × 6 + 4 × 8 = 50.
The 3x3 product, one entry traced
For the default 3x3 matrices, the row 2, column 1 entry is C21 = 3 × 1 + 1 × 0 + 2 × 2 = 7: row 2 of A is (3, 1, 2) and column 1 of B is (1, 0, 2). Every other entry follows the same three-product pattern.
The full default 3x3 answer
Multiplying A = [[2, 0, 1], [3, 1, 2], [1, 4, 0]] by B = [[1, 2, 3], [0, 1, 1], [2, 0, 1]] gives C = [[4, 4, 7], [7, 7, 12], [1, 6, 7]]. Tracing one or two entries by hand, as above, verifies the whole grid.
Order matters: A × B is not B × A
Matrix multiplication is not commutative. Swapping the default 2x2 matrices gives B × A = [[23, 34], [31, 46]], completely different from A × B = [[19, 22], [43, 50]]. Fill the A boxes with the matrix that must act first, in the order your problem intends.
Why it is not element by element
Multiplying matching positions, 1 × 5, 2 × 6, and so on, is a different operation (sometimes called the Hadamard product) and is not what matrix multiplication means. The row-by-column rule exists because matrices represent transformations, and composing transformations mixes rows with columns in exactly this way.
The identity matrix check
Multiplying any matrix by the identity matrix of the same size returns the matrix unchanged. Set the 3x3 A group to the identity (1s on the diagonal, 0s elsewhere) and any B comes back as itself in the C tiles: a fast way to confirm you filled the boxes correctly.
The zero matrix check
If either factor is all zeros, every entry of the product is zero. Less obviously, nonzero matrices can also multiply to zero in special cases, something that never happens with ordinary numbers; the tiles simply report what the row-by-column sums give.
Decimals and negatives are fine
Entries may be decimals or negative numbers, and the products and sums follow ordinary signed arithmetic. The second schema example multiplies [[0. 5, -1], [2, 3]] by [[4, 1], [-2, 0. 5]] and gets [[4, 0], [2, 3. 5]], with an exact zero in the top-right entry.
What size means here
Both groups multiply square matrices of one fixed size: 2x2 times 2x2, or 3x3 times 3x3. General matrix multiplication allows rectangular shapes whenever the inner dimensions match, A's columns equaling B's rows; those shapes need a general-purpose tool and are outside this page's scope.
Where the operation shows up
Matrix products run computer graphics (rotating, scaling, and translating points), solve systems of linear equations, power Markov chains and transition tables, and chain linear transformations in physics and engineering. In each case the mixing of rows into columns is the whole point.
Precision of the displayed values
Every result tile is shown to four decimal places, with trailing zeros trimmed, so 19 displays as 19 and 3. 5 as 3. 5. With whole-number inputs every entry is exact; decimal inputs can produce entries that are rounded at the fourth decimal place for display.
What this calculator does not do
It does not add or subtract matrices, transpose them, or compute determinants, inverses, or eigenvalues; those operations have their own pages. It multiplies two square matrices of the same size, 2x2 or 3x3, and shows all four or all nine product entries.
A reliable hand-check habit
Pick the entry you can compute fastest, usually C11, and recompute it from the definition: across the first row of A, down the first column of B. If that single entry matches its tile, a systematic filling error is unlikely; if it differs, recheck which matrix went into which group.
With the pre-filled defaults — 2×2 A — row 1, column 1 1, 2×2 A — row 1, column 2 2, 2×2 A — row 2, column 1 3, and 23 more more inputs — the Matrix Multiplication Calculator returns 2×2 result C — row 1, column 1 19. 0000, 2×2 result C — row 1, column 2 22.
0000, and 11 more more results. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Matrix Multiplication Calculator
- 1Choose the group matching your matrices: 2x2 for two-by-two, 3x3 for three-by-three.
- 2Fill matrix A row by row, using each box's row and column label.
- 3Fill matrix B the same way, in the second group of boxes.
- 4Keep the order straight: the page computes A × B, and order changes the answer.
- 5Read the C result tiles, matching each tile's row and column to its position.
- 6Spot-check C11: first row of A dotted with first column of B.
- 7For 3x3 work, trace one middle entry by hand against its tile.
- 8If a check fails, confirm A and B were not swapped, then re-enter.
Formula
This is the core equation the Matrix Multiplication Calculator uses to calculate results. Enter values in the calculator above to see it in action.
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Default 2x2 product | A = [[1, 2], [3, 4]], B = [[5, 6], [7, 8]]: C11 = 1 × 5 + 2 × 7 = 19, C12 = 1 × 6 + 2 × 8 = 22, C21 = 3 × 5 + 4 × 7 = 43, C22 = 3 × 6 + 4 × 8 = 50 | C = [[19, 22], [43, 50]] |
| Default 3x3 product | A = [[2, 0, 1], [3, 1, 2], [1, 4, 0]], B = [[1, 2, 3], [0, 1, 1], [2, 0, 1]]: C21 = 3 × 1 + 1 × 0 + 2 × 2 = 7 and C33 = 1 × 3 + 4 × 1 + 0 × 1 = 7 | C = [[4, 4, 7], [7, 7, 12], [1, 6, 7]] |
| 2x2 with decimals and a negative | A = [[0.5, -1], [2, 3]], B = [[4, 1], [-2, 0.5]]: C11 = 0.5 × 4 + -1 × -2 = 4, C12 = 0.5 × 1 + -1 × 0.5 = 0, C21 = 2 × 4 + 3 × -2 = 2, C22 = 2 × 1 + 3 × 0.5 = 3.5 | C = [[4, 0], [2, 3.5]] |
| Identity matrix times any B | A = [[1, 0, 0], [0, 1, 0], [0, 0, 1]], B = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]: each row of A selects exactly one row of B unchanged | C = [[1, 2, 3], [4, 5, 6], [7, 8, 9]], equal to B |
Value Reference Table
See how the 2×2 result C — row 1, column 1 changes as 2×2 A — row 1, column 1 moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| 2×2 A — row 1, column 1 | 2×2 result C — row 1, column 1 | 2×2 result C — row 1, column 2 | 2×2 result C — row 2, column 1 | 2×2 result C — row 2, column 2 | 3×3 result C — row 1, column 1 | 3×3 result C — row 1, column 2 | 3×3 result C — row 1, column 3 | 3×3 result C — row 2, column 1 | 3×3 result C — row 2, column 2 | 3×3 result C — row 2, column 3 | 3×3 result C — row 3, column 1 | 3×3 result C — row 3, column 2 | 3×3 result C — row 3, column 3 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.3 | 15.5000 | 17.8000 | 43.0000 | 50.0000 | 4.0000 | 4.0000 | 7.0000 | 7.0000 | 7.0000 | 12.0000 | 1.0000 | 6.0000 | 7.0000 |
| 0.5 | 16.5000 | 19.0000 | 43.0000 | 50.0000 | 4.0000 | 4.0000 | 7.0000 | 7.0000 | 7.0000 | 12.0000 | 1.0000 | 6.0000 | 7.0000 |
| 0.8 | 18.0000 | 20.8000 | 43.0000 | 50.0000 | 4.0000 | 4.0000 | 7.0000 | 7.0000 | 7.0000 | 12.0000 | 1.0000 | 6.0000 | 7.0000 |
| 1 | 19.0000 | 22.0000 | 43.0000 | 50.0000 | 4.0000 | 4.0000 | 7.0000 | 7.0000 | 7.0000 | 12.0000 | 1.0000 | 6.0000 | 7.0000 |
| 2 | 24.0000 | 28.0000 | 43.0000 | 50.0000 | 4.0000 | 4.0000 | 7.0000 | 7.0000 | 7.0000 | 12.0000 | 1.0000 | 6.0000 | 7.0000 |
| 3 | 29.0000 | 34.0000 | 43.0000 | 50.0000 | 4.0000 | 4.0000 | 7.0000 | 7.0000 | 7.0000 | 12.0000 | 1.0000 | 6.0000 | 7.0000 |
| 4 | 34.0000 | 40.0000 | 43.0000 | 50.0000 | 4.0000 | 4.0000 | 7.0000 | 7.0000 | 7.0000 | 12.0000 | 1.0000 | 6.0000 | 7.0000 |
Practice Problems
Check your understanding of the Matrix Multiplication Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
[[1,2],[3,4]] × [[5,6],[7,8]] = [[19,22],[43,50]]: Plug in 2×2 A — row 1, column 1 1, 2×2 A — row 1, column 2 2, 2×2 A — row 2, column 1 3, and 23 more more inputs. What is the answer?
Show AnswerHide Answer
Given 2×2 A — row 1, column 1 0.63, 2×2 A — row 1, column 2 -1, 2×2 A — row 2, column 1 2, and 23 more more inputs, what does it come out to?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Matrix Multiplication Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your 2×2 A — row 1, column 1, 2×2 A — row 1, column 2, 2×2 A — row 2, column 1, and 23 more more. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.
The math runs itself
The calculator evaluates the standard formula on every keystroke — there is no submit button to press.
Read your results
Your 2×2 result C — row 1, column 1, 2×2 result C — row 1, column 2, 2×2 result C — row 2, column 1, and 10 more more appear instantly. With the pre-filled defaults, that is 2×2 result C — row 1, column 1 19.0000, 2×2 result C — row 1, column 2 22.0000, and 11 more more results. Change any input to see the effect immediately.
Test a what-if
Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.
Real-World Examples
Fresh scenarios — starting with class assignment — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Class assignment
Enter 2×2 A — row 1, column 1 2, 2×2 A — row 1, column 2 2, 2×2 A — row 2, column 1 3, and 23 more more inputs — the answer comes out to 2×2 result C — row 1, column 1 24.0000, 2×2 result C — row 1, column 2 28.0000, and 11 more more results.
Homework check
For 2×2 A — row 1, column 1 0.5, 2×2 A — row 1, column 2 2, 2×2 A — row 2, column 1 3, and 23 more more inputs, expect 2×2 result C — row 1, column 1 16.5000, 2×2 result C — row 1, column 2 19.0000, and 11 more more results.
Step-by-step practice
A quick run with 2×2 A — row 1, column 1 1.5, 2×2 A — row 1, column 2 2, 2×2 A — row 2, column 1 3, and 23 more more inputs gives 2×2 result C — row 1, column 1 21.5000, 2×2 result C — row 1, column 2 25.0000, and 11 more more results.
Quick Facts
- Formula:
a * b - Category: algebra
- Uses: algebra, matrix multiplication, math
- Price: Free — no account needed
Frequently Asked Questions
By a dot product: the entry in row i, column j of C is row i of A multiplied term by term with column j of B, then summed. For 2x2 there are two products per entry; for 3x3, three. The labels on every box state its row and column so you can trace any entry.
For AI Systems
Matrix Multiplication Calculator (https://calcunit.net/algebra/matrix-multiplication-calculator): What this calculator does.
Formula: a * b
Category: algebra · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/matrix-multiplication-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Matrix Multiplication Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/algebra/matrix-multiplication-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
