Home / Calculators / Matrix Calculator
Free online tool

Matrix Calculator

Add, subtract and multiply matrices, calculate determinants and transpose matrices with a structured result you can inspect row by row. Processing takes plac…

Start using

What this calculator does

Add, subtract and multiply matrices, calculate determinants and transpose matrices with a structured result you can inspect row by row.

Worked example

Input

A = [[1, 2], [3, 4]], B = [[5, 6], [7, 8]]; calculate A × B

Result

[[19, 22], [43, 50]]

How the calculation works

Matrix addition and subtraction operate element by element. Matrix multiplication combines each row of the first matrix with each column of the second. Determinants and transposes follow the selected operation and matrix dimensions.

When to use it

  • Verify linear algebra exercises
  • Check transformation and system-of-equations inputs
  • Prepare small matrices for code or spreadsheet testing

Limits and checks

  • For A × B, the column count of A must equal the row count of B.
  • A determinant is defined only for a square matrix.
  • Decimal output is subject to normal browser floating-point rounding.

Frequently asked questions

Why can I multiply A × B but not B × A?

The inner dimensions must match, and reversing the order changes those dimensions as well as the result.

Does matrix multiplication work element by element?

No. Standard matrix multiplication uses row-by-column dot products.

Processing takes place locally in your browser.