Calculator Directory
Mathematics

Multiply Two Rectangular Matrices

Calculate the product AB from two row-ordered entry lists and their column counts, including rectangular matrices of different shapes.

Inputs

Product AB
[58, 64] [139, 154]

Formula & assumptions

(AB)ᵢⱼ = Σₖ AᵢₖBₖⱼ

List entries in row order and supply each matrix’s column count. Each input and the output allow at most 100 entries.

Worked example

Matrix A entries
1,2,3,4,5,6
Columns in A
3
Matrix B entries
7,8,9,10,11,12
Columns in B
2
Product AB
[58, 64] [139, 154]

Interpreting the result

The product has one row for each row of A and one column for each column of B.