Math

Matrix Multiplication Calculator

Multiply two compatible matrices and inspect every result-cell dot product.

Quick guide

How to use the Matrix Multiplication Calculator

  1. Enter or choose matrix a, matrix b.
  2. Select Multiply matrices.
  3. Review the main result, supporting breakdown, and step-by-step calculation notes.
  4. Copy the output or download the generated file when available.

What this tool does

Multiply any two dimension-compatible matrices up to 8×8 and review the individual row-by-column dot products behind every entry of the product matrix. Checking inner dimensions first prevents one of the most common linear-algebra setup errors.

(AB)ᵢⱼ = Σₖ Aᵢₖ · Bₖⱼ (requires columns of A = rows of B)

Calculation method

  1. Parse Matrix A (m × n) and Matrix B (p × q) and confirm that every row inside each matrix has uniform width.
  2. Verify compatibility: the number of columns in A (n) must equal the number of rows in B (p).
  3. Compute each cell Cᵢⱼ as the dot product of row i from A and column j from B, yielding an m × q matrix.

Example: multiplying a 2×3 matrix by a 3×2 matrix

Input: A = [[1, 2, 3], [4, 5, 6]]; B = [[7, 8], [9, 10], [11, 12]]

Result: 2 × 2 product: [[58, 64], [139, 154]]

Columns of A (3) match rows of B (3), so the product is 2×2. Top-left cell C₁,₁ = 1×7 + 2×9 + 3×11 = 7 + 18 + 33 = 58.

Practical uses

  • 3D graphics and affine transformation chains
  • Linear algebra coursework and exam checking
  • Markov chain state transition steps
  • Systems engineering and control matrices

Accuracy tips and common mistakes

  • Matrix multiplication is NOT commutative: A × B usually differs from B × A and may not even have compatible dimensions in reverse.
  • Separate numbers in a row by spaces or commas, and start each new row on a new line.
  • For matrices larger than 12 output cells, the first 12 dot-product expansions are listed explicitly in the steps.
Frequently Asked

Matrix Multiplication Calculator – Frequently Asked Questions

Common questions, edge-cases, and mathematical explanations.

Why does the calculator say my matrices cannot be multiplied?

Matrix A (m × n) can multiply Matrix B (p × q) only when n equals p. For example, a 2×3 matrix can multiply a 3×4 matrix, but not a 2×3 matrix.

What dimensions will the resulting product matrix have?

Multiplying an m × n matrix by an n × q matrix always produces an m × q matrix (outer dimensions).

How large a matrix can this browser calculator multiply?

Each matrix supports up to 8 rows and 8 columns, which covers standard coursework and engineering examples cleanly on mobile and desktop screens.

Analytics preferences

Optional Google Analytics cookies help us understand visits and improve our tools. Analytics is off until you allow it. Your tool inputs and files are never included in our analytics events. Read our privacy policy.

Analytics is off.