Skip to content
Calcrivo

Linear Equation Solver

Solve ax + b = 0 for x, showing the solution and verification step.

Inputs

Must be non-zero

Solution (x)

-3.000000

Equation

2x + 6 = 0 → x = -3

Step by step

  1. Values used

    a (coefficient of x) = 2; b (constant term) = 6

  2. Linear equation

    x = -b / a

  3. Solution (x)

    = -3.000000

  4. Equation

    = 2x + 6 = 0 → x = -3

How it works

A linear equation ax + b = 0 has exactly one solution: x = −b/a. This calculator solves any first-degree equation in one variable.

Formula

Linear equation

x = -b / a

a
Coefficient of x
b
Constant term

Frequently Asked Questions

What if a equals zero?

If a = 0, the equation is not linear — it becomes b = 0, which is either always true (b=0) or has no solution.

Can this solve equations like 3x + 5 = 11?

Yes — rewrite as 3x + (5−11) = 0, so a=3, b=−6, giving x=2.

You might also need