Overview

A linear equation ax + b = c has one unknown to the first power. Solving it means isolating x.

Enter a, b and c to see the solution with its steps and a check.

Worked examples

InputsResult
a3b7c25x = 6Steps: 3x = 25 − 7 = 18, so x = 18 ÷ 3Check: 3 × 6 + 7 = 25
Show 3 more examples
a2b5c17x = 6Steps: 2x = 17 − 5 = 12, so x = 12 ÷ 2Check: 2 × 6 + 5 = 17
a-4b3c-9x = 3Steps: -4x = -9 − 3 = -12, so x = -12 ÷ -4Check: -4 × 3 + 3 = -9
a0.5b1c4x = 6Steps: 0.5x = 4 − 1 = 3, so x = 3 ÷ 0.5Check: 0.5 × 6 + 1 = 4

Linear Equation Solver (ax + b = c) by c

With the calculator's starting values, the result is 6. The table shows how it changes with the c.

cLinear Equation Solver (ax + b = c)
152.66667
204.33333
25starting value6
307.66667
359.33333

Other inputs: a: 3 · b: 7. Change them in the calculator above for your own numbers.

How it works

Subtract b from both sides to get ax = c − b, then divide by a. If a is 0 there is either no solution or infinitely many.

The formula

x = (c − b) ÷ a
aCoefficient of x
bConstant on the left
cRight-hand side

Practical tips

  • Always substitute back to check.
  • If a = 0 and b ≠ c, the equation can never be true.

Frequently asked questions

Solve 2x + 5 = 17.

x = 6.

What if a is negative?

The method is the same; dividing by a negative number flips the sign.