Gaussian elimination calculator
Solve a linear system by row reduction and identify free variables or inconsistency. Your inputs stay on your device.
Set up your task
Starting local processing
Ready. Processing stays in this browser.
2 Your result
Your result updates in this browser. Check your input if the result looks unexpected.
How to use Gaussian elimination calculator
Solve a linear system by row reduction and identify free variables or inconsistency. The pre-filled problem gives you a worked starting point. Compare the response with your own working before trying the self-check below.
- Check the example inputs: Coefficient matrix, Right-hand values.
- Change the inputs for your problem. Results update as you type, so finish entering the values before copying an answer.
- Use the working to check an intermediate value or assumption. Then change the example as suggested in the self-check and compare the result.
Supported inputs and limits
Use a matrix up to six rows and columns, with one right-hand value per row. Enter integers or fractions with positive denominators.
How it works
An augmented matrix puts the coefficients of a linear system next to the right-hand side. Swapping two rows, scaling a row by a nonzero value, or adding a multiple of another row preserves the solution set. Applying these moves creates pivot positions that reveal the independent equations.
A row with zero coefficients and a nonzero right-hand side makes the system inconsistent. Otherwise, one pivot per variable gives a unique solution. Columns without pivots mark free variables. The tool reduces with exact fractions so rounding cannot change a pivot into a misleading near-zero value.
Example
Run the pre-filled example. Its first result is “Unique solution”.
- Coefficient matrix
- 2 1
1 -1 - Right-hand values
- 7 2
Unique solution x1 = 3 · x2 = 1 Reduced augmented matrix [ 1 0 3 ] [ 0 1 1 ] Divide R1 by 2. R2 ← R2 − (1) × R1. Divide R2 by -3/2.
Questions about Gaussian elimination calculator
Why does the trace show fractions?
Dividing by a non-unit pivot can create rational entries. Keeping them as fractions preserves exact equality throughout the reduction.
Do I need a square system?
No. A rectangular matrix can have a unique solution, free variables or inconsistent equations, depending on the pivots and constants.
Enter rows 1 1 and 2 2 with constants 2 and 5.
Expect No solution. The second equation has double the coefficients but a different right-hand side from twice the first equation.
Related tools
Last updated