Calculator-Online.net

Calculator Online

Calculator-Online.net

Calculator Online

Follow Us On:

Your Result is copied!

Gaussian Elimination Calculator

Enter an augmented matrix to solve systems of linear equations and obtain the row-echelon form with step-by-step calculations.

Advertisement

Size of the Matrix

X

Matrix

Advertisement

Gaussian Elimination Calculator:

This Gaussian Elimination Calculator helps solve systems of linear equations by converting an augmented matrix into row-echelon form using elementary row operations. It provides step-by-step solutions, making it useful for students, teachers, engineers, and anyone studying linear algebra. Whether you are verifying homework, preparing for exams, or solving real-world mathematical problems, this tool delivers fast and reliable results.

What is the Gaussian Elimination?

Gaussian Elimination is a systematic procedure used to solve systems of linear equations. It works by transforming the system’s augmented matrix into row echelon form (or reduced row echelon form) using elementary row operations.

How to Use the Gaussian Elimination Calculator?

  • Select the matrix size (number of variables) from the drop-down menu
  • Click Set Matrix to generate the input fields
  • Enter the coefficients and constant values in the provided boxes
  • Press Calculate to compute the solution
  • Review the Results

What Does This Calculator Compute?

  • Row-echelon form (REF) of the input matrix
  • Step-by-step Gaussian elimination calculations
  • Solutions to systems of linear equations
  • Unique solutions
  • Infinite solutions
  • No-solution cases (inconsistent systems)
  • Intermediate row-reduction steps

How Does Gaussian Elimination Work?

  • Create the augmented matrix
  • Identify the pivot element in the first column
  • Apply elementary row operations to eliminate entries below the pivot
  • Continue the elimination process until the matrix is transformed into row-echelon form
  • Use back substitution to find the values of the unknown variables

Gaussian Elimination Formula and Row Operations:

The Gaussian elimination does not depend on a single formula to simplify an augmented matrix until it transforms to row-echelon form. Three formulas are used: Elementary Row Operations: The following three row operations are used in Gaussian elimination:

1. Row Interchange:

Swap the positions of two rows in the matrix.

Ri​↔Rj

Where:

Ri = row i

Rj = row j

This operation is often used when the pivot element is zero or when a better pivot is needed.

Example:

Before:

$$ \begin{bmatrix} 0 & 2 & 5 \\ 1 & 3 & 4 \end{bmatrix} $$

After swapping R1 and R2:

$$ \begin{bmatrix} 1 & 3 & 4 \\ 0 & 2 & 5 \end{bmatrix} $$

2. Row Scaling:

Multiply every element in a row by a nonzero constant.

Ri​→kRi

Where:

k ≠ 0

This is used to simplify calculations or generate a leading 1 in a pivot position.

Example:

Before:

R1​→(1/2)​R1​

[2 4 6]

After:

[1 2 3]

3. Row Replacement:

Replace a row by adding a multiple of another row to it.

Ri​→Ri​+kRj

The row replacement operation is one of the most commonly used operations in Gaussian Elimination because it eliminates the entries below the pivot.

 

Example:

R2​→R2​−2R1

Before:

$$ \begin{bmatrix} 1 & 2 & | & 3 \\ 2 & 5 & | & 8 \end{bmatrix} $$

After:

$$ \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 2 \end{bmatrix} $$

Let’s understand the process step by step with a clear example.

Gaussian Elimination Example:

Solve the following system of equations:

$$ 2x_1 + 4x_2 = 18 \\ 4x_1 + 6x_2 = 30 $$

Solution:

First, write the system in augmented matrix form:

$$ \begin{bmatrix} 2 & 4 & 18 \\ 4 & 6 & 30 \end{bmatrix} $$

Gaussian Elimination Steps:

Step 1: Divide the first row by 2 to make the leading coefficient 1:

$$ \begin{bmatrix} 1 & 2 & 9 \\ 4 & 6 & 30 \end{bmatrix} $$

Step 2: Eliminate the first variable from the second row by subtracting 4 times the first row from the second row:

$$ \begin{bmatrix} 1 & 2 & 9 \\ 0 & -2 & -6 \end{bmatrix} $$

Step 3: Divide the second row by -2 to get a leading 1:

