§ 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
Fractions are allowed: 1/2, -3/4. Leave a at 0 to solve a linear equation instead.
Solution
Δ = 1
decimal: 3, 2
vertex: (5/2, −1/4)
factored: (x − 3)(x − 2)
two real roots
Working
- 01
the discriminant Δ = b² − 4ac
Δ =-5² − 4·1·6Δ =1
- 02
the square root of Δ
√Δ =√1√Δ =1
- 03
the quadratic formula, with both signs
x=−-5±12x=3 or x=2
Try one
Compared with a basic calculator
| Task | Basic calculator | This page |
|---|---|---|
| Input | Evaluate a formula manually | Enter the three coefficients |
| Roots | Often decimal approximations | Rational, surd or complex quadratic roots |
| Working | No discriminant explanation | Discriminant and quadratic formula |
How to use it
§ How to use- 01
Type a, b and c from ax² + bx + c = 0. Fractions such as 1/2 and negative values such as -5 are accepted.
- 02
Read Δ first: it says whether the roots are real, repeated, or a conjugate pair, before any root is printed.
- 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.
- 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
§ 02Three equations that a decimal solver handles badly.
| Equation | Decimal solver | ShowSteps |
|---|---|---|
| x² − 5x + 6 = 0 | 2.999999999 and 2.000000001 | x = 3 and x = 2 |
| x² − 2x − 1 = 0 | 2.41421356237, −0.41421356237 | x = 1 + √2 and x = 1 − √2 |
| 2x² + 4x + 5 = 0 | error: no real solution | x = −1 ± (√6/2)i |
The formula, and why the discriminant comes first
§ 03For 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).
Related calculators
allAlgebra
Equation Solver
Exact roots to degree two, numerical roots above it.
x² − 5x + 6 = 0 → x = 3, 2
Arithmetic
Scientific Calculator
A full keypad that keeps surds exact and records every operation.
√8 + 3/8 + 5/12
Arithmetic
Fraction Calculator
Add, subtract, multiply and divide fractions without a decimal in sight.
3/8 + 5/12
Algebra
Graphing Calculator
Plot up to three functions, pan and zoom, and see where the curve has no value.
y = sin x and y = x²/4
Calculus
Derivative Calculator
Differentiate term by term and name the rule that applied.
x^2 sin x
Calculus
Integral Calculator
Closed-form antiderivatives, with a labelled Simpson value when no rule applies.
x^2 from 0 to 3 = 9