CalcSeed

Polynomial Roots Calculator

Enter coefficients a, b, c of ax² + bx + c = 0 to find both roots.

=
Quick answer: with the default inputs (1, -3, 2), the root 1 (real part) is 2. At these inputs: root 1 (imaginary part) = 0, root 2 (real part) = 1. Change any input to update the result.
Root 1 (real part)
—

What polynomial roots are

The roots of a polynomial are the x values that make it equal zero — geometrically, where the graph crosses or touches the x-axis. A quadratic ax² + bx + c always has exactly two roots counted with multiplicity, and this calculator reports both, real or complex. At the defaults a = 1, b = −3, c = 2, the equation x² − 3x + 2 = 0 has roots x = 2 and x = 1.

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2-4ac}}{2a}

How the discriminant decides everything

The quantity under the square root, b² − 4ac, is the discriminant, and its sign determines the root structure before any division happens. Positive: two distinct real roots. Zero: one repeated real root at −b ÷ 2a. Negative: a complex conjugate pair, −b ÷ 2a ± √(−disc) ÷ 2a · i, where the real parts are equal and the imaginary parts mirror each other. Computing the discriminant first is also a cheap sanity check on your inputs: with the defaults, (−3)² − 4 × 1 × 2 = 9 − 8 = 1, so two real roots are guaranteed before you finish the arithmetic.

The formula itself follows from completing the square. Dividing ax² + bx + c by a, shifting x by b ÷ 2a, and isolating the leftover square produces the ± structure. That structure explains a useful invariant: the two roots always sum to −b ÷ a and multiply to c ÷ a (Vieta’s formulas). For the defaults, 2 + 1 = 3 = −(−3) ÷ 1 and 2 × 1 = 2 = 2 ÷ 1, both checks pass.

Worked example with the default inputs

Solve x² − 3x + 2 = 0 with a = 1, b = −3, c = 2. Discriminant: b² − 4ac = 9 − 8 = 1. Square root: √1 = 1. Root 1: x = (−b + 1) ÷ 2a = (3 + 1) ÷ 2 = 2. Root 2: x = (3 − 1) ÷ 2 = 1. Verify by factoring: (x − 2)(x − 1) = x² − 3x + 2, and substituting x = 2 gives 4 − 6 + 2 = 0.

The same coefficients reveal the connection to graphing: the parabola y = x² − 3x + 2 crosses the x-axis exactly at x = 1 and x = 2, and its vertex sits midway at x = 1.5 with y = (x − 1)(x − 2) at minimum = −0.25. The roots bracket the vertex symmetrically because the parabola is symmetric about it.

The three discriminant cases side by side

Coefficientsdisc = b² − 4acRoots
a = 1, b = −3, c = 21 > 0x = 2 and x = 1
a = 1, b = −4, c = 40x = 2 (double root)
a = 1, b = 2, c = 5−16 < 0x = −1 ± 2i
a = 2, b = 5, c = 29 > 0x = −0.5 and x = −2

The complex row works out as follows: disc = 4 − 20 = −16, so the real part is −b ÷ 2a = −2 ÷ 2 = −1 and the imaginary part is √16 ÷ 2 = 2, giving −1 ± 2i. The double-root row is the tangency case: y = (x − 2)² touches the x-axis at x = 2 without crossing it, which is why zero discriminant corresponds visually to a parabola kissing the axis.

Where quadratic roots earn their keep

  • Projectile motion: height h(t) = −4.9t² + v0t + h0; solving h(t) = 0 gives the landing time. A ball thrown at 10 m/s from 1.5 m has roots near t = 2.22 and a negative throwaway root.
  • Break-even analysis: revenue minus cost set to zero produces a quadratic in quantity, and the two roots mark the two break-even volumes.
  • Factoring and simplification: knowing the roots of x² − 5x + 6 = 0 gives the factorization (x − 2)(x − 3) instantly.
  • Engineering stability: in control theory, a characteristic polynomial with roots having negative real parts means the system settles; complex roots add oscillation.

Complex roots in practice

Complex roots are not a dead end; they carry physical meaning. A spring-mass system with equation roots −1 ± 2i oscillates at frequency 2 while decaying at rate 1. In circuit analysis, complex conjugate roots of an RLC characteristic equation give resonant frequency and damping in one reading. In each case the real part −b ÷ 2a controls decay or growth, and the imaginary part √(−disc) ÷ 2a controls the oscillation rate.

