Linear Equation Solver

Solve equations in the form ax + b = 0, find x, see a step-by-step explanation, and handle special cases.

Enter coefficients

Education
a·x + b = 0
Examples of linear equations

Result

CalcCore
Enter coefficients and click “Calculate”.

Linear Equation Solver — How It Works

This calculator helps you solve linear equations in the form ax + b = 0. It finds the value of x, shows the main transformation steps, and explains special cases.

Linear Equation Form

The standard form is: ax + b = 0, where a and b are numbers and x is a variable.

How to find x

To solve the equation:

Special cases

If a = 0, the variable x disappears from the equation.

Example

For the equation 2x − 8 = 0:

When to use this calculator

This calculator is suitable for simple first-degree equations with one variable. For quadratic equations, use a separate quadratic equation calculator.

Frequently Asked Questions

What is a linear equation?

It is a first-degree equation, for example ax + b = 0.

What is the formula for x?

If a ≠ 0, then x = -b / a.

What happens if a = 0?

Then the equation does not contain x. It either has no solutions or infinitely many solutions.

When are there infinitely many solutions?

When a = 0 and b = 0, the equation becomes 0 = 0.

When is there no solution?

When a = 0 and b ≠ 0, the equation becomes impossible, for example 7 = 0.

Can I enter decimal numbers?

Yes, the calculator supports both integer and decimal coefficients.