Linear Equation Solver
A linear equation has x only to the first power, such as 3x + 5 = x + 13. This linear equation solver collects the x terms on one side and the numbers on the other, then divides to find x. It handles fractions exactly and detects equations with no solution or infinitely many solutions.
How to use the linear equation solver
- Write your equation in the form ax + b = cx + d.
- Enter a, b, c and d (use 0 for any missing term).
- Press Calculate to see x, every step and the substitution check.
Formula
Worked example: 3x + 5 = x + 13
- a (x on the left): 3
- b (number on the left): 5
- c (x on the right): 1
- d (number on the right): 13
✓ Answer checked
Step-by-step working (4 steps)
Start with the equation
Write the equation in the form ax + b = cx + d.
Collect x terms on the left Do the same to both sides
Subtract x from both sides.
Move the number to the right Do the same to both sides
Subtract 5 from both sides.
Divide by the coefficient Do the same to both sides
Divide both sides by 2.
Formulas used
How this was checked
- ✓ Putting x = 4 into the original equation: left side = 17, right side = 17.
Frequently asked questions
How do I solve a linear equation?
Do the same thing to both sides until x is on its own. Collect x terms on one side, move the numbers to the other, then divide by the number in front of x.
What if there is no x on the right-hand side?
Enter 0 for c. For example, 2x − 7 = 11 is a = 2, b = −7, c = 0, d = 11.
Can a linear equation have no solution?
Yes. If the x terms cancel and leave a false statement like 2 = 5, there is no solution. If they leave a true statement like 0 = 0, every x works.
Related calculators
Quadratic Equation Solver
Solve ax² + bx + c = 0 with the quadratic formula.
Fraction Calculator
Free fraction calculator for adding, subtracting, multiplying and dividing fractions and mixed numbers.
Slope Calculator
Find the slope (gradient) of a line through two points, plus its equation y = mx + c, angle and perpendicular slope.
