SuperDevTools

System of equations solver with steps

Whole numbers, decimals or fractions: 2, −0.5 or 1/2. An empty box counts as 0.

Solution —
Examples

Everything is worked out in your browser, with exact fractions: nothing is sent.

Solve simultaneous equations and see every step

This system of equations solver handles linear systems with 2 to 5 unknowns. Answers come out as exact fractions, never rounded decimals, and the tool tells you which case you are in: one solution, no solution (an inconsistent system) or infinitely many solutions, written with a parameter λ.

For simultaneous equations in two unknowns you pick the method your course uses: substitution, elimination or Cramer's rule. With more unknowns, the tool uses Gaussian elimination. Every answer ends with a check, and a graph draws both lines when there are two unknowns.

How to use it

  1. In "Coefficient grid", choose the number of "Unknowns", then fill in the coefficients row by row. An empty box counts as 0.
  2. Or switch to "Type equations" and write one equation per line, just as it appears in your homework: 3y = 2x − 1, x/2 + y = 4, 0.5x + y = 3. The tool tidies each equation into standard form, unknowns on the left.
  3. With two unknowns, click "Substitution", "Elimination", "Cramer's rule" or "Gaussian": the "Step-by-step solution" updates at once.
  4. "Copy result" copies the answer and every step. Your last entry is kept on this device.

Each method on one example

Take the system (1) 2x + 3y = 7 and (2) x − y = 1.

  • Substitution: make x the subject of (2), x = 1 + y. Substitute into (1): 2(1 + y) + 3y = 7, so 2 + 5y = 7, then 5y = 5 and y = 1. Back in the expression, x = 1 + 1 = 2.
  • Elimination: multiply (2) by −2 to get −2x + 2y = −2, then add it to (1). The x terms cancel: 5y = 5, so y = 1, and (2) gives x = 2.
  • Cramer's rule: the determinant is D = 2 × (−1) − 3 × 1 = −5. Replace the x column with the right-hand sides: Dx = 7 × (−1) − 3 × 1 = −10. Likewise Dy = 2 × 1 − 7 × 1 = −5. So x = −10/−5 = 2 and y = −5/−5 = 1.
  • Gaussian elimination: row operations such as R2 ← R2 − 2R1 bring the system to triangular form, then back substitution finishes the job.

All four give (2, 1). The check confirms it: 2 × 2 + 3 × 1 = 7 and 2 − 1 = 1. On the graph, it is the point where the two lines cross.

One, none or infinitely many

With x + 2y = 3 and 2x + 4y = 5, substitution leads to 0 = −1: the system is inconsistent and the lines are parallel. With x + 2y = 3 and 2x + 4y = 6 you get 0 = 0: the lines are the same, and the solutions are x = 3 − 2λ, y = λ for any real λ. A zero determinant flags both situations without telling them apart; Gaussian elimination settles it.

In three unknowns, the "3 × 3 with fractions" example (2x + 3y + z = 2; x − 3y + 2z = 11/2; 4x + 6y − z = −2) gives x = 1/2, y = −1/3 and z = 2, with determinant 27.

Word problems

At a café, 3 coffees and 2 muffins cost $10.50, while 2 coffees and 1 muffin cost $6.20. Let x be the price of a coffee and y the price of a muffin: 3x + 2y = 10.5 and 2x + y = 6.2. The solver returns x = 19/10 and y = 12/5, so a coffee is $1.90 and a muffin $2.40.

For a mixture, you need 10 liters of a 13% solution made from a 5% solution and a 25% solution. Write x + y = 10 and 0.05x + 0.25y = 1.3. Result: 6 liters at 5% and 4 liters at 25%.

FAQ

How do I type the equations?

One equation per line, or separate them with semicolons. A coefficient of 1 can be left out (x − y = 1), decimals use a point, and 1/2x, x/2 or (1/2)x all work. Terms may appear on both sides of the = sign.

Which letters can I use?

Any letter, optionally followed by a digit: x, y, z, but also a, b, c or x1, x2. Up to 5 unknowns and 8 equations.

Why fractions instead of decimals?

The working uses exact fractions, so no rounding error can spoil the check. Decimal values are shown as well when the answer is not a whole number, for example 26/7 ≈ 3.7143.

What does λ mean in the answer?

λ is a parameter: it can be any real number, and each value gives one solution. The tool checks one of them, the one you get with λ = 1.