= Linear Equation Solver

Solve a linear equation of the form ax + b = c for x.

No ratings yet — be the first

Enter details

Solve for x
x +=
  • a (multiplies x)
  • b (added to ax)
  • c (right-hand side)

Log in or create a free account to save your inputs and results, so you don't have to enter them again next time.🔒 No spam, ever. We never sell or share your details, and you can delete your history or account at any time. Privacy policy

Fill in the details and click Calculate to see your results.

Rate this calculator

Was it useful? A quick star rating helps others — and you can leave a comment too.
Rate it: ★ ★ ★ ★ ★

📘 About the Linear Equation Calculator

A linear equation in one variable has the form ax + b = c, where x appears only to the first power. It has exactly one solution when a is not zero.

Enter a, b and c. The solver moves b to the other side, divides by a, shows each step and checks the answer by substituting it back.

🧮 Formula

Where

  • a = coefficient of x
  • b = constant term
  • c = right-hand side
x = (c - b) / a.

✏️ Worked examples

2x + 3 = 11

You enter
a (multiplies x)2
b (added to ax)3
c (right-hand side)11
You get
x4
Equation2x + 3 = 11

x = 4.

5x − 7 = 18

You enter
a (multiplies x)5
b (added to ax)-7
c (right-hand side)18
You get
x5
Equation5x − 7 = 18

x = 5.

3x + 1 = 6

You enter
a (multiplies x)3
b (added to ax)1
c (right-hand side)6
You get
x5/3 = 1.666666667
Equation3x + 1 = 6

x = 5/3 = 1.666666667.

🧭 How to use this calculator

What you enter

  • a (multiplies x)
  • b (added to ax)
  • c (right-hand side)

What you get

  • x

💡 Valid inputs

  • Use a non-zero value for a.
  • The equation is assumed to have the form ax + b = c.

❓ Frequently asked questions

How do you solve ax + b = c?

Subtract b from both sides to get ax = c − b, then divide by a: x = (c − b) ÷ a.

What if a is zero?

Then there is no x term: the equation is either always true (b = c) or never true.

Can the answer be a fraction?

Yes. 3x + 1 = 6 gives x = 5/3 ≈ 1.6667; the calculator shows both forms.