Math tool

Matrix Calculator

Set the size, fill in both matrices, then add, subtract, or multiply.

About the Matrix Calculator

The Matrix Calculator adds, subtracts and multiplies two matrices of any size you set. It is useful for students learning linear algebra and for checking homework.

Addition and subtraction require two matrices of the same size, and each pair of corresponding entries is combined. Multiplication A × B requires the number of columns of A to equal the number of rows of B, and the result has the rows of A and the columns of B. Matrix multiplication is not commutative, so A × B is generally different from B × A.

How to use it

  1. Set the rows and columns and press Apply size.
  2. Enter the values for Matrix A and Matrix B.
  3. Press A + B, A − B or A × B.
  4. Read the result matrix.

Tips and good to know

Frequently asked questions

Why can't I multiply my matrices?

The inner dimensions must match.

Does it find determinants?

This tool covers addition, subtraction and multiplication.

How large can matrices be?

Small to medium sizes work best.