Home · Everyday · Matrices · Matrix Calculator

Matrix Calculator

Add, subtract, multiply, invert or transpose two matrices, or take a determinant — pick the operation and enter both matrices.

Your figures

Example result — edit the figures to make it yours

[6, 8; 10, 12]

A + B

A + B — a 2 × 2 matrix. The headline figure for the correctness record is its top-left entry, 6.

A + B
C1C2
R168
R21012

What this calculator does

Add, subtract, multiply, invert or transpose two matrices, or take a determinant — pick the operation and enter both matrices. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Matrix arithmetic: addition and subtraction are entry-by-entry; multiplication sums row-by-column products

Enter matrices with rows separated by semicolons and entries by commas or spaces.

The operation is applied with the standard rules of matrix arithmetic; sizes must be compatible.

Results are rounded for display; exact fractions are kept internally where the method allows.

Worked example

With the example inputs this page opens with (scalar k 2), the result is [6, 8; 10, 12] — a + b. A + B — a 2 × 2 matrix. The headline figure for the correctness record is its top-left entry, 6.

Quick reference

A + B
C1C2
R168
R21012

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Matrix Calculator work?

Add, subtract, multiply, invert or transpose two matrices, or take a determinant — pick the operation and enter both matrices. Matrix A · Matrix B · Operation → Result matrix. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Matrix Calculator need?

Matrix A · Matrix B · Operation → Result matrix. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Matrix Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.