Skip to content
M2TOOLKIT

Matrix Calculator

Type or paste matrices and add, multiply, invert or find the determinant in one click.

  • Free
  • No sign-up
  • Nothing is sent or stored

One row per line; separate entries with spaces or commas.

Result

Size
2 × 2
A × B
col 1col 2
row 11922
row 24350

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved.

How to use the Matrix Calculator

  1. Choose an operation.
  2. Type matrix A (and B if needed) — one row per line, entries separated by spaces or commas.
  3. Read the result matrix in the table.

What does this tool do?

Matrices are grids of numbers used throughout linear algebra, computer graphics, statistics and engineering. Multiplying A × B combines each row of A with each column of B, so A's column count must match B's row count.

The determinant is a single number that tells you whether a square matrix can be inverted: a determinant of zero means it can't. The inverse is computed with Gauss–Jordan elimination with partial pivoting for numerical stability.

Why use it?

  • Paste straight from a spreadsheet.
  • Clear messages when sizes don't match.
  • Handles up to 10 × 10.

Privacy

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.

Frequently asked questions

Why can't I multiply my matrices?

A × B needs the number of columns in A to equal the number of rows in B. A 2 × 3 matrix can multiply a 3 × 4 one, but not another 2 × 3.

Is A × B the same as B × A?

Usually not. Matrix multiplication isn't commutative, so the order matters.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the matrix calculator.