Common mistakes

  • Sign slips on −b: with b = −3, the numerator starts at +3, not −3. The defaults produce 2 and 1; a sign error produces 2 and 1 swapped or, worse, −1 and −2.
  • Dropping the 2a denominator: dividing by a instead of 2a doubles both roots. A quick Vieta check — roots should sum to −b ÷ a = 3 here — catches it immediately.
  • Entering a = 0: the equation collapses to linear, bx + c = 0, with the single root −c ÷ b. The calculator returns all-zero roots for this case rather than an error, so a zero output flags the input.
  • Forgetting the conjugate pair: when disc < 0, the two roots share the same real part. If your two answers have different real parts, the imaginary split was mishandled.
  • Rounding the discriminant early: disc = 6.25 has √disc = 2.5 exactly, but rounding 6.25 to 6 loses the perfect square and turns exact roots into approximations.

Numerical care with the standard formula

Stable arithmetic when b is huge

When b² is much larger than 4ac, one root involves subtracting two nearly equal numbers, and floating-point rounding bites. For a = 1, b = −10,000 and c = 1, the roots are approximately 10,000 and 0.0001, but computing the small root directly as (−b − √disc) ÷ 2a loses precision. The stable fix computes the larger-magnitude root first, then obtains the other from c ÷ (a × root1) using Vieta’s product rule: 1 ÷ (1 × 10,000) = 0.0001. For hand-sized coefficients like the defaults, the direct formula is exact and no such care is needed.

Beyond quadratics

A degree-n polynomial has exactly n roots in the complex plane (the fundamental theorem of algebra), but the tidy quadratic formula has no cubic or quartic analog that anyone uses by hand, and degree 5 and up has no formula at all. Cubic equations fall to the Cardano method or numerical solvers, and higher degrees to iterative root-finding. For the linear case where a = 0, the linear equation calculator returns the single root −c ÷ b that a degenerate quadratic hides.

Frequently asked questions

What are the roots of x squared minus 3x plus 2?

With a = 1, b = −3, c = 2, the discriminant is 9 − 8 = 1 and the roots are (3 ± 1) ÷ 2, giving x = 2 and x = 1. The factorization is (x − 2)(x − 1).

What are complex roots?

When the discriminant is negative, the square root is imaginary and the roots form a conjugate pair like −1 ± 2i (from a = 1, b = 2, c = 5, where disc = −16). Both roots share the real part −b ÷ 2a.

What if a is zero?

The equation is linear, bx + c = 0, with the single root −c ÷ b. The calculator reports zero roots for a = 0, signaling that the input is not a quadratic.

Can a quadratic have one root?

Yes, when b² − 4ac = 0. Then both roots coincide at −b ÷ 2a: x² − 4x + 4 has the double root x = 2, and its graph touches the x-axis without crossing.

How do I check my roots quickly?

Use Vieta: the roots must sum to −b ÷ a and multiply to c ÷ a. For the defaults, 2 + 1 = 3 and 2 × 1 = 2 match −(−3) ÷ 1 and 2 ÷ 1.

How do I find where a parabola crosses the x-axis?

The crossing points are exactly the real roots. For y = x² − 3x + 2 they are x = 1 and x = 2; when the discriminant is negative the graph never touches the axis, as with y = x² + 2x + 5.

Why does the quadratic formula sometimes lose precision?

When b² dominates 4ac, one root subtracts nearly equal numbers. For b = −10,000, c = 1, compute the large root directly and the small root as c ÷ (a × root1) = 0.0001 to keep full accuracy.

What do complex roots mean physically?

They encode damped oscillation: roots −1 ± 2i mean a system decays at rate 1 while oscillating at rate 2. The real part comes from −b ÷ 2a and the oscillation rate from √(−disc) ÷ 2a.

Method and sources

Calculation basis

Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: November 18, 2026
Formula & data sources
  • Quadratic formula x = (-b &plusmn; &radic;(b&sup2; - 4ac)) / 2a.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 18). Polynomial Roots Calculator. https://calcseed.com/c/math/polynomial-roots-calculator/
MLA 9"Polynomial Roots Calculator." CalcSeed, 18 Nov. 2026, calcseed.com/c/math/polynomial-roots-calculator/.
ChicagoCalcSeed. "Polynomial Roots Calculator." Last modified November 18, 2026. https://calcseed.com/c/math/polynomial-roots-calculator/

Related calculators