RREF Calculator with Steps

Type a matrix or an augmented system and get its reduced row echelon form, one elementary row operation at a time, with rank, pivots and the solution set.

ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ

…

วิธีทำ

  1. 1
    Enter the matrix

    Type in the grid or switch to text and paste rows of numbers.

  2. 2
    Mark the right-hand side

    Tick the box if the last column is b in Ax = b.

  3. 3
    Pick the method

    Choose Gauss-Jordan or echelon form first, and the pivot preference.

  4. 4
    Read the result

    Check the rank, pivot columns, RREF and solution panel.

  5. 5
    Follow the steps

    Open the row operations list and compare each matrix with your own work.

  6. 6
    Export

    Copy, download CSV or LaTeX, or print the full working.

เกี่ยวกับเครื่องมือนี้

Reduced row echelon form is the place where most first-year linear algebra questions end up. Once a matrix is in RREF you can read off its rank, see which columns carry pivots, tell whether a system of equations has one solution, infinitely many or none, and write the general solution with free parameters. Doing the reduction by hand is slow and one arithmetic slip ruins every later line, which is why students want to check their work step by step rather than just compare final answers. This calculator keeps every number as an exact fraction, so 1/3 stays 1/3 instead of turning into 0.3333, and it records each elementary row operation in the order a careful student would do it: swap two rows, scale a row to make its pivot 1, or add a multiple of one row to another. After every operation you see the whole matrix with the active pivot highlighted. You can tick a box to treat the last column as the right-hand side b, choose classic Gauss-Jordan or the two-phase method that reaches echelon form first and then clears upwards, and ask the tool to prefer pivots of 1 or −1 so fewer fractions appear. Switch the display to decimals with your chosen number of places at any time; the arithmetic underneath stays exact.

How the reduction works

The tool scans the columns from left to right. In each column it looks for a non-zero entry at or below the current row; if the first candidate is not in the current row, it swaps rows. It then divides that row by the pivot so the pivot becomes 1, and subtracts multiples of the pivot row from every other row until the rest of the column is zero. A column with no usable entry is skipped and becomes a free column. When every row has been used, the matrix is in reduced row echelon form, which is unique: any correct sequence of operations reaches the same final matrix, even though the steps in between may differ from your textbook.

Reading the result

The rank is the number of pivots. For an augmented matrix [A | b], a row that reads 0 0 … 0 | c with c not zero means the equations contradict each other, and the tool reports the system as inconsistent. If there is no such row and every variable column has a pivot, there is exactly one solution. Otherwise each column without a pivot is a free variable, named t, s, u and so on, and the solution panel writes every pivot variable in terms of them, followed by the vector form x = p + t·v.

Two methods, one answer

Gauss-Jordan clears each pivot column above and below at once. The echelon-first method finishes the downward pass, shows you the row echelon form on its own, and then performs back substitution from the last pivot upwards. Many courses teach the second route, so pick the one your lecturer uses and the steps will line up with your notes.

Worked example

Enter the augmented matrix with rows 1 2 −1 −4, 2 3 −1 −11 and −2 0 −3 22 and tick the right-hand side box. The tool performs eight operations: R2 → R2 − 2·R1, R3 → R3 + 2·R1, R2 → −R2, R1 → R1 − 2·R2, R3 → R3 − 4·R2, R3 → −R3, R1 → R1 − R3 and R2 → R2 + R3. The final matrix has rows 1 0 0 −8, 0 1 0 1 and 0 0 1 −2, so the rank is 3, the pivot columns are 1, 2 and 3, and the unique solution is x1 = −8, x2 = 1, x3 = −2. The check line multiplies A by this x and gets back (−4, −11, 22).

Limits

Matrices up to 10×10 are supported, which covers coursework but not large numerical problems. Exact fractions can grow very long for awkward inputs; that is honest arithmetic, not an error. The tool does not handle symbolic entries such as a or k, so substitute numbers first.

ตัวอย่างพร้อมวิธีทำ

Rows 1 2 −1 | −4, 2 3 −1 | −11, −2 0 −3 | 22 reduce in 8 operations to x1 = −8, x2 = 1, x3 = −2, rank 3.

สรุปสั้น ๆ

คำถามที่พบบ่อย

What is the difference between REF and RREF?

Row echelon form only needs zeros below each pivot, and it is not unique. Reduced row echelon form also needs every pivot to equal 1 and zeros above each pivot, and every matrix has exactly one RREF. Choose the echelon-first method to see both.

Why do my steps differ from the textbook?

Different choices of pivot row or a different order of operations give different middle steps, but the final RREF is always the same. Turn on "prefer a pivot of 1 or −1" to imitate hand work that avoids fractions.

How do I enter fractions and decimals?

Type 3/4, −2/5 or 0.125 straight into a cell. Decimals are converted to exact fractions, so 0.1 becomes 1/10 and no rounding error builds up during the reduction.

How does it show infinitely many solutions?

Each column without a pivot becomes a free parameter. The solution panel lists every variable, marks the free ones, and writes the general solution as a particular vector plus a combination of null-space directions.

Can I use it for a plain matrix that is not a system?

Yes. Leave the right-hand side box unticked and you get the RREF, the rank, the pivot columns and the nullity, which is the number of columns minus the rank.

Can I save or print the working?

Copy the result as text, copy the final matrix as LaTeX, download it as CSV, or print every step on one page. Export file keeps your matrix and settings in a JSON file you can import later.

ฟรีทั้งหมดไม่มีค่าใช้จ่าย ไม่ต้องสมัคร
ไฟล์เป็นส่วนตัวทุกอย่างทำงานในเบราว์เซอร์ของคุณ
ใช้ง่ายในภาษาของคุณมีหลายภาษา