🌐 EN

Gaussian Elimination Calculator

Solve linear equations with 2, 3, or 4 unknowns from their coefficients and constants.

Solution
—

Inputs and checks

  • Choose Matrix Size for 2, 3, or 4 variables. Each row represents one equation.
  • A coefficient is the number multiplying an unknown, and a constant is the known number to the right of the equals sign. Enter each equation across one row, putting its coefficients from left to right and its constant last. For x1 + x2 = 3, enter 1, 1, 3. Decimals and negatives are allowed.
  • The calculation updates as you edit the matrix; there is no Calculate or Reset button. An entirely blank matrix shows a dash.
  • An individual blank or nonnumeric cell is treated as zero, so fill every needed coefficient and constant carefully.

Reading the result

  • When there is a unique solution, Solution lists x1, x2, and any remaining variables to four decimal places.
  • No solution is also shown for some systems with infinitely many solutions; the tool does not distinguish those cases.
  • The tool shows the answers only, not the intermediate steps or a final transformed matrix.

Examples

Solve two equations

Input
Matrix Size: 2; augmented rows: [1, 1, 3], [2, -1, 0]
Result
Solution: x1 = 1.0000; x2 = 2.0000
How to check it
1 + 2 = 3 and 2 × 1 - 2 = 0, so both equations are satisfied.

Solve three separate variables

Input
Matrix Size: 3; augmented rows: [1, 0, 0, 2], [0, 1, 0, -1], [0, 0, 1, 3]
Result
Solution: x1 = 2.0000; x2 = -1.0000; x3 = 3.0000
How to check it
Each equation contains only one variable, so the last-column constants give the answers.

Frequently asked questions

Which column holds the answers on the right side?
Use the final column of each row for the constant.
Does No solution always mean the equations conflict?
No. It can also appear when there are infinitely many solutions.
Can I see each elimination step?
No. The page shows the final values, not the intermediate row operations.