Matrix Calculator

Add, subtract, or multiply two matrices of any compatible size.

  • Free to use
  • Accurate results
  • No registration required
  • Works on all devices
Enter two matrices and an operation to compute the result.
Rows separated by semicolons, entries by commas — e.g. "1,2;3,4" for a 2x2 matrix.

Your result

19, 22; 43, 50

Result matrix

Result rows2
Result columns2

AI explanation

Formula

Addition/subtraction: entry-by-entry. Multiplication: standard matrix product (row × column dot products)

Worked example

[[1,2],[3,4]] x [[5,6],[7,8]]

Worked example: [[1,2],[3,4]] x [[5,6],[7,8]]
FieldValue
Matrix A1,2;3,4
Matrix B5,6;7,8
Operationmultiply
Result matrix19, 22; 43, 50
Result rows2
Result columns2

Assumptions

  • Addition and subtraction require both matrices to have the same dimensions.
  • Multiplication requires the first matrix's column count to equal the second matrix's row count.

Frequently asked questions

How do I enter a matrix?

Separate rows with semicolons and entries within a row with commas — for example, "1,2,3;4,5,6" is a 2x3 matrix.

Why did my multiplication fail?

Matrix multiplication requires the first matrix's number of columns to equal the second matrix's number of rows — check your matrix dimensions.

Is matrix multiplication the same as multiplying entry-by-entry?

No — matrix multiplication combines rows of the first matrix with columns of the second via dot products, which is different from simply multiplying corresponding entries.

Related calculators

Related articles

Report a calculation issue