Skip to content

§ II · Algebra

Quadratic Equation Solver

Exact roots in surd form, with the discriminant worked out first.

  • Updated 2026-11-25
  • Free · no sign-up
  • Runs in your browser
Quadratic equation solverexact roots · surd form · discriminant

Fractions are allowed: 1/2, -3/4. Leave a at 0 to solve a linear equation instead.

Solution

x1=3x2=2

Δ = 1

decimal: 3, 2

vertex: (5/2, −1/4)

factored: (x − 3)(x − 2)

two real roots

Working

  1. 01

    the discriminant Δ = b² − 4ac

    Δ =-5² − 4·1·6Δ =1

  2. 02

    the square root of Δ

    √Δ =√1√Δ =1

  3. 03

    the quadratic formula, with both signs

    x=−-5±12x=3 or x=2

Try one

Compared with a basic calculator

TaskBasic calculatorThis page
InputEvaluate a formula manuallyEnter the three coefficients
RootsOften decimal approximationsRational, surd or complex quadratic roots
WorkingNo discriminant explanationDiscriminant and quadratic formula

How to use it

§ How to use
  1. 01

    Type a, b and c from ax² + bx + c = 0. Fractions such as 1/2 and negative values such as -5 are accepted.

  2. 02

    Read Δ first: it says whether the roots are real, repeated, or a conjugate pair, before any root is printed.

  3. 03

    Then read the roots. When Δ is not a perfect square they stay in surd form; when it is, they come out as ordinary fractions and the factored form appears.

  4. 04

    The vertex sits under the roots. Leaving a at 0 solves a linear equation instead, and the panel says so.

Exact roots, not decimal ones

§ 02

Three equations that a decimal solver handles badly.

EquationDecimal solverShowSteps
x² − 5x + 6 = 02.999999999 and 2.000000001x = 3 and x = 2
x² − 2x − 1 = 02.41421356237, −0.41421356237x = 1 + √2 and x = 1 − √2
2x² + 4x + 5 = 0error: no real solutionx = −1 ± (√6/2)i

The formula, and why the discriminant comes first

§ 03

For ax² + bx + c = 0 with a ≠ 0, the roots are

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

The quantity under the root, Δ = b² − 4ac, decides everything before the formula is applied. The panel computes it first and prints it, because knowing whether Δ is positive, zero or negative tells you the shape of the answer — and it is the step most often skipped in a hurry.

Why the surd stays a surd

When Δ is not a perfect square the square root is irrational, but it is still a single number worth writing down: √8 is 2√2, and that is exactly the form an exam answer needs. Rounding it to 2.828 loses the structure and makes the two roots look unrelated.

What the vertex adds

The vertex sits at x = −b/2a, halfway between the roots, with y = c − b²/4a. Both are printed so the parabola can be sketched without a separate calculation.

Questions

§ 04
Does it give exact roots in surd form?
Yes. x² − 2x − 1 returns 1 + √2 and 1 − √2 rather than 2.414213562 and −0.414213562. The decimal is shown underneath, but the surd is the answer.
What if the discriminant is negative?
The roots are a conjugate pair and are written with i: for 2x² + 4x + 5 you get −1 ± (√6/2)i. Nothing is thrown away.
How is the discriminant used?
Δ = b² − 4ac decides the case before any root is taken. Positive means two real roots, zero means one repeated root, negative means two complex roots. The panel shows Δ before the formula is applied.
Which order are the roots in?
The first root uses the + sign in the numerator, the second the − sign. The order follows the formula, not the size, so a negative first root is normal.
Can the coefficients be fractions?
Yes. Type 1/2 for a, and the whole calculation stays exact: the denominator is carried through the discriminant and the formula instead of being rounded to 0.5.
Does it factor the quadratic?
When both roots are rational it prints the factored form beside the roots, so x² − 5x + 6 shows (x − 3)(x − 2). When the roots are irrational the factored form would be uglier than the roots, so it is left out.
What if a is zero?
Then it is not a quadratic. The panel switches to the linear equation bx + c = 0 and returns the single root −c/b.
What if Δ is a perfect square?
Then the square root of Δ is a whole number, both roots come out as ordinary fractions or integers, and the factorised form is printed underneath. For x² − 5x + 6, Δ = 1, the roots are 3 and 2, and the quadratic factors as (x − 3)(x − 2).

ShowSteps

Free calculators with exact fractions, simplified surds and recorded working, so you can check supported calculations.

© 2026 ShowSteps ·