Mega Quadratic Equations Solver

Type the equation as it is written. It does not have to be in standard form first, and for most equations people actually meet, getting it there is the bulk of the work: (x − 2)(x + 3) = 5x − 1 is an ordinary quadratic that looks nothing like ax² + bx + c = 0 until you expand both sides and collect ...

Type the equation as it is written — it does not have to be in standard form. (x − 2)(x + 3) = 5x − 1 is an ordinary quadratic, and rearranging it into ax² + bx + c = 0 is most of the work. Roots come out exactly: fractions where they are rational, simplified surds like (3 + √17)/4 where they are not, and exact complex pairs where the curve misses the axis. If the squared terms cancel, the equation was linear all along and this solves it rather than complaining.

THE EQUATION

Powers with ^, brackets, fractions and terms on both sides all work. Any single letter can be the unknown.

TWO REAL ROOTS

x = 5 or −1

Both roots are rational, so the quadratic factors: (x − 5)(x + 1) = 0.

As typed(x-2)(x+3) = 5x - 1
Expandedx² + x − 6 = 5x − 1
Standard formx² − 4x − 5 = 0
Factored(x − 5)(x + 1) = 0

EACH ROOT PUT BACK, EXACTLY

5 → 0

−1 → 0

sum 4 against −b/a = 4

product −5 against c/a = −5

DISCRIMINANT

36

positive, so two real roots

AXIS OF SYMMETRY

x = 2

the roots sit either side of this

AS DECIMALS

5, −1

exact — the roots are rational

FACTORS OVER ℚ

yes

the discriminant is a square number

WHAT IS HAPPENING

1Expand both sides and collect

x² + x − 6 = 5x − 1

Brackets multiplied out and powers expanded, with each side written as a multiple of the square, a multiple of the unknown, and a constant.

2Move everything to one side

x² − 4x − 5 = 0

Subtracting the right from the left. Only now is the equation in the form the quadratic formula expects, and for most equations as they are actually written this step is the bulk of the work.

3Work out b² − 4ac

(−4)² − 4(1)(−5) = 36

This single number decides the shape of the answer: positive gives two roots, zero gives one, negative gives a conjugate pair with an imaginary part.

4Two rational roots

x = 5 and x = −1

The discriminant came out a square number, so the roots are fractions and the quadratic factors over the rationals.

5It factors over the rationals

(x − 5)(x + 1) = 0

A product is zero exactly when one of its factors is zero, so each bracket gives a root directly. Factoring is quicker than the formula when it is available, and it is available precisely when the discriminant is a square number.

THE CURVEthe curve crosses the axis twice, and the crossings are the roots−4.68.640.7−15.1filled circles are the roots · the gold circle is the turning point at (2, −9)

Why the formula is worth trusting over factoring. Factoring is faster when it works, and it works only when the discriminant is a square number — which across quadratics with two real roots and small coefficients is 21.2% of them. On the other four fifths, time spent hunting for factors is time spent looking for something that is not there. The formula never fails to apply, and this page shows the factorisation whenever one genuinely exists so you can see which case you are in rather than guessing.

HOW THE ROOTS ARE BUILTthe formula gives a centre and a step: the roots sit the same distance either side of the axis2−b ÷ 2a5−1centre 2, step ±0the step is √(b² − 4ac) ÷ 2a, which is zero exactly when the discriminant is

Exact surds throughout · each root is substituted back symbolically, not numerically

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Type the equation with an equals sign. Powers use ^, so x^2 or the typographic x². Brackets, fractions, decimals and terms on both sides all work, and any single letter can be the unknown.

  2. 2

    Read the standard form in the table. That line is the rearrangement done for you, and it is where the discriminant and the formula both come from.

  3. 3

    Take the exact roots first. Where they are surds the decimal underneath is a rounding — useful for a sketch, not for substituting back.

  4. 4

    Check the substitution panel. Each root is put back into the collected equation symbolically, so both the rational part and the surd part must come to zero.

WORKED EXAMPLE

