⚡
usefultools.dev
[ ]

Matrix Calculator with Fractions

NEW

Add, subtract and multiply matrices up to 6×6, and find the determinant, inverse, transpose, rank, RREF or a power. Every step uses exact fractions, with an optional decimal view.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Matrix A
Matrix B

Type integers, decimals (1.5) or fractions (3/4, -2/5). Empty cells count as 0.

Result
A × B =
553/2
757/2
120

Size: 3 × 3

How it is calculated

Entry (i, j) of A × B is row i of A times column j of B, summed. The columns of A must match the rows of B, and A × B is usually not equal to B × A.

⚡

Quick Examples

Typical inputs and the results this tool produces.

Determinant
det [[6, 1, 1], [4, −2, 5], [2, 8, 7]]
−306
Inverse
Inverse of [[4, 7], [2, 6]]
[[3/5, −7/10], [−1/5, 2/5]]
Multiply
[[1, 2, 3], [4, 5, 6]] × [[7, 8], [9, 10], [11, 12]]
[[58, 64], [139, 154]]
Rank
Rank of [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
2
📖

Overview

This matrix calculator works with two matrices, A and B, each from 1×1 up to 6×6. You can type whole numbers, decimals such as 0.25 or fractions such as 3/4 into the cells, pick an operation and read the result straight away.

Supported operations are addition, subtraction, multiplication, scalar multiples, transpose, determinant, inverse, rank, reduced row echelon form and whole-number powers from −20 to 20. All arithmetic runs on exact fractions, so 1/3 stays 1/3 instead of turning into 0.333333 and picking up rounding errors. When a matrix has no inverse, or the sizes do not fit the operation, the tool says why instead of showing a wrong number.

You can copy the result as tab-separated text that pastes straight into a spreadsheet, or load it back as matrix A for the next step. Nothing leaves your browser.

Why use this tool?

  • Exact fractions, no rounding drift
  • Ten operations on matrices up to 6×6
  • Clear messages for singular or mismatched matrices
  • Copy results as spreadsheet-ready text
  • Runs in your browser, nothing is sent
⭐

Features

➗

Fractions in, fractions out

Enter 3/4, −2/5, 1.5 or 7 in any cell; results are reduced fractions, or decimals if you prefer.

🧮

Determinant and inverse

Gaussian elimination for the determinant and Gauss-Jordan for the inverse, with a message when the matrix is singular.

📏

Rank and RREF

Reduce any matrix to reduced row echelon form and read off its rank.

✖️

Products and powers

Multiply A × B when the inner sizes match, and raise a square matrix to a power from −20 to 20.

🔁

Chain operations

Swap A and B, or load a result back into A to keep going.

📋

Copy as text

One row per line, values separated by tabs, ready for a spreadsheet or notes.

🛠️

How to Use

1

Set the sizes

Choose the number of rows and columns for matrix A and matrix B.

2

Fill in the cells

Type integers, decimals or fractions. Empty cells count as 0.

3

Pick an operation

Choose sum, product, determinant, inverse, rank, RREF, power or another operation, and which matrix it applies to.

4

Read and copy

The result appears at once. Switch to decimals if needed, then copy it or use it as A.

🤔

Frequently Asked Questions