Logo

Equation Solver

Solve linear equations step by step

Try these examples:

Supports linear equations with variable x

Related Tools You Might Like

Using the quadratic formula without sign mistakes

Any equation shaped ax squared plus bx plus c equals zero can be solved by formula. No factorising, no guessing, no special cases.

The formula needs three numbers with their signs intact: a, b and c. Nearly every wrong answer we see comes from a sign, usually a negative b that lost its minus while being copied.

Write each coefficient down with its sign before substituting anything. It feels like a wasted step and it removes the single most common error in school algebra.

What the discriminant tells you before you solve for x

The discriminant is b squared minus four ac — the expression under the square root. Computing it first saves effort.

Positive means two distinct real solutions. Zero means one repeated solution. Negative means none in the real numbers, because you would be taking the square root of a negative.

That last case is not a failure. In a physics problem it often means the thing you asked about never happens: the ball never reaches that height, the break-even point is never crossed. The algebra is telling you something true.

How a linear equation differs from a quadratic

A linear equation has x to the first power only, so its graph is a straight line and it has exactly one solution.

Quadratics include x squared. The graph is a parabola, it can cross the x-axis twice, touch it once, or miss it entirely, which is why the number of solutions varies.

Worth checking before you start: an equation that looks quadratic may not be. If the x squared terms cancel when you simplify, a is zero, the quadratic formula divides by zero, and you should have solved it as a linear equation instead.

Checking a result instead of trusting it

Substitution is the only check worth doing. Put your answer back into the original equation and see whether both sides match.

This catches the errors a solver cannot. If you typed a coefficient wrongly, the tool solves the equation you entered perfectly and gives you an answer to the wrong question. Substituting into the equation as written exposes that at once.

For a quadratic, both roots should satisfy it. If one works and the other does not, the arithmetic went wrong somewhere in the formula rather than in the setup.

How to use the Equation Solver

  1. Rearrange your equation so one side equals zero.
  2. Enter the coefficients, keeping the signs exactly as they appear.
  3. Solve, then read the working rather than only the answer.
  4. Check the discriminant to understand why you got one, two or no real solutions.
  5. Substitute your answer back into the original equation to confirm it.

What this tool handles

Linear and quadratic

Single-variable equations of first and second degree.

Working shown

The steps, not just the result, so you can check your own method.

Discriminant explained

Says why an equation has two roots, one, or none in the reals.

Runs in your browser

No network request, verifiable in the developer tools network panel.

Frequently asked questions

Why does my quadratic have no answer?

▼
Check the discriminant, the part under the square root. When it is negative, the parabola never crosses the x-axis, so there is no real solution. There are two complex solutions, which matter in engineering and are usually outside the scope of a school exercise.

What does it mean when both answers are the same?

▼
The discriminant is exactly zero. The parabola touches the x-axis at one point instead of crossing it. Mathematically it is called a repeated root, and it is a single solution rather than two coincidentally equal ones.

Why did I get a decimal instead of a fraction?

▼
Because the exact answer involves an irrational square root. Writing the square root of 2 as 1.414 is a rounded approximation. For homework, the exact form with the radical left in place is usually what is wanted, and a decimal will be marked down.

Can it handle equations with x on both sides?

▼
Yes. Collect like terms first so everything sits on one side and the other side is zero. That is the form the formula expects. Rearranging is where most sign errors happen, so check each term as you move it.

Why do my simultaneous equations have infinitely many solutions?

▼
The two equations describe the same line. One is a multiple of the other, so every point satisfying one satisfies both. The opposite case, parallel lines that never meet, gives no solution at all. Both outcomes are correct answers, not errors.

Is a solution from a calculator acceptable in homework?

▼
Usually not on its own. Most marking schemes award credit for method, so an answer with no working scores poorly even when it is right. Use the steps shown to check your own working rather than to replace it — that is the use that actually helps.

What is the discriminant for, beyond spotting no-solution cases?

▼
It tells you how many real roots exist before you do any work. Positive means two, zero means one repeated, negative means none. In applied problems it answers useful questions directly, such as whether a thrown object ever reaches a given height.

Why does completing the square give a different-looking answer?

▼
Different-looking, same value. Completing the square and the quadratic formula are the same algebra arranged differently — the formula is literally derived by completing the square on the general case. If the two disagree numerically, one of them has a sign error.

Does this solver send my equation anywhere?

▼
No. The algebra runs in your browser and nothing is transmitted. Open the Network tab in developer tools and solve something: no request appears. Worth knowing if you are working on something you would rather not type into a remote service.

Why is my answer slightly off from the textbook?

▼
Almost always rounding. If an intermediate value is rounded before the final step, small errors compound. Keep full precision until the end and round once. If the difference is large rather than small, suspect a sign error when terms were moved across the equals sign.
Advertisement