Algebra Calculator

Linear Equation Solver

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

Instant answer Formula breakdown Browser-based Mobile friendly
Interactive calculator

Enter your values

Use the example values or replace them with your own. Required validation happens before the calculation.

Ready
Must not be zero.
Calculated answer

Result

Simple workflow

How to use the Linear Equation Solver

Follow these steps to get a reliable result and understand how it was produced.

1

Enter a and b for ax + b = 0.

2

The constant is isolated from the x term.

3

Divide by a and verify the resulting x.

Understanding the calculation

Move the constant term to the other side and divide by the non-zero coefficient of x.

x = −b/a

The result panel substitutes your numbers into this relationship and shows the important intermediate values.

Common uses

  • Algebra homework
  • Rate and cost equations
  • Rearranging simple formulas

Accuracy tips

  • If a is zero, the equation is not a one-variable linear equation with one solution.
  • Negative and decimal coefficients are accepted.
  • The verification residual should be zero apart from tiny rounding effects.
Helpful answers

Linear Equation Solver FAQs

Important details about formulas, inputs, limitations, and result interpretation.

What happens if a equals zero?

The equation no longer determines a unique x in this form.

Can the answer be a decimal?

Yes. Decimal and fractional-equivalent answers are common.

How does verification work?

The calculated x is substituted back into ax+b to check that it equals zero.

Does this solve equations with x on both sides?

First rearrange the equation into ax+b=0, then enter the resulting coefficients.