Details
- x: —
Step-by-step
Explanation:
This tool solves linear equations of the form $ax + b = 0$ and shows the solution step by step by isolating $x$. Enter $a$ and $b$ as numbers (decimals are allowed). The solver also handles the special cases where $a=0$ (no solution or infinitely many solutions). For more algebra tools, explore Algebra.
Enter coefficients a and b to solve ax + b = 0.
Coefficient of x.
Constant term.
A linear equation in one variable has the variable only to the first power and can be written in the standard form $$ax + b = 0$$ where $a$ and $b$ are constants. When $a\ne 0$, the equation has exactly one solution for $x$.
The solver isolates $x$ using algebraic moves that keep the equation balanced on both sides. It first moves the constant term, then divides by the coefficient of $x$:
If your equation includes an $x^2$ term, use the Quadratic Equation Solver. If you have two linear equations with two variables, use the 2x2 System of Equations Solver.
Solve a typical linear equation where $a\ne 0$.
Solve: $$3x-12=0$$
Move the constant term: $$3x=12$$
Divide by $3$: $$x=\frac{12}{3}=4$$
Negative coefficients are handled the same way - isolate $x$ and divide.
Solve: $$-2x+5=0$$
Move the constant term: $$-2x=-5$$
Divide by $-2$: $$x=\frac{-5}{-2}=2.5$$
When $a=0$ but $b\ne 0$, the equation has no solution.
Solve: $$0x+7=0$$
This simplifies to: $$7=0$$ which is impossible, so there is no solution.
When $a=0$ and $b=0$, every value of $x$ satisfies the equation.
Solve: $$0x+0=0$$
This is: $$0=0$$ which is always true, so there are infinitely many solutions.
Keep exploring Mathematics or jump back to Calculators to browse more tools.
Quick answers about ax + b = 0, solutions, and edge cases.
Trusted by thousands of users every month. Fast, accurate and privacy-friendly tools.