Matrix Multiplication Calculator

MATRICES & VECTORS

Multiply two matrices. Enter both with rows separated by semicolons and values by commas.

Product
—
Matrix A times B.

Usage Tip

Order matters in matrix multiplication — AB and BA are generally different, and one may not even be defined.

THE MATH
each result entry = dot product of an A row with a B column
A’s column count must equal B’s row count
Matrix multiplication combines two matrices by taking dot products of rows and columns.
It is not commutative: A times B usually differs from B times A.
The columns of A must equal the rows of B.
The result has A’s row count and B’s column count.
Enter rows separated by semicolons, values by commas.
Practical Notes

Matrix multiplication combines rows of the first matrix with columns of the second. Each entry in the result is the sum of the products of a row from A and a column from B. For this to work, the number of columns in A must equal the number of rows in B, and the result has the number of rows of A and the number of columns of B.

Unlike ordinary multiplication, matrix multiplication is not commutative, so A times B is usually different from B times A and may not even be defined in both orders. It is associative, so the grouping of three matrices does not change the answer. Multiplying by the identity matrix leaves a matrix unchanged.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.