Exact Matrix Calculator

Multiply, add, transpose, invert or raise matrices to an integer power, with exact fraction results.

Separate entries with spaces and rows with new lines or semicolons. Use 3/7 for a fraction.
Use the same layout as Matrix A; the two sizes do not have to match when multiplying.

Result

Enter values and select Calculate.

How is this calculated?

For matrix multiplication, each output entry is a left row paired with a right column: multiply matching entries and add the products.

Worked example: Multiply a two-by-two matrix by a column

The first row gives (1/2) × 2 + 2 × 3 = 7. The second gives 3 × 2 − 1 × 3 = 3. The output is a two-row column.

Method and limits

Paste entries such as 2, -0.5 or 3/7. Whole results and simplified fractions are exact. Up to 12 rows and 12 columns; square matrices are required for determinant, inverse and power, and powers are limited to −24 through 24. Generator and swap modes return copyable rows; they do not overwrite your inputs.

How to use this calculator

  1. Choose an operation, then enter each needed matrix by row. Spaces separate cells; a new line or semicolon starts the next row.
  2. For a one-matrix operation, choose A or B. Read dimensions before copying the semicolon-separated answer into the next experiment.

Multiply a two-by-two matrix by a column

The first row gives (1/2) × 2 + 2 × 3 = 7. The second gives 3 × 2 − 1 × 3 = 3. The output is a two-row column.

Match the inner dimensions

For A with m rows and n columns, B must have n rows to form A × B. The product has m rows and the same column count as B.

Test invertibility before using negative powers

A square matrix with nonzero determinant is invertible. A negative power applies repeated multiplication to the inverse; a singular matrix has no negative power.

Write exact quantities

A decimal such as 0.125 means exactly 1/8. If you intend one third, enter 1/3 instead of a rounded decimal.

Frequently asked questions

Can I switch the order of multiplication?
Use B × A for the reverse order. It may be undefined or yield a different matrix.
What if I need just one matrix?
Select an operation such as Transpose or Determinant, then pick which input to use.
Does generating a matrix replace my inputs?
No. Copy the generated result into the desired input if you want to reuse it.

Common mistakes and limits

Sources & methodology

Related calculators