Matrix Calculator

Calculate matrix instantly in your browser.

Loading calculator…

What this tool does

Calculate matrix instantly in your browser. Matrices up to 6×6; entries can be decimals or negative. The determinant is shown whenever A is square.

How to use the Matrix Calculator

  1. Enter or select operation.
  2. Enter or select matrix a — rows separated by ; or new lines, entries by commas.
  3. Enter or select matrix b — same format as a.
  4. Enter or select scalar k.
  5. Read the calculated result; change any measurement to compare alternatives.

Formula

Matrices add and subtract entry by entry (same size required), multiply by the row-times-column rule (columns of A must equal rows of B), scale by multiplying every entry, and transpose by swapping rows and columns.
op
Operation
matrixA
Matrix A — rows separated by ; or new lines, entries by commas
matrixB
Matrix B — same format as A
scalar
Scalar k

Matrices up to 6×6; entries can be decimals or negative. The determinant is shown whenever A is square.

Worked example

For matrix calculator, the following measurements illustrate the exact method: Operation: add; Matrix A — rows separated by ; or new lines, entries by commas: 1, 2; 3, 4; Matrix B — same format as A: 5, 6; 7, 8; Scalar k: 2.

Inputs

  • OperationAdd A + B
  • Matrix A — rows separated by ; or new lines, entries by commas1, 2; 3, 4
  • Matrix B — same format as A5, 6; 7, 8
  • Scalar k2

Result

  • Result matrix6, 8 ; 10, 12
  • Result size2 × 2
  • Determinant of A (square only)-2

Results explained

Result matrix
Result matrix from the formula above. Matrices up to 6×6; entries can be decimals or negative. The determinant is shown whenever A is square.
Result size
Result size from the formula above. Matrices up to 6×6; entries can be decimals or negative. The determinant is shown whenever A is square.
Determinant of A (square only)
Determinant of A (square only) from the formula above. Matrices up to 6×6; entries can be decimals or negative. The determinant is shown whenever A is square.

Frequently asked questions

Matrices add and subtract entry by entry (same size required), multiply by the row-times-column rule (columns of A must equal rows of B), scale by multiplying every entry, and transpose by swapping rows and columns.

Matrices up to 6×6; entries can be decimals or negative. The determinant is shown whenever A is square.

Where mathematically meaningful, yes. Fields specify permitted ranges and undefined operations display an error.

Exact integer calculations use safe integers; decimal calculations use browser floating point, so small rounding differences can occur.

All values remain in your browser and are never uploaded.