Calculators

Quadratic Solver

The Quadratic Solver finds all roots of any quadratic equation ax² + bx + c = 0 instantly. Enter the three coefficients and the tool shows both roots (real or complex), the discriminant, the vertex coordinates, and the sum and product of roots. It handles all three cases: two real roots, one repeated root and complex roots.

Real and complex rootsDiscriminant and vertex shownSum and product of roots

Solve: ax² + bx + c = 0

Enter a, b and c to solve
Roots
Discriminant
Root type

How to use the Quadratic Solver

Enter three coefficients and the complete solution set appears immediately.

  1. Enter coefficient aThis is the coefficient of x². It must be non-zero for the equation to be quadratic. Furthermore, if a = 0, the tool solves it as a linear equation instead.
  2. Enter coefficient bThis is the coefficient of x. It can be any real number including zero.
  3. Enter coefficient cThis is the constant term. Furthermore, it equals −y-intercept of the parabola when the equation represents a graph.
  4. Click Solve equationThe roots appear immediately along with the discriminant and vertex. Moreover, for two real roots, Vieta's relations (sum and product) are shown for verification.
  5. Interpret the discriminantPositive: two real roots. Zero: one repeated root. Negative: two complex conjugate roots. Additionally, the magnitude tells you how far apart the roots are.

Options and variants explained

The discriminant determines the nature of the roots without solving the full equation.

Discriminant (b²−4ac)Number of rootsRoot typeGraph interpretation
Positive2Two distinct real rootsParabola crosses x-axis twice
Zero1 (repeated)One real root (double)Parabola touches x-axis once
Negative2Complex conjugate pairParabola does not cross x-axis

The formula explained

x = (−b ± √(b² − 4ac)) ÷ (2a)
a = coefficient of x²
b = coefficient of x
c = constant term
b² − 4ac = discriminant (Δ)

The formula derives from completing the square. Moving c to the right side, dividing by a, adding (b/2a)² to both sides and taking the square root produces the standard quadratic formula. Consequently, every quadratic has exactly two solutions — which may be equal, real or complex — as guaranteed by the fundamental theorem of algebra.

Worked example: x² − 5x + 6 = 0 (a=1, b=−5, c=6)

Discriminant: (−5)² − 4×1×6 = 25 − 24 = 1. Positive discriminant → two real roots. x₁ = (5 + √1) ÷ 2 = 3. x₂ = (5 − √1) ÷ 2 = 2. Therefore the roots are x = 3 and x = 2.

Verification using Vieta's relations: sum of roots = 3 + 2 = 5 = −b/a = −(−5)/1 ✓. Product of roots = 3 × 2 = 6 = c/a = 6/1 ✓. Furthermore, the factored form is (x − 3)(x − 2) = 0, which confirms the roots.

Roots of 2 and 3 with discriminant 1 — a clean integer result that Vieta's sum (5) and product (6) confirm instantly.

Complex roots example: x² + 2x + 5 = 0

Discriminant: 4 − 20 = −16. Negative → complex roots. x = (−2 ± √(−16)) ÷ 2 = −1 ± 2i. The roots are −1 + 2i and −1 − 2i. Moreover, complex roots always appear as conjugate pairs when a, b and c are real numbers.

What is a quadratic equation?

A quadratic equation is any polynomial equation of degree 2 — the highest power of the variable is 2. The standard form is ax² + bx + c = 0, where a, b and c are constants and a ≠ 0. Furthermore, the word quadratic comes from the Latin quadratus, meaning square.

Quadratic equations model many physical phenomena. Projectile motion — the path of a ball through the air — follows a parabolic trajectory described by a quadratic. Additionally, economics uses quadratic cost functions, optics uses parabolic reflectors and engineering uses quadratic constraints in optimisation problems.

Every quadratic has exactly two roots when counted with multiplicity. This follows from the fundamental theorem of algebra. Moreover, when the roots are complex, they always form a conjugate pair — one is the complex conjugate of the other — because the coefficients are real.

