Calculators · free · no signup

Matrix Calculator

Transpose, add, or multiply small matrices with visible dimensions and validation. Your work stays on this device whenever possible.

Free to useNo accountClear results
Preparing tool…
Simple, transparent workflow

How to use Matrix Calculator

  1. Type Matrix A with one row per line and entries separated by spaces or commas, for example '1 2' on the first line and '3 4' on the second.
  2. Choose 'Transpose A', 'A + B' or 'A × B' in the 'Operation' selector; the Matrix B box hides itself for Transpose.
  3. For a sum or product, fill Matrix B using the same row-per-line layout.
  4. Press 'Calculate matrix' and read the tab-separated grid together with the 'Result dimensions' line beneath it.
  5. If a red message appears, compare shapes: a sum needs identical sizes, while a product needs the column count of A to equal the row count of B.

Worked example

Using the default values, A is the rows 1 2 and 3 4, B is the rows 5 6 and 7 8, and the operation is 'A × B'. Row one gives 1×5 + 2×7 = 19 and 1×6 + 2×8 = 22; row two gives 3×5 + 4×7 = 43 and 3×6 + 4×8 = 50. The output is 19 22 over 43 50, with 'Result dimensions: 2 × 2'.

When to use this tool

  • Checking a linear-algebra homework product of two 3 × 3 matrices before submitting.
  • Flipping a column of measurements into a row with Transpose A before pasting it elsewhere.

Important limitations

Matrices are limited to 6 x 6 and ordinary JavaScript number precision. This is not symbolic algebra, exact rational arithmetic, eigenanalysis, or a numerical stability package.

Frequently asked questions

Can it compute a determinant or an inverse?

No. This page offers exactly three operations: the transpose of A, the sum A + B and the product A × B. Determinants, inverses, rank and eigenvalues are not implemented, so use elimination by hand or a fuller algebra package for those.

Why do I see 'columns in A must equal rows in B'?

A product needs A to be m × n and B to be n × p. Two 2 × 3 matrices cannot be multiplied, but 2 × 3 times 3 × 2 works and returns 2 × 2. Order matters, so A × B is generally different from B × A.

Which entries are accepted?

Integers, decimals and negatives separated by whitespace or commas. Each cell goes through Number(), so fractions such as 1/2, blank cells and letters trigger 'Enter valid numbers for all matrix elements', and every row must be the same length.

Why are decimals tidy in the output?

Each result is rounded to ten decimal places and converted back to a number, which turns 0.30000000000000004 into 0.3. Integers above 9007199254740991 still lose exactness because the arithmetic uses ordinary double-precision numbers.

Is there a size limit?

There is no fixed cap. The loops are plain JavaScript, so a 200 × 200 product is fine, but pasting thousands of rows makes the tab sluggish.