Linear Algebra

Matrix Multiplication Calculator

Multiply matrices A and B to produce the product matrix AB while verifying dimensional compatibility.

matrix multiplicationproductlinear algebra
Matrix Multiplication

Multiply compatible matrices (A · B).

Result size
2 × 2
Product matrix
4	4
10	8

Matrix product

(AB)_{ij} = Σₖ A_{ik} B_{kj}

Each entry in the product is the dot product of a row of A with a column of B. The output matrix adapts to the valid shape.

How to use

  1. Enter matrix A and matrix B with rows separated by new lines.
  2. Ensure the number of columns in A equals the number of rows in B.
  3. Review the resulting product matrix and its size.

Example

Input: A = [[1,2],[3,4]], B = [[2,0],[1,2]]

Output: AB = [[4,4],[10,8]]

FAQ & notes

Can I multiply non-square matrices?

Absolutely. As long as the inner dimensions match, the output size adapts to the inputs.

How are results formatted?

Results appear in a preformatted grid that you can copy into spreadsheets or documentation.