linear equation solver
To solve a linear equation, get every x term on one side and every number on the other, then divide by the number in front of x. Type yours below to see each step, from expanding brackets to the final check.
Enter solves · Shift+Enter for a new line · put systems on separate lines or separate them with commas
✓ checked: substituting the answer back into the equation makes both sides equal.
step-by-step working
Expand any brackets and collect like terms on each side.
3x + 6 = 2x − 1Subtract 2x from both sides to get the x terms together.
x + 6 = −1Subtract 6 from both sides.
x = −7
The method
The rule behind every step is balance: whatever you do to one side, you do to the other. That keeps the two sides equal, so the value of x that works at the end also worked at the start.
- Expand any brackets: 3(x + 2) becomes 3x + 6.
- Clear fractions by multiplying both sides by the lowest common denominator.
- Move the x terms to one side by adding or subtracting the same term on both sides.
- Move the numbers to the other side the same way.
- Divide both sides by the coefficient of x.
- Check: put the answer back into the original equation; both sides should be equal.
Worked examples
2x + 3 = 11
✓ checked: substituting the answer back into the equation makes both sides equal.
step-by-step working
Subtract 3 from both sides.
2x = 8Divide both sides by 2.
x = 4
5x − 3 = 2x + 9
✓ checked: substituting the answer back into the equation makes both sides equal.
step-by-step working
Subtract 2x from both sides to get the x terms together.
3x − 3 = 9Add 3 to both sides.
3x = 12Divide both sides by 3.
x = 4
x/2 + 1 = 5
✓ checked: substituting the answer back into the equation makes both sides equal.
step-by-step working
Multiply both sides by 2 to clear the fractions.
x + 2 = 10Subtract 2 from both sides.
x = 8
When there's no single answer
Sometimes the x terms cancel completely. If what's left is true, such as 3 = 3, every number is a solution (the two sides are the same expression). If it's false, such as 3 = 5, there is no solution at all (the two sides are parallel lines that never meet). The solver tells you which case you have.
Common mistakes
- Only multiplying the first term in a bracket: 3(x + 2) is 3x + 6, not 3x + 2.
- Changing the sign of a term without moving it: a term only changes sign when it crosses the = sign.
- Dividing only part of a side: in 2x + 4 = 10, divide every term by 2 (x + 2 = 5), or subtract 4 first.
- Forgetting to multiply every term when clearing fractions.
Solved equations
- solve x² − 5x + 6 = 0
- solve x² + 5x + 6 = 0
- solve x² − 4 = 0
- solve 2x + 3 = 11
- solve x² + x − 6 = 0
- solve x² − 2x − 8 = 0
- solve x² + 4x + 4 = 0
- solve 3x² − 12 = 0
- solve x² + 1 = 0
- solve x² − 9 = 0
- solve x² − x − 6 = 0
- solve x² + 2x − 3 = 0
- solve x² − 3x − 4 = 0
- solve x² − 6x + 9 = 0
- solve x² − 16 = 0
- solve 2x² + 3x − 2 = 0
- solve x² + 2x − 1 = 0
- solve x² − 2 = 0
- solve x² + x + 1 = 0
- solve x² − 7x + 12 = 0
- solve x² + 3x − 10 = 0
- solve 3x + 5 = 20
- solve 5x − 7 = 3x + 9
- solve 2(x + 3) = 14
- solve x/2 + 3 = 7
- solve x² = 16
- solve x³ = 8
- solve x² − 5x = 0
- solve 4x² − 1 = 0
- solve 6x² − 7x + 2 = 0
- solve x² + 6x + 5 = 0
- solve x² − 6x + 13 = 0
Frequently asked questions
What makes an equation linear?
x appears only to the power 1: no x², no √x and no x in a denominator. Its graph is a straight line, and it has exactly one solution unless the x terms cancel.
Can it solve equations with fractions?
Yes. It multiplies both sides by the lowest common denominator first, so x/2 + 1 = 5 becomes x + 2 = 10. Equations with x in the denominator, like 1/x + 1 = 3, are solved too, and values that would make a denominator zero are rejected.
Can I use a letter other than x?
Yes. Any single letter works. If there is more than one letter, it solves for x and treats the others as constants; type "for y" at the end to choose a different letter.
How do I check my answer by hand?
Substitute it into the original equation and work out both sides separately. For 2x + 3 = 11 and x = 4: the left side is 2·4 + 3 = 11, which matches the right side.