Matrix Multiplication Calculator – Multiply Matrices Online
Multiply any two compatible matrices with our free online matrix multiplication calculator. See the full product matrix with step-by-step row-by-column computation.
Matrix A (2x2)
Current: 2x2 | Detected from input
Matrix B (2x2)
Current: 2x2 | Detected from input
Understanding Matrix Multiplication
Matrix multiplication is fundamentally different from matrix addition. Instead of element-wise operations, each entry in the result is computed by taking the dot product of a row from the first matrix with a column from the second matrix.
The key rule: you can only multiply matrix A (m x n) by matrix B (n x p) when the number of columns in A equals the number of rows in B. The result is an m x p matrix.
How Matrix Multiplication Works
The Formula
If A is m x n and B is n x p, then C = AB is m x p
C[i,j] = sum of (A[i,k] x B[k,j]) for k = 1 to nNot Commutative
AB is usually not equal to BA. Order matters!
Associative
(AB)C = A(BC). Grouping doesn't matter.
Distributive
A(B + C) = AB + AC. Works like regular algebra.
Worked Examples
Example 1: 2x2 Multiplication
Example 2: 2x3 times 3x2
Example 3: Identity Matrix
Quick Fact
Matrix multiplication seems backwards at first – rows times columns. This convention was chosen because it makes matrix multiplication correspond to function composition. When matrices represent linear transformations, AB means "apply B first, then A" – just like f(g(x)) in function notation.
Frequently Asked Questions
Why must columns of A equal rows of B?
Each result element is a dot product of a row from A with a column from B. Dot products require vectors of equal length. The row length from A must match the column length from B.
Is matrix multiplication commutative?
Generally no! AB usually does not equal BA. Sometimes one product isn't even defined when the other is. Even for square matrices where both are defined, they typically give different results.
Can you multiply a matrix by itself?
Yes, but only if it's square! A square matrix (n x n) can always be multiplied by itself because the columns equal the rows. This is called squaring the matrix: A^2 = AA.
What happens when you multiply by the identity matrix?
The identity matrix acts like the number 1 in regular multiplication. AI = A and IA = A for any compatible matrix A. The identity leaves other matrices unchanged.
What are real-world applications?
Matrix multiplication powers computer graphics (transforming 3D objects), machine learning (neural network layers), physics simulations, economics models, network analysis, and cryptography algorithms.
How do you multiply large matrices efficiently?
Standard multiplication is O(n^3) for n x n matrices. Advanced algorithms like Strassen's algorithm can do it faster for very large matrices. GPUs excel at parallel matrix multiplication.
Other Free Tools
Matrix Addition & Subtraction Calculator – Compute Matrices Online
Add or subtract any two matrices with our free online matrix calculator. Supports all matrix sizes with instant results and element-wise computation displayed clearly.
Matrix Transpose Calculator – Find Transpose of Any Matrix
Find the transpose of any matrix instantly with our free online matrix transpose calculator. Swap rows and columns of any size matrix with a single click.
Matrix Determinant Calculator – Compute Det of Any Matrix
Calculate the determinant of any square matrix with our free online determinant calculator. Supports 2x2, 3x3, and larger matrices with cofactor expansion steps shown.
Matrix Inverse Calculator – Find Inverse of Any Matrix
Find the inverse of any invertible square matrix with our free online matrix inverse calculator. Uses row reduction method with step-by-step solution for 2x2, 3x3, and larger matrices.
Scalar Matrix Multiplication Calculator – Multiply Matrix by Scalar
Multiply any matrix by a scalar constant with our free online scalar multiplication calculator. See the scaled matrix with all element-by-element calculations shown clearly.
Identity Matrix Generator – Create n×n Identity Matrix
Generate an identity matrix of any size instantly with our free online identity matrix generator. Create n×n identity matrices for linear algebra, matrix operations, and proofs.
Matrix Rank Calculator – Find Rank of Any Matrix Online
Find the rank of any matrix with our free online matrix rank calculator. Uses row reduction to row echelon form with step-by-step working shown for complete understanding.
Eigenvalue Calculator – Find Eigenvalues of 2x2 & 3x3 Matrices
Calculate eigenvalues of 2x2 and 3x3 matrices with our free online eigenvalue calculator. Solves the characteristic polynomial with step-by-step solutions and complex eigenvalue support.