Matrix calculator

Add, multiply, transpose or invert a matrix.

Privacy: runs in your browser

This tool processes your input in this browser. Inputs and results are excluded from analytics. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. When a button sends your result to another tool, it waits in this tab until that tool opens it, for up to a minute, and is then deleted.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

Spaces separate values; 1,000 is one value.

Example: A × B for two 2 × 2 matrices. Type your own matrices over it.

Result

19 22 43 50

More results
Compare with other numbers

Save the current answer, then change an input to compare. This clears when you leave.

Rounding and decimal places

Rounding changes how numbers are shown, not how they are calculated.

Automatic precision rounds answers for reading: up to six significant digits, with whole numbers kept in full. Thousands separators such as 1,000 are accepted; use a dot for decimals.

In a list, use spaces, new lines, semicolons, or commas followed by a space. A comma between groups of three digits is a thousands separator.

More
Quick calculator

Use +, −, ×, ÷, parentheses and %. This doesn’t change the tool above.

Keyboard shortcuts

Sharing and starting over

A copied link includes what you entered and your settings, so anyone with it can see them. Leave private text out. Files and results are not included; random draws are made again.

Start over puts the tool back to its starting values and closes any open file or device. Drafts you saved stay on this device until you delete them.

How it works

Add matching entries, multiply rows by columns, swap rows and columns to transpose, or invert a square matrix using pivoted Gauss-Jordan elimination.

Enter rows on separate lines or separated by semicolons, with entries separated by spaces or commas. Maximum size is 10 by 10. Near-singular matrices are rejected for inversion instead of returning an unstable answer.

Next: Basic calculator

Worked example

Multiplying A = [1 2; 3 4] by B = [5 6; 7 8] gives [19 22; 43 50]: each entry is a row of A times a column of B, so the top left is 1 × 5 + 2 × 7 = 19.

Cite this page

ToolOctopus. “Matrix calculator.” Updated . https://tooloctopus.com/matrix-calculator.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.

Find a tool

Type a task, a unit pair, a sum or a time zone. ↓ to choose, Enter to open.