Matrix Calculator

Matrix Multiplication Calculator

Multiply two matrices when the number of columns in the first matrix matches the number of rows in the second.

Last updated: June 2026 | By Patchworkr Team

Matrix Product Solver
Matrix A
×
Matrix B
Product Result
19
22
43
50

What Is Matrix Multiplication?

Matrix multiplication combines rows from the first matrix with columns from the second matrix. The inner dimensions must match for the product to exist.

How to Multiply Matrices

  1. Confirm the inner dimensions match.
  2. Multiply each row of A by each column of B.
  3. Sum the products for each position in the result.
  4. Read the product matrix in the result panel.
C = A × B

Worked Example

[[1, 2], [3, 4]] × [[5, 6], [7, 8]] = [[19, 22], [43, 50]]

matrix product

Frequently Asked Questions

What if the dimensions do not match?

The calculator rejects the input because the matrix product is undefined when the inner dimensions differ.

Can I enter decimals?

Yes. Any finite real matrix entries are accepted, including decimal and scientific notation values.

Is the result always square?

No. The result dimensions depend on the outer dimensions of the two matrices.

What if a cell is blank?

Blank cells are rejected instead of being silently converted to zero.

Related Tools