Why the discriminant matters

The discriminant b² − 4ac is the key quantity in a quadratic. It determines whether the equation has solutions in the real numbers before any calculation is done. Furthermore, checking the sign of the discriminant is always the first step in solving a quadratic.

In geometry, the discriminant tells you how the parabola y = ax² + bx + c relates to the x-axis. Positive discriminant: parabola crosses the x-axis at two points. Zero: tangent at one point. Negative: parabola is entirely above or below the x-axis. Moreover, the axis of symmetry is always at x = −b/(2a) regardless of the discriminant value.

Common quadratic solving mistakes

Forgetting to include the ± when taking the square root of the discriminant produces only one root instead of two. Both the + and − cases must be evaluated separately. Furthermore, this is why the quadratic formula has ± explicitly written rather than just +.

Dividing by 2a before computing the discriminant introduces errors if the order of operations is incorrect. The numerator −b ± √(b²−4ac) must be computed entirely before dividing by 2a. Moreover, entering this incorrectly into a calculator is a common exam error.

Assuming complex roots mean no solution is incorrect. Complex roots are valid solutions — they just lie in the complex plane rather than on the real number line. Consequently, every quadratic has exactly two roots; none are "missing" when the discriminant is negative.

Tips for solving quadratics efficiently

Try factoring first for integer coefficients. If the product of a and c has factor pairs that sum to b, the equation factors cleanly without the formula. For example, x² − 5x + 6 = 0 factors to (x−3)(x−2) = 0 by inspection. Furthermore, factoring is faster than the formula when it works.

Use Vieta's formulas to verify roots without substituting back into the equation. The sum of roots must equal −b/a and the product must equal c/a. Moreover, these checks are faster than plugging each root back into the original equation.

For approximate roots, the discriminant's magnitude gives the root separation. Roots are approximately −b/(2a) ± √Δ/(2|a|). Additionally, when the discriminant is small relative to b², the two roots lie close together near the vertex x-coordinate.

Frequently asked questions

The discriminant equals zero when the quadratic has exactly one real root — sometimes called a repeated or double root. The parabola touches the x-axis at exactly one point. Furthermore, this root equals −b/(2a).

a cannot be zero — that makes it linear, not quadratic. b can be zero; the equation then has the form ax² + c = 0, which gives roots ±√(−c/a) when −c/a is positive. Moreover, if c is also zero, the only root is x = 0 with multiplicity 2.

Substitute each root back into ax² + bx + c and check that the result equals zero. Additionally, use Vieta's relations: sum of roots = −b/a and product = c/a. Both checks together confirm both roots simultaneously.

Complex roots arise in control systems engineering, signal processing, electrical circuit analysis and quantum mechanics. Furthermore, they represent oscillatory behaviour — the imaginary part corresponds to the oscillation frequency.

The vertex is the turning point of the parabola y = ax² + bx + c. Its x-coordinate is −b/(2a) and its y-coordinate is c − b²/(4a). Moreover, the vertex lies on the axis of symmetry of the parabola.

Related tools

Statistics Calculator

Compute mean, median and standard deviation. Furthermore, analyse any numeric dataset instantly.

Percentage Calculator

Calculate percentages in four modes. Moreover, the reverse mode recovers the original before a percentage was applied.

Compound Interest Calculator

Model exponential growth over time. Additionally, quadratic and exponential functions both appear in finance.

Probability Calculator

Calculate event probability and distributions. Furthermore, probability theory uses polynomial equations.

Long Division Calculator

Step-by-step division with remainder shown. Moreover, polynomial long division uses the same structure.

Fraction Simplifier

Simplify fractions to lowest terms. Additionally, quadratic roots are often expressed as simplified fractions.

Rate this tool

4.3
out of 5
529 ratings
5 ★
61%
4 ★
24%
3 ★
5%
2 ★
3%
1 ★
7%
How useful was this tool?