Matrix Multiplication Calculator

Linear Algebra, Matrices, Calculators

Solve your matrix problem

Matrix A and Matrix B

No image selected

Intro: Multiply two matrices online with a clear dimension check and a step-by-step breakdown of each row-by-column dot product. This page is built for quick answers and for learning how matrix multiplication works.

Worked example

FAQs

What matrix sizes are supported?

Any A(m×n) and B(n×p) are allowed as long as the inner dimensions match.


What dimensions can be multiplied?

A must be m×n and B must be n×p. The inner dimensions must match.


Can I use decimals, negatives, or fractions?

The calculator is intended to support common numeric input formats such as integers, decimals, negatives, and fractions.


Why is matrix multiplication not commutative?

In general, AB is not equal to BA because the row-by-column structure depends on order, and the dimensions may also differ.


What happens if the matrices are incompatible?

The calculator should flag the mismatch and explain that the inner dimensions do not match.


How matrix multiplication works and what this calculator shows

Matrix multiplication step-by-step

Related