Worked examples
Grade 8: 2x + y = 5, x − y = 1
adding gives 3x = 6, so x = 2, y = 1
Grade 10: x + y + z = 6, 2y + 5z = −4, 2x + 5y − z = 27
(5, 3, −2)
Grade 8: x + y = 1, x + y = 2
a contradiction, so no solution
How to use it
- Choose whether there are 2 or 3 unknowns.
- Enter the number in front of x, y (and z) and the right side of each equation. Use 0 for a missing term.
- Read the solution and its kind (one / none / infinitely many).
What this calculates
A system of linear equations asks for values that satisfy several linear equations at once. In Grade 8 you add or subtract equations to remove one unknown at a time (elimination); this calculator uses the same idea exactly, with fractions, as Gaussian elimination. If the determinant D of the coefficients is not 0 the solution is unique; if it is 0 there is either no solution or infinitely many.
The formulas
- Two unknowns D = a₁b₂ − a₂b₁, x = Dₓ ÷ D, y = D_y ÷ D
- Three unknowns D = the 3×3 determinant, x = Dₓ ÷ D, y = D_y ÷ D, z = D_z ÷ D (Cramer rule)
- When D = 0 compare the rank of the coefficient matrix with that of the augmented matrix to tell "none" from "infinitely many".
Reference table
| System | Solution |
|---|---|
| x + y = 5, x − y = 1 | (3, 2) |
| 2x + y = 7, x − y = 2 | (3, 1) |
| x + 2y = 4, 3x + 2y = 8 | (2, 1) |
| x + y = 1, 2x + 2y = 2 | ∞ |
| x + y = 1, x + y = 2 | ∅ |
Good to know
- Determinants and inverses are in the Matrix Calculator.
- For the line each equation describes, see the Linear Function Calculator.
Frequently asked questions
What does "no solution" mean?
No pair (x, y) satisfies both equations. As graphs, the two lines are parallel and never meet.
What about infinitely many solutions?
One equation is a multiple of the other, so the two lines lie on top of each other and the solution cannot be pinned to one point.
If D is 0 is there always no solution?
No. D = 0 only means the solution is not unique: contradicting equations give none, overlapping ones give infinitely many.
Can I use decimal coefficients?
Yes. A decimal such as 0.5 is converted to an exact fraction first.
What if there are three equations and two unknowns?
This calculator solves systems with as many equations as unknowns.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.