Exact Matrix Calculator
Multiply, add, transpose, invert or raise matrices to an integer power, with exact fraction results.
Result
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
- Choose an operation, then enter each needed matrix by row. Spaces separate cells; a new line or semicolon starts the next row.
- 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
- Accepts rational entries and up to 12 rows and 12 columns. Powers must be integers from −24 to 24.
- Large exact numerators and denominators are limited to avoid excessive browser workloads.
Sources & methodology
Related calculators
- Scientific Calculator: Degrees and Radians
Evaluate real-number expressions with trig functions, logs, roots, powers and factorials. Switch between degrees and radians.
- Fraction Calculator: Exact Fractions and Mixed Numbers
Add, subtract, multiply, divide or simplify fractions. Enter mixed numbers, decimals or recurring decimals, and get an exact fraction plus a decimal view.
- Big Number Calculator
Calculate with large integers and decimals without dropping digits at the usual floating-point boundary. Choose a decimal rounding limit.