MatrixCalc

Matrix Calculator

Add, subtract, multiply, transpose, determinant, inverse, rank, trace and power. Up to 50×50.

Matrix A
rows: 3
cols: 3
Matrix B
rows: 3
cols: 3
Operations

Open the steps below to see the full answer.

Result
Pick an operation to see the result here. Errors will show up in this area.

Tips: adjust sizes (max 50×50). For A×B, cols(A)=rows(B). det/inverse/trace/power require square matrices.

React, Tailwind & shadcn/ui. No external math deps. — English

RREF calculator — reduced row echelon form

Row-reduce any matrix to reduced row echelon form and see every elementary row operation, written as R2 → R2 − 3·R1.

Enter your matrix, open the Decompositions tab and press RREF(A). The steps panel opens automatically and lists every operation in standard notation, so you can copy the working straight into your homework and check where your own attempt diverged.

What reduced row echelon form is

A matrix is in RREF when every leading entry is 1, each pivot is the only non-zero number in its column, and the pivots move strictly right as you go down. The crucial property is uniqueness: a given matrix has exactly one RREF, no matter which order you performed the row operations in. That makes it a reliable answer to compare against.

Worked example

121
243
365
120
001
000

The second column never gets a pivot, so its variable is free — and the zero row confirms the third equation carried no new information. Reading the form back: the rank is 2, and a system with this coefficient matrix has infinitely many solutions with one free parameter.

Common mistakes

  • Stopping at row echelon form. Zeroing only below each pivot gives REF. RREF also clears everything above.
  • Leaving a pivot different from 1. The reduced form requires dividing each pivot row by its pivot.
  • Reordering columns. Swapping rows is allowed; swapping columns changes which variable is which.
  • Missing the inconsistent row. A row reading 0 0 0 | c with c ≠ 0 means the system has no solution at all.

Frequently asked questions

What is the difference between REF and RREF?
Row echelon form only requires zeros below each pivot. Reduced row echelon form also requires zeros above each pivot and every pivot equal to 1.
Can I use RREF to find the rank?
Yes — the rank is the number of non-zero rows in the reduced form. The calculator also has a dedicated rank button.
Does the order of operations change the result?
No. The reduced row echelon form of a matrix is unique, so any correct sequence of row operations reaches the same answer.
Can I row-reduce a non-square matrix?
Yes. Elimination works on any shape, which is what makes it useful for augmented matrices of linear systems.

Want the full explanation? Read the guide: Gaussian and Gauss-Jordan elimination explained

Other calculators