Linear Equation Calculator

Solve ax + b = c and correctly distinguish one solution, all real numbers, and no solution.

Linear equation calculator

ax + b = c

Solution

x = 5

  1. 1.2x + 5 = 15
  2. 2.2x = 15 - 5 = 10
  3. 3.x = 10 / 2 = 5

Linear equation calculator guide

A one-variable linear equation has the variable only to the first power. For ax + b = c, subtracting b from both sides gives ax = c - b, and dividing by nonzero a isolates x.

The zero-coefficient case must be classified rather than rejected automatically. If a is zero and b equals c, the equation is an identity true for every real x. If b and c differ, it is inconsistent and has no solution.

How to solve a one-variable linear equation

  1. Enter a: Provide the finite coefficient multiplying x.
  2. Enter b and c: Enter the left constant and right-side value.
  3. Solve: Select Solve for x to classify the equation and show the isolation steps.
  4. Interpret the classification: A zero a can produce all real numbers or no solution instead of a single numeric x.

Formula and variables

Subtract b from both sides, then divide both sides by a. Equal operations on both sides preserve the equation.

x = (c - b) / a, for a != 0
aVariable coefficient
Multiplier of x; a nonzero value produces one solution.
bLeft constant
Constant added to ax.
cRight side
Value that the left expression equals.
xUnknown
The value or values that make the equation true.

Solve 2x + 5 = 15

Find the value of x that makes the equation true.

a
2
b
5
c
15
  1. 2x = 15 - 5
  2. 2x = 10
  3. x = 10 / 2

Result: x = 5.

Substituting 5 gives 2(5) + 5 = 15, which verifies the solution.

Understanding your results

Unique solution

When a is nonzero, exactly one real x satisfies the equation.

Identity or inconsistency

When a is zero, compare b and c. Equal constants make the statement always true; unequal constants make it always false.

Assumptions

  • The equation has already been reduced to ax + b = c.
  • All three coefficients are finite real numbers.
  • The variable is interpreted over the real numbers.

Limitations

  • The interface does not parse typed expressions with parentheses or variables on both sides.
  • It does not solve inequalities, quadratic equations, or systems.
  • Floating-point display can round repeating decimals.
  • Units must be carried separately when the coefficients represent measured quantities.

Common mistakes

  • Moving b across the equals sign without changing its sign.
  • Dividing by a before handling the case a = 0.
  • Calling every zero-coefficient equation no solution.
  • Rounding the solution before checking it.
  • Entering an equation that has not been simplified into the displayed form.

Practical use cases

Algebra checking

Verify the isolation steps and classification of a linear equation.

Constant-rate formulas

Recover an unknown input when a relationship has a fixed coefficient and offset.

Planning and decision guide

Simplify first

Combine like terms and move variable terms to one side before translating the equation into a, b, and c. Preserve exact fractions as long as possible in hand work.

Frequently asked questions

What happens when a is zero?

The equation becomes b = c. It has all real solutions if the constants match and no solution if they do not.

Why subtract b first?

Subtracting b from both sides removes the constant next to the variable while preserving equality.

Can the solution be a fraction or decimal?

Yes. Any finite real value can be the unique solution.

How do I verify the answer?

Substitute the calculated x into ax + b and confirm that it equals c.

Does this solve equations with x on both sides?

Simplify those equations first by collecting x terms on one side and constants on the other, then enter the equivalent coefficients.

Sources and review

Reviewed 2026-08-29.

Continue with calculators that answer nearby questions and help compare the next step.