Take (x − 2)(x + 3) = 5x − 1. Expand the left: x² + 3x − 2x − 6, which collects to x² + x − 6. The right is already 5x − 1. Nothing is in standard form yet. Subtract the right from the left: x² + x − 6 − 5x + 1 = x² − 4x − 5. So the equation is x² − 4x − 5 = 0, and only now can the formula be applied. The discriminant is (−4)² − 4(1)(−5) = 16 + 20 = 36. Thirty-six is a square number, so the roots are rational and the quadratic factors: x² − 4x − 5 = (x − 5)(x + 1), giving x = 5 and x = −1. Check both in the original equation rather than in the rearranged one. At x = 5: the left is (3)(8) = 24 and the right is 25 − 1 = 24. At x = −1: the left is (−3)(2) = −6 and the right is −5 − 1 = −6. Both hold. Now one that does not factor: x² − 3x − 5 = 0. The discriminant is 9 + 20 = 29, which is not a square number, so the roots are (3 ± √29)/2 — about 4.1926 and −1.1926. No amount of searching will find integer factors here, because there are none. That is the case for knowing the test: the discriminant tells you whether factoring is even possible before you start looking. And one where the square disappears: (x + 1)² = x² + 5. Expanding the left gives x² + 2x + 1. Subtracting the right: x² + 2x + 1 − x² − 5 = 2x − 4. The squared terms cancelled exactly, so the equation is 2x − 4 = 0 and x = 2. It was never a quadratic. Checking in the original: (3)² = 9, and 4 + 5 = 9. One last thing worth knowing about the formula itself. For x² + 1000000000x + 25 = 0 the small root is about −2.5 × 10⁻⁸, but computing it as (−b + √(b² − 4ac))/2a in ordinary floating point subtracts two nearly equal numbers and returns something closer to −6 × 10⁻⁸ — or, at larger coefficients, exactly zero. Across a family built to test this, the textbook arrangement failed to satisfy its own equation 90% of the time. Working in exact fractions avoids the problem rather than mitigating it.

REFERENCE RULES

RuleWhat it saysWhy
Standard formax² + bx + c = 0Everything has to reach this shape first. For most typed equations that is the work.
The formulax = (−b ± √(b² − 4ac)) ÷ 2aAlways available. Factoring is quicker when it is possible, which is not often.
The discriminantb² − 4acPositive gives two roots, zero gives one, negative gives a complex pair.
Factoring is the exception21.2% of real-root casesHunting for factors on the rest is time spent on something that is not there.
When it factorsthe discriminant is a square numberThat is the exact test. No guessing required.
The axis of symmetryx = −b ÷ 2aThe roots sit an equal distance either side of it.
Roots as surds(3 + √17)/4, not 1.7808The surd is exact; a decimal put back into the equation misses zero.
The x² term may cancel(x+1)² = x² + 5Then the equation was linear all along, with one solution.
Complex roots come in pairsp + qi and p − qiThey differ only in the sign of the imaginary part.
Sum and product−b/a and c/aA check that never touches the formula that produced the roots.
The formula can cancelwhen b² is far larger than 4acOne root becomes a difference of nearly equal numbers. 90% failed in doubles.
Not linear, not quadraticx³ is refusedA cubic needs different methods entirely, so it gets a reason rather than a number.
The unknown in a denominator1/x is refusedNot a polynomial equation. Multiplying up first may make it one.
Where the formula comes fromcompleting the square, in generalThat method has its own page here; the formula is it done once with letters instead of numbers.

FREQUENTLY ASKED QUESTIONS

No. Type it as it is written and the rearranging is done for you, with the collected form shown so you can check it. That step is genuinely most of the work for equations as they actually appear: (x − 2)(x + 3) = 5x − 1 needs expanding on the left and subtracting on the right before ax² + bx + c = 0 even exists.

  • ·Type it in whatever arrangement you have
  • ·The collected form is shown as a separate line
  • ·Expanding and subtracting is most of the work
  • ·The formula only applies after that

RELATED CALCULATORS

MORE ALGEBRA CALCULATORS

Was this calculator helpful?

Last updated: September 1, 2026 · Exact surds throughout, never floating point · The equation does not have to be in standard form before you type it.