Skip to content
The Calculatorz
Algebra

Linear Equation Solver

Solve a one-variable linear equation in the form ax + b = c and verify the solution by substitution.

Coefficient a must not be zero for a unique one-variable solution. Enter negative or zero values where the equation requires them.

Coefficients in ax + b = c

Linear equation

How to use this calculator

Rewrite the equation in the form ax + b = c, then enter a, b and c with their signs. The calculator isolates x and substitutes it back into the left side.

Formula

ax + b = c, so ax = c − b and x = (c − b) ÷ a.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewIfrahMSc Mathematics

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What if a equals zero?

There is no unique x term. Depending on b and c, the statement is either always true or impossible.

Can b or c be negative?

Yes. Enter each signed value exactly as it appears in the rewritten equation.

How is the answer checked?

The calculator substitutes x into ax + b and compares the result with c.

How do I solve an equation with x on both sides?

Move all x terms to one side and constants to the other. For 3x + 2 = x + 10, subtract x and 2 from both sides to get 2x = 8, so x = 4.

What does it mean if an equation has no solution or infinitely many?

If the x terms cancel and leave a false statement, such as 2 = 5, there is no solution. If they leave a true statement, such as 2 = 2, every value of x works.

How do I solve 3x + 5 = 20?

Subtract 5 from both sides to get 3x = 15, then divide both sides by 3 to get x = 5. Check: 3 × 5 + 5 = 20.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Marecek, L., Anthony-Smith, M., & Honeycutt Mathis, A. (2020). Prealgebra 2e. OpenStax. View source
  2. Marecek, L., Anthony-Smith, M., & Honeycutt Mathis, A. (2020). Intermediate algebra 2e. OpenStax. View source
  3. Abramson, J. (2021). College algebra 2e. OpenStax. View source
  4. International Organization for Standardization. (2019). ISO 80000-2: Quantities and units—Part 2: Mathematics. View source
  5. Kirk, D. (2023). Contemporary mathematics. OpenStax. View source