How to Calculate Matrix Multiplication
What is Matrix Multiplication?
Matrix multiplication combines two matrices into a new matrix by computing dot products of rows and columns. Matrix multiplication is fundamental to linear algebra, computer graphics (transformations), machine learning (neural networks), and solving systems of equations.
Formula
- C
- sum of A[i][k] × B[k][j] for k = 1 to n — sum of A[i][k] × B[k][j] for k = 1 to n
- A
- 1 to n — 1 to n
- B
- 1 to n — 1 to n
- k
- 1 to n — 1 to n
Step-by-Step Guide
- 1Matrix A (m×n) can only multiply Matrix B (n×p) — inner dimensions must match
- 2Result is an m×p matrix
- 3Each element C[i][j] = sum of A[i][k] × B[k][j] for k = 1 to n
- 4Matrix multiplication is NOT commutative: AB ≠ BA in general
Worked Examples
Frequently Asked Questions
What is Matrix Mult?
Matrix multiplication combines two matrices into a new matrix by computing dot products of rows and columns. Matrix multiplication is fundamental to linear algebra, computer graphics (transformations), machine learning (neural networks), and solving systems of equations
How accurate is the Matrix Mult calculator?
The calculator uses the standard published formula for matrix mult. Results are accurate to the precision of the inputs you provide. For financial, medical, or legal decisions, always verify with a qualified professional.
What units does the Matrix Mult calculator use?
This calculator works with inches. You can enter values in the units shown — the calculator handles all conversions internally.
What formula does the Matrix Mult calculator use?
The core formula is: Each element C[i][j] = sum of A[i][k] × B[k][j] for k = 1 to n. Each step in the calculation is shown so you can verify the result manually.
Ready to calculate? Try the free Matrix Multiplication Calculator
Try it yourself →