Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Numbers & Maths

Matrix Calculator

Calculate common operations on matrices using decimal numbers. Enter rows as comma-, space-, or tab-separated values; use a second matrix for addition and multiplication. All calculations run locally.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

The operations it performs

Enter matrix A with one row per line and values separated by spaces, commas or tabs, then choose an operation: add, subtract, multiply, transpose, determinant or inverse. Add, subtract and multiply read a second matrix from the Matrix B box that appears for those operations; the others work on A alone.

Matching dimensions

Addition and subtraction require A and B to have identical shapes, while multiplication needs A’s column count to equal B’s row count — the rule behind A(m×n)·B(n×p). Transpose is always valid, and determinant and inverse require a square matrix, so a rectangular one is rejected for those two.

Precision and singular matrices

All arithmetic uses JavaScript double-precision floats and results are rounded to 12 significant digits for display, so values are approximate rather than exact. The inverse uses partial pivoting and refuses a matrix whose pivot falls at or below a scale-relative tolerance, because a near-singular inverse is not reliable.

Size limits

Each matrix is capped at 20 rows by 20 columns to keep the calculation responsive in the browser, which suits the small hand-entered matrices this tool is built for.

Evaluated locally

Every operation runs in your browser, so the matrices you type are never uploaded.

Questions

How do I enter a matrix?

Put one row on each line. Separate values with spaces, commas, or tabs. Every row must contain the same number of finite decimal values.

What size matrices are supported?

Matrices are limited to 20 rows and 20 columns to keep calculations responsive. Determinants and inverses require square matrices.

How are near-singular matrices handled?

Determinants and inverses use partial pivoting. Inverse rejects pivots at or below a scale-relative tolerance; determinant results may be affected by floating-point rounding.

See category