Loona Calculators
Loona Calculators › Maths › Equation Solver

Equation Solver (Linear & Quadratic)

Solve linear equations (ax + b = cx + d) and quadratic equations (ax² + bx + c = 0) with every step shown — including the discriminant, repeated and complex roots, and a final check that substitutes the answer back in.

Enter the four numbers in ax + b = cx + d. Use 0 where a term is missing — for example, 2x + 3 = 7 is a = 2, b = 3, c = 0, d = 7.

Enter the three coefficients in ax² + bx + c = 0. Use 0 where a term is missing — for example, x² − 9 = 0 is a = 1, b = 0, c = −9.

How to use the Equation Solver

  1. Choose the equation type: linear (x only) or quadratic (x²).
  2. Type in the coefficients — the numbers in front of x² and x, and the plain number. Enter 0 for any missing term.
  3. Press Solve with steps and read the working line by line. The last step checks the answer by substituting it back into the original equation.
Example: 3x + 2 = x + 10. Move the x terms left: 2x + 2 = 10. Move the number right: 2x = 8. Divide by 2: x = 4. Check: 3 × 4 + 2 = 14 and 4 + 10 = 14 ✓

Frequently Asked Questions

What kinds of equations can this solver handle?

Linear equations in the form ax + b = cx + d, and quadratic equations in the form ax² + bx + c = 0. It shows every step, the discriminant for quadratics, and a final check. It does not solve cubic equations, simultaneous equations in two unknowns, or inequalities — the page title says exactly what it covers.

What does "no solution" or "infinitely many solutions" mean?

Sometimes the x terms cancel out completely. If the numbers also match (like 5x + 1 = 5x + 1) the equation is always true — infinitely many solutions. If the numbers do not match (5x + 1 = 5x + 3) it can never be true — no solution. The solver tells you honestly which case you have instead of inventing an answer.

What are complex roots?

When a quadratic's discriminant (b² − 4ac) is negative, the graph never crosses the x-axis and there are no real answers. The roots are then complex numbers using i, where i² = −1 — for example, x² + 1 = 0 has roots x = i and x = −i. This solver shows them and still checks them.

Related Calculators

🍕

Fraction Calculator

Maths

%

Percentage Calculator

Maths

x²

Exponent Calculator

Maths

√

Square Root Calculator

Maths

🧮

Scientific Calculator

Maths

How it works — the method

Linear equations are solved by keeping the equation balanced — whatever you do to one side, you do to the other. First the x terms are gathered on the left (subtract cx from both sides), then the number terms on the right (subtract b), and finally both sides are divided by the coefficient of x.

Quadratic equations use the quadratic formula. For ax² + bx + c = 0:

x = (−b ± √(b² − 4ac)) ÷ (2a)

The part under the root, D = b² − 4ac, is called the discriminant, and it tells you the kind of answer before you finish: D > 0 means two different real roots, D = 0 means one repeated root, and D < 0 means two complex roots and no real answer.

Worked example

Example: Solve x² − 5x + 6 = 0. Here a = 1, b = −5, c = 6. D = (−5)² − 4 × 1 × 6 = 25 − 24 = 1, so √D = 1. Then x = (5 + 1) ÷ 2 = 3 or x = (5 − 1) ÷ 2 = 2. Check x = 3: 9 − 15 + 6 = 0 ✓

Frequently asked questions

How do I enter an equation with a term missing?

Enter 0 for the missing coefficient. x² − 9 = 0 becomes a = 1, b = 0, c = −9, and the solver gives x = 3 or x = −3. For a linear equation like 2x = 10, that is a = 2, b = 0, c = 0, d = 10.

What if I type a = 0 in the quadratic solver?

Then the x² term disappears and the equation is really linear. The solver notices this and solves it as a linear equation instead, telling you that is what happened.

Why does the solver check its answer at the end?

Substituting the answer back into the original equation is the surest way to catch a mistake: if both sides come out equal, the answer is certainly right. It is a good habit for homework too — teachers often give method marks for a visible check.

Embed this calculator on your website — free

Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.