Linear Equation Solver
Solve linear equations of the form ax + b = cx + d in one step, with the rearrangement shown.
Formula: for ax + b = cx + d, collect x on one side: (a − c)x = d − b, so x = (d − b) ÷ (a − c).
How to use the linear equation
- Enter a and b for the left side and c and d for the right side of ax + b = cx + d.
- Press “Solve for x”.
- Read the value of x and the rearrangement that produced it.
Linear equation example
3x + 7 = 22 → subtract 7: 3x = 15 → divide by 3: x = 5. Check: 3 × 5 + 7 = 22.
Tips for using the linear equation
- Do the same operation to both sides at every step.
- Clear fractions first by multiplying both sides by the denominator: x/4 + 2 = 5 → x + 8 = 20 → x = 12.
- If the x terms cancel and leave a false statement (such as 0 = 5), there is no solution; if they leave a true one (0 = 0), every x works.
Linear equation: common questions
- What is a linear equation?
- An equation where x appears only to the power of 1, such as 3x + 5 = x + 11. Its graph is a straight line, and it has at most one solution.
- What if both sides have the same x coefficient?
- If a equals c, the x terms cancel. The equation then has no solution (for example 2x + 1 = 2x + 5) or every x is a solution (for example 2x + 1 = 2x + 1).
- Can I solve ax + b = 0 with this tool?
- Yes. Set c to 0 and d to 0, so the equation becomes ax + b = 0 and the answer is x = −b ÷ a.
- Is my input stored?
- No. The calculation runs in your browser.
- What is a real-life linear equation?
- A taxi fare of 250 plus 50 per km: 250 + 50k = 1,000 gives k = 15 km for a 1,000 fare.