Matrix Multiplication

Multiply two matrices by defining compatible dimensions and entering values for Matrix A and Matrix B.

If Matrix A is m×n and Matrix B is n×p, the result is m×p.

Matrix A

Matrix B

Result will appear here.
Metric Value

Privacy: calculations run locally in your browser. No matrix values are stored or transmitted.

How it works

Each cell in the result matrix is computed from the dot product of a row in Matrix A and a column in Matrix B.

Examples

  • 2×3 × 3×2 → result is 2×2
  • Use this for linear algebra practice, coordinate transforms, and matrix workflows

FAQ

  • When can two matrices be multiplied?

    Matrix A can be multiplied by Matrix B only when the number of columns in A equals the number of rows in B.

  • What size will the result matrix be?

    If A is m×n and B is n×p, the result will be m×p.

  • Can I use decimals and negative values?

    Yes. This calculator accepts integers, decimals, and negative values.

  • Are calculations stored?

    No. Everything runs locally in your browser.

Related tools