Matrix multiplication

Choose the size and enter both matrices.

Result
No result yet.

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

Example

Multiply two 2x2 or 3x3 matrices.

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

Processed locally in your browser.

Methodology

Each cell is the dot product of a row of the first matrix and a column of the second.