$$ \begin{bmatrix} 1 & 2 & 9 \\ 0 & 1 & 3 \end{bmatrix} $$

Step 4: Eliminate the second variable from the first row by subtracting 2 times the second row from the first row:

$$ \begin{bmatrix} 1 & 0 & 3 \\ 0 & 1 & 3 \end{bmatrix} $$

Now the left side of the matrix is the identity matrix. Therefore, the solution is:

$$ x_1 = 3, \quad x_2 = 3 $$

You can check your answer instantly using our matrix Gaussian elimination calculator.

Applications of Gaussian Elimination:

1. Solving Systems of Linear Equations:

It is commonly used to solve multiple linear equations with multiple unknowns efficiently.

2. Engineering and Structural Analysis:

Gaussian elimination is used by engineers to solve equations related to load distribution and structural stability in bridges, buildings, and mechanical systems.

3. Computer Graphics:

It is used for scaling, rotation, and projection of 2D and 3D objects in computer graphics. This helps in rendering realistic images and animations.

4. Electrical Circuit Analysis:

It is used to analyze complex electrical circuits by solving systems of equations derived from Kirchhoff’s laws to determine current, voltage, and resistance.

5. Data Science and Machine Learning:

It is used to solve matrix equations and estimate parameters accurately in data science, statistics, and machine learning models.

6. Physics and Scientific Computing:

It is used in modeling physical systems such as motion, heat transfer, and fluid dynamics, where problems are represented using systems of linear equations/.

Gaussian Elimination Vs. Gauss-Jordan Elimination: 

Key Differences:

Feature Gaussian Elimination Gauss-Jordan Elimination
Final form Row-echelon form (REF) Reduced row-echelon form (RREF)
Back substitution Required Not required
Number of steps Fewer More
Complexity Faster Slightly longer
Result Intermediate form Direct solution

FAQ’s:

What is an Augmented Matrix?

The augmented matrix is the compact way to represent the system of linear equations in the form of a matrix. It combines the coefficients of the variables and the constants in a single matrix.

An augmented matrix has two parts:

  1. Coefficient matrix: contains the coefficients of the variables
  2. Constant column: contains the values on the right side of the equations

A vertical line is often used to separate these two parts for clarity.

System of equations:

x + y + z = 6

2x − y + 3z = 14

x + 2y − z = 2

Augmented matrix form:

\( \left[ \begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 2 & -1 & 3 & 14\\ 1 & 2 & -1 & 2 \end{array} \right] \)

For quickly analyzing an augmented matrix, try our Augmented Matrix Calculator.

What Is Row-Echelon Form? 

Row-echelon form (REF) is the way of arranging a matrix in simple form so that it can be solved easily. 

Conditions of Row-Echelon Form:

A matrix is in row-echelon form if it satisfies the following rules:

  1. The left-most nonzero entry in each row is 1
  2. The entries below any leading 1 are all 0 
  3. The leading 1 for each row is to the left of the leading 1 for any row below it
  4. Any row whose entries are all 0 is located below the rows that have a leading 1 

Example of Row-Echelon Form:

\( \left[ \begin{array}{ccc|c} 1 & 2 & -1 & 3 \\ 0 & 1 & 4 & 5\\ 0 & 0 & 2 & 6 \end{array} \right] \)

What is the difference between REF and RREF? 

Key Differences Between REF and RREF

Feature REF RREF
Full Name Row-Echelon Form Reduced Row-Echelon Form
Pivot Position Moves to the right in each row Moves to the right in each row
Entries Below Pivots Must be zero Must be zero
Entries Above Pivots Can be nonzero Must be zero
Pivot Values Can be any nonzero number Must be 1
Back Substitution Required Yes No
Simplicity Less simplified More simplified

References:

  1. Wikipedia: Gaussian Elimination – Explanation of row operations, echelon forms, determinants, and matrix inversion.
  2. Khan Academy – Row-Echelon Form and Gaussian Elimination
  3. MIT OpenCourseWare – Gaussian Elimination and Back Substitution.
animal image
sales modal popup close

Easter into Action, Save With Satisfaction

UPTO

50 %

OFF

Online Calculator

Calculator Online

Get the ease of calculating anything from the source of calculator online

Email us at

Contact Us

© Copyrights 2026 by Calculator-Online.net