Algebra

Vieta’s Formulas: Sum and Product of Roots (with Examples)

Updated 2026-07-04 5 min read vi

Vieta’s formulas are a favorite shortcut for handling quadratic equations quickly. This guide covers the direct form (the sum and product of the roots), the converse (finding two numbers from their sum and product), plus the classic tricks for reading roots by inspection and determining the signs of the roots.

The sum and product of the roots

Take a quadratic with . If it has two roots and (that is, the discriminant ), then:

The powerful part is that you know the sum and product of the roots without solving the equation. Keep the condition in mind: if the equation has no real roots, so there is no real sum or product to apply the formulas to.

For example, take (here , , ):

So the two roots add up to and multiply to .

Finding roots by inspection

Once you know and , you just need two numbers whose sum is and whose product is . In the example above, the two numbers with sum and product are and . So the roots are and — no discriminant needed.

Two lightning-fast special cases

There are two special cases where you can read the roots off directly, just by adding up the coefficients:

Condition Roots

For instance, has , so immediately and .

And has , so and .

Determining the signs of the roots

Vieta’s formulas let you decide the signs of the two roots without computing them. First you always need so that real roots exist, then you look at and :

Condition Conclusion about the roots
The roots have opposite signs
and Both roots are positive
and Both roots are negative

Note: when you automatically have (a negative product forces the roots to be distinct), so you don’t need to check separately. When , however, you must confirm first before using to read off the signs.

The converse: finding two numbers from their sum and product

This is the reverse direction, and it comes up constantly. If two numbers have sum and product , then they are the roots of:

Such numbers exist (that is, this equation has real roots) if and only if .

Example. Find two numbers whose sum is and whose product is .

The numbers we want are the roots of:

Compute the discriminant: . So:

The two numbers are and (check: and , correct).

Application: symmetric expressions in the roots

A very common problem type asks you to evaluate an expression involving both roots without solving the equation.

Example. Given with roots and , find .

By Vieta’s formulas: and . Rewrite the target expression in terms of and :

Substitute the values:

So . This is much faster and cleaner than finding each root and squaring it.

Common mistakes

  • Forgetting to check . You may only use Vieta’s formulas when the equation has real roots. Many trick problems hand you a quadratic with no real solutions.
  • Getting the sign of wrong. The formula is — don’t drop the minus sign. If then , not .
  • Forgetting to divide by . When , you must use and , not just and .
  • Misremembering the converse condition. Two numbers with sum and product exist only when .

Master the two formulas and along with the converse, and you’ll read off roots and evaluate symmetric expressions far more quickly. Try entering the examples above into the calculator to check each step of your own work.

Solve this in the calculator Open CalcES and check your work step by step.

Frequently asked questions

What are Vieta’s formulas for a quadratic?

If ax² + bx + c = 0 has two roots x₁ and x₂, then their sum is S = x₁ + x₂ = −b/a and their product is P = x₁·x₂ = c/a. This tells you the sum and product of the roots without ever solving the equation.

When can you use Vieta’s formulas?

Only when the quadratic actually has real roots, that is when the discriminant Δ = b² − 4ac ≥ 0. If Δ < 0 there are no real roots, so there is no real sum or product to work with.

How do you find roots quickly with Vieta’s formulas?

If a + b + c = 0 then x₁ = 1 and x₂ = c/a. If a − b + c = 0 then x₁ = −1 and x₂ = −c/a. Otherwise, look for two numbers whose sum is −b/a and whose product is c/a.

How do you find two numbers given their sum and product?

Two numbers with sum S and product P are exactly the roots of X² − SX + P = 0 (the converse of Vieta’s formulas). Such numbers exist as long as S² − 4P ≥ 0.

Related articles