Linear Equation Calculator (One Variable)

Solve ax + b = cx + d for x with the steps shown. Also tells you when the equation has no solution or infinitely many solutions, and checks the answer.

The equation is ax + b = cx + d. Use 0 for a missing term. To solve 3x + 5 = 11, set c = 0.

Results

Solution
x = 3
x
3.00
Steps
3x + 5 = x + 11 Subtract x from both sides: 2x + 5 = 11 Subtract 5 from both sides: 2x = 6 Divide both sides by 2: x = 6 ÷ 2 = 3 Check with x = 3: left side = 14, right side = 14.

How it’s calculated

A linear equation in one variable can always be written ax + b = cx + d. To solve it, collect the x terms on one side and the plain numbers on the other, then divide.

ax + b = cx + d (a − c)x = d − b x = (d − b) ÷ (a − c) when a ≠ c

Example: 3x + 5 = x + 11. Subtract x from both sides: 2x + 5 = 11. Subtract 5: 2x = 6. Divide by 2: x = 3. Check: 3(3) + 5 = 14 and 3 + 11 = 14.

Special cases. If a = c the x terms cancel and you are left with 0 = d − b. If d = b that is always true, so there are infinitely many solutions (for example 2x + 1 = 2x + 1). If d ≠ b it is never true, so there is no solution (for example 2x + 1 = 2x + 5). In graph terms, each side is a line: the lines cross once, are identical, or are parallel.

Frequently asked questions

How do I solve an equation like 3x + 5 = 11?

Set a = 3, b = 5, c = 0 and d = 11. The steps are: subtract 5 to get 3x = 6, then divide by 3 to get x = 2.

What does “no solution” mean?

The x terms cancel and leave a false statement such as 0 = 4. No number can make both sides equal. The two sides are parallel lines that never meet.

What does “infinitely many solutions” mean?

Both sides are the same expression, so every x works. Example: 2x + 1 = 2x + 1.

Can it solve equations with brackets or fractions?

Expand the brackets first, for example 2(x + 3) = x + 8 becomes 2x + 6 = x + 8, then enter a = 2, b = 6, c = 1, d = 8. For several unknowns use the system of equations calculator.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator