Converter Web ToolsConverter WebTools

Matrix Calculator

Matrix Calculator — get the answer instantly in your browser, free and private.

Matrix A

rows cols

Matrix B

rows cols
Set the sizes, fill in the values, and choose an operation.

About the matrix calculator

This matrix calculator performs the core matrix operations — addition, subtraction, multiplication, transpose and determinant. Set the size of each matrix, enter the numbers, and choose an operation to see the result instantly, with clear messages when an operation is not valid for the given sizes. It runs in your browser.

How Matrix works

How to use it

  1. Set the rows and columns for matrices A and B.
  2. Fill in the values.
  3. Choose an operation: A + B, A − B, A × B, Transpose A or Determinant A.

Size rules

Addition and subtraction need A and B to be the same size. Multiplication needs the columns of A to equal the rows of B. The determinant requires a square matrix. The tool checks these and tells you if they do not match.

How it computes

Multiplication uses the standard row-by-column dot product; the determinant is found by cofactor expansion, which works for any square size.

Common uses

  • Add or subtract two matrices
  • Multiply matrices
  • Find the determinant
  • Transpose a matrix
  • Check linear-algebra homework
  • Work through engineering problems
  • Verify hand calculations
  • Learn how matrix operations work

Frequently asked questions

How do I multiply two matrices?
Enter A and B, ensure A columns equal B rows, and choose A × B.
When can I add matrices?
Only when A and B have exactly the same dimensions.
What is a determinant?
A single number summarising a square matrix; it is zero when the matrix is singular (non-invertible).
What sizes are supported?
Up to 5×5 for each matrix.
Why did I get an error message?
The operation is not valid for those sizes — the message explains the rule.
Is my data uploaded?
No — it calculates entirely in your browser.
Does it transpose B too?
Transpose is offered for A; swap your inputs to transpose B.
Is it free?
Yes — completely free with no sign-up.