Maths & numbers

Quadratic root sum and product calculator

Apply Viète’s identities directly to the coefficients.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Expanding a(x−r₁)(x−r₂) gives the same coefficients and explains both identities.

THE FORMULAr₁ + r₂ = −b/a, r₁r₂ = c/a

A worked example

For 2x²−7x+3, the root sum is 7/2 and the product is 3/2.

Good to know

The identities apply to complex roots too.

Read root relationships from the coefficients

For 2x² − 7x + 3, the root sum is −b/a = −(−7)/2 = 7/2, and the root product is c/a = 3/2. The roots themselves are 1/2 and 3. Adding them gives 3.5 and multiplying gives 1.5, checking both identities.

To derive the identities, expand a(x − r₁)(x − r₂). The result is ax² − a(r₁ + r₂)x + ar₁r₂. Comparing the linear and constant coefficients with ax² + bx + c gives the two formulas directly.

The roots one half and three have sum seven halves and product three halvesr₁ = 1/2r₂ = 3Sum = 7/2 = −b/aProduct = 3/2 = c/a
For 2x² − 7x + 3, the root sum is −b/a and the root product is c/a.

Use the identities even when roots are complex

The polynomial x² + 1 has roots i and −i. Their sum is zero and their product is one, matching −b/a = 0 and c/a = 1. Real coefficients can therefore give real sum and product even when the individual roots have nonzero imaginary parts.

A common nonzero scaling of a, b and c leaves both ratios unchanged because it preserves the polynomial’s roots. A zero leading coefficient is excluded because the equation would lose its quadratic degree. The Quadratic through three points calculator can supply coefficients from observations, after which these identities describe the fitted polynomial’s roots without explicitly solving for them. A sum and product alone do not establish that the roots are real.

A few questions, answered

What happens when c is zero?

The product is zero, so at least one root is zero. The other root follows from the sum, with multiplicity handled normally.

Why does the sum have a minus sign?

The expansion of (x − r₁)(x − r₂) has linear coefficient −(r₁ + r₂), which produces the sign in −b/a.

Find your calculator

Start typing to explore the library.