Multiply two matrices step-by-step with this easy-to-use calculator. Just enter the dimensions for Matrix A and Matrix B, fill in the numbers, and get the resulting product matrix instantly. Great for students, teachers, and anyone working with linear algebra!
Matrix Multiplication Calculator
Matrix A
Matrix B
Result Matrix
How to Use the Matrix Multiplication Calculator
- Set Matrix Sizes
- Enter how many rows and columns you want for Matrix A and Matrix B.
- Reminder: For multiplication to work, columns of Matrix A must equal rows of Matrix B.
- Click “Generate Matrices”
- This creates two input grids – Matrix A and Matrix B – based on the sizes you entered.
- Fill in Matrix Values
- Type numbers into each box of both matrices.
- Click “Multiply”
- The result (Matrix C) will appear below. This is your final product matrix.
What’s Actually Happening Behind the Scenes
When you multiply matrices, you’re doing this:
If Matrix A is m × n and Matrix B is n × p,
then their product Matrix C will be m × p.
Each element in the result matrix is calculated like this:
C[i][j] = A[i][0]×B[0][j] + A[i][1]×B[1][j] + ... + A[i][n−1]×B[n−1][j]
Example:
Say:
Matrix A is 2×3:
[1 2 3]
[4 5 6]
Matrix B is 3×2
Advertisements
[7 8]
[9 10]
[11 12]
Result (Matrix C) will be 2×2:
[1×7 + 2×9 + 3×11, 1×8 + 2×10 + 3×12]
[4×7 + 5×9 + 6×11, 4×8 + 5×10 + 6×12]
Which gives:
[58 64]
[139 154]
Advertisements