Linear Equation Solver
Solve any single-variable linear equation of the form ax + b = c instantly. Enter your three known values and get the exact solution for x — useful for algebra homework, engineering, or quick mental-math checks.
About this calculator
A linear equation in one variable has the standard form ax + b = c, where a is the coefficient of x, b is a constant added to the left side, and c is the value on the right side. To isolate x, first subtract b from both sides to get ax = c − b, then divide both sides by a, giving the solution x = (c − b) / a. This works for any non-zero value of a; if a = 0 the equation either has no solution or infinitely many. Linear equations appear everywhere — from calculating break-even points in business to solving for unknown distances in physics. The solution is unique as long as the coefficient a is not zero.
How to use
Suppose you want to solve 3x + 5 = 20. Enter a = 3, b = 5, and c = 20. The calculator computes x = (c − b) / a = (20 − 5) / 3 = 15 / 3 = 5. You can verify by substituting back: 3(5) + 5 = 15 + 5 = 20 ✓. Try negative or decimal values of a, b, and c for more complex equations.
Frequently asked questions
What is a linear equation and why does it only have one solution?
A linear equation in one variable is any equation where the variable appears to the first power, such as ax + b = c. Because the relationship is a straight line graphically, it intersects any horizontal value exactly once — producing a unique solution. The only exceptions are when a = 0, in which case the equation either contradicts itself (no solution) or is always true (infinite solutions). In all other cases, x = (c − b) / a gives the single exact answer.
How do I solve a linear equation when the coefficient a is a fraction?
You can enter decimal or fractional equivalents directly into the a, b, and c fields. For example, if your equation is 0.5x + 2 = 7, enter a = 0.5, b = 2, c = 7. The formula x = (7 − 2) / 0.5 = 5 / 0.5 = 10 handles fractional coefficients perfectly. The key is ensuring a ≠ 0, because dividing by zero is undefined.
When would I use a linear equation solver in real life?
Linear equations model countless real-world scenarios: calculating how many hours you need to work to reach a savings target, finding a break-even quantity in business, or determining an unknown temperature from a conversion formula. Any time one unknown quantity is related to known values through addition and multiplication, you can express it as ax + b = c and solve instantly. Engineers, students, and financial planners use these equations daily.