Linear Equation Solver
Solve ax + b = c
How Solving a Linear Equation Works
A linear equation is one of the simplest and most common types of equations in algebra. Written in the form ax + b = c, it describes a straight line relationship between a variable, x, and a set of constants a, b, and c, where a is not zero. Linear equations show up constantly in everyday problems, from splitting a bill after a discount to converting between units, because they model situations where a quantity changes at a constant, predictable rate.
Solving for x is a two step process built on inverse operations: you undo whatever was done to x, in reverse order. Since b was added to ax, you first subtract b from both sides of the equation, which isolates the term ax on one side. Then, since x is multiplied by a, you divide both sides by a to isolate x completely. This order matters: you always undo addition or subtraction before undoing multiplication or division, because that mirrors the order in which the operations were originally applied to x.
There is one special case to watch for: when a equals zero, there is no x term left to solve for, so the outcome depends on b and c alone. If b equals c, the equation is true for every value of x, giving infinitely many solutions. If b does not equal c, no value of x can make the equation true, so there is no solution at all. The calculator above detects this case automatically and explains which outcome applies.
