Sum and Product of Roots

Quickly find how a quadratic's roots add up and multiply together without solving for them — use when you need those relationships.

r1+r2=ba,r1r2=car_1 + r_2 = -\frac{b}{a}, \quad r_1 r_2 = \frac{c}{a}

Solve a problem with Sum and Product of Roots

Type the problem. The solver will use Sum and Product of Roots where Sum and Product of Roots is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Sum and Product of Roots takes
aa
bb
cc
r1r_1
r2r_2
Sum and Product of Roots
SymbolMeaning
aaThe leading coefficient (multiplies x2x^2); if a=0a = 0, the equation is not quadratic, and these formulas do not apply.
bbThe coefficient of xx; changing bb changes the sum of the roots through the formula b/a-b/a.
ccThe constant term (the number with no xx); divided by aa to find the product of the roots.
r1r_1The first root (solution) of the quadratic equation; one of the two values that make the equation true.
r2r_2The second root (solution) of the quadratic equation; the other value that satisfies the equation.

When to use it

Use this when a problem asks for the sum or product of roots, or when you need to understand relationships between roots without finding them individually.

Level

Usually taught in: Algebra II

Worked examples

1. Find sum and product of roots with small integers

Problem

Find the sum and product of the roots of x2+5x+6=0x^2 + 5x + 6 = 0.
  1. a=1,b=5,c=6a = 1, \quad b = 5, \quad c = 6

    From the equation x2+5x+6=0x^2 + 5x + 6 = 0, identify the coefficients: a=1a = 1 (the coefficient of x2x^2), b=5b = 5 (the coefficient of xx), and c=6c = 6 (the constant term).

  2. r1+r2=ba=51=5r_1 + r_2 = -\frac{b}{a} = -\frac{5}{1} = -5

    Apply the sum formula r1+r2=bar_1 + r_2 = -\frac{b}{a} by substituting b=5b = 5 and a=1a = 1; the negative sign in the formula is crucial.

  3. r1r2=ca=61=6r_1 r_2 = \frac{c}{a} = \frac{6}{1} = 6

    Apply the product formula r1r2=car_1 r_2 = \frac{c}{a} by substituting c=6c = 6 and a=1a = 1; note that this formula has no negative sign.

Answer: r1+r2=5 and r1r2=6r_1 + r_2 = -5 \text{ and } r_1 r_2 = 6

This problem demonstrates the direct application of both formulas. We identify aa, bb, and cc from the equation, then substitute into each formula to find the sum and product without factoring or solving for the actual roots.

2. Find sum and product with negative coefficients and leading term ≠ 1

Problem

Find the sum and product of the roots of 2x23x5=02x^2 - 3x - 5 = 0.
  1. a=2,b=3,c=5a = 2, \quad b = -3, \quad c = -5

    Extract the coefficients from 2x23x5=02x^2 - 3x - 5 = 0; note that both b=3b = -3 and c=5c = -5 are negative.

  2. r1+r2=ba=(3)2=32r_1 + r_2 = -\frac{b}{a} = -\frac{(-3)}{2} = \frac{3}{2}

    Apply the sum formula with b=3b = -3 and a=2a = 2; the double negative (the formula's negative sign combined with bb's negative value) produces a positive result.

  3. r1r2=ca=52=52r_1 r_2 = \frac{c}{a} = \frac{-5}{2} = -\frac{5}{2}

    Apply the product formula with c=5c = -5 and a=2a = 2; since cc is negative, the product of the roots is negative, which means the roots have opposite signs.

Answer: r1+r2=32 and r1r2=52r_1 + r_2 = \frac{3}{2} \text{ and } r_1 r_2 = -\frac{5}{2}

When the leading coefficient a1a \neq 1 or coefficients are negative, you must still apply both formulas carefully, tracking signs at each step. The negative product here tells us the roots must have opposite signs.

3. Word problem: phone plan with monthly fee and per-gigabyte charge

Problem

A wireless carrier charges a $30 monthly base fee plus $0.05 per gigabyte used. To find two data usage levels that yield the same total monthly bill, the company models the problem with the equation g2160g+6400=0g^2 - 160g + 6400 = 0, where gg is the number of gigabytes. Find the sum and product of these two usage levels.
  1. a=1,b=160,c=6400a = 1, \quad b = -160, \quad c = 6400

    Extract the coefficients from g2160g+6400=0g^2 - 160g + 6400 = 0, where gg represents the data usage in gigabytes.

  2. r1+r2=ba=(160)1=160r_1 + r_2 = -\frac{b}{a} = -\frac{(-160)}{1} = 160

    Apply the sum formula: the two usage levels add up to 160 GB, a key insight for the billing model.

  3. r1r2=ca=64001=6400r_1 r_2 = \frac{c}{a} = \frac{6400}{1} = 6400

    Apply the product formula: the product of the two usage levels is 6400 GB2^2, another constraint on the pricing structure.

Answer: r1+r2=160 GB and r1r2=6400 GB2r_1 + r_2 = 160 \text{ GB and } r_1 r_2 = 6400 \text{ GB}^2

In real-world scenarios, the sum and product of roots often encode important relationships that inform decision-making. Here, the carrier learns that any two break-even usage levels must sum to 160 GB and multiply to 6400 without explicitly solving for each level.

Common mistakes

Where Sum and Product of Roots usually goes wrong
Answer came out wrong
For 3x27x+2=03x^2 - 7x + 2 = 0, I calculated the sum as r1+r2=73r_1 + r_2 = \frac{-7}{3} because I computed b-b instead of b/a-b/a, forgetting to divide by aa.
Correctly calculate r1+r2=ba=(7)3=73r_1 + r_2 = -\frac{b}{a} = -\frac{(-7)}{3} = \frac{7}{3}, ensuring you divide bb by aa.
For x2+8x+15=0x^2 + 8x + 15 = 0, I computed the product as r1r2=ca=15r_1 r_2 = -\frac{c}{a} = -15 by mistakenly adding a negative sign to the product formula.
Use r1r2=ca=151=15r_1 r_2 = \frac{c}{a} = \frac{15}{1} = 15 without a negative sign (the roots 3-3 and 5-5 satisfy this: (3)×(5)=15(-3) \times (-5) = 15).
For 2x2x+3=02x^2 - x + 3 = 0, I computed the sum as r1+r2=(1)=1r_1 + r_2 = -(-1) = 1 by applying only the negative sign from the formula but forgetting to divide by a=2a = 2.
Calculate r1+r2=ba=(1)2=12r_1 + r_2 = -\frac{b}{a} = -\frac{(-1)}{2} = \frac{1}{2}, ensuring you divide the coefficient by aa.
The mistakeWhy it is wrongThe fix
For 3x27x+2=03x^2 - 7x + 2 = 0, I calculated the sum as r1+r2=73r_1 + r_2 = \frac{-7}{3} because I computed b-b instead of b/a-b/a, forgetting to divide by aa.The sum formula is r1+r2=bar_1 + r_2 = -\frac{b}{a}, which requires you to divide by the leading coefficient; ignoring aa gives the wrong answer when a1a \neq 1.Correctly calculate r1+r2=ba=(7)3=73r_1 + r_2 = -\frac{b}{a} = -\frac{(-7)}{3} = \frac{7}{3}, ensuring you divide bb by aa.
For x2+8x+15=0x^2 + 8x + 15 = 0, I computed the product as r1r2=ca=15r_1 r_2 = -\frac{c}{a} = -15 by mistakenly adding a negative sign to the product formula.The product formula r1r2=car_1 r_2 = \frac{c}{a} has no negative sign; the negative appears only in the sum formula r1+r2=bar_1 + r_2 = -\frac{b}{a}.Use r1r2=ca=151=15r_1 r_2 = \frac{c}{a} = \frac{15}{1} = 15 without a negative sign (the roots 3-3 and 5-5 satisfy this: (3)×(5)=15(-3) \times (-5) = 15).
For 2x2x+3=02x^2 - x + 3 = 0, I computed the sum as r1+r2=(1)=1r_1 + r_2 = -(-1) = 1 by applying only the negative sign from the formula but forgetting to divide by a=2a = 2.Both formulas require division by aa; skipping this step gives wrong results whenever the leading coefficient is not 1.Calculate r1+r2=ba=(1)2=12r_1 + r_2 = -\frac{b}{a} = -\frac{(-1)}{2} = \frac{1}{2}, ensuring you divide the coefficient by aa.

Tips and when to use something else

  • Always include the leading coefficient aa in both formulas; forgetting to divide by aa is one of the most common mistakes, especially when a1a \neq 1.
  • Remember: only the sum formula has a negative sign. It is r1+r2=bar_1 + r_2 = -\frac{b}{a} (with the negative), while the product is r1r2=car_1 r_2 = \frac{c}{a} (no negative).
  • Use the Quadratic Formula instead if you actually need the root values; Sum and Product of Roots is fastest when you only need information about their sum or product, not the roots themselves.
  • These formulas work for any roots — real, irrational, or complex — because the sum and product are always determined by the coefficients regardless of what the roots actually are.

Frequently asked questions

Why does the sum formula have a negative sign but the product formula does not?
The negative comes from the structure of quadratics. When you expand the factored form (xr1)(xr2)(x - r_1)(x - r_2), you get x2(r1+r2)x+r1r2x^2 - (r_1 + r_2)x + r_1 r_2. In standard form ax2+bx+c=0ax^2 + bx + c = 0, the coefficient bb equals a(r1+r2)-a(r_1 + r_2), so solving for the sum introduces the negative sign. The product r1r2r_1 r_2 maps directly to c/ac/a with no sign change.
Do these formulas work if the roots are irrational or complex numbers?
Yes — Sum and Product of Roots applies to any roots, whether real, irrational, or complex. The sum and product are always determined by the coefficients through these formulas, regardless of whether the roots are rational integers, surds, or complex conjugates.
What if the leading coefficient aa is negative, like 2x2+5x3=0-2x^2 + 5x - 3 = 0?
The formulas still work exactly the same way. For example, r1+r2=52=52r_1 + r_2 = -\frac{5}{-2} = \frac{5}{2} and r1r2=32=32r_1 r_2 = \frac{-3}{-2} = \frac{3}{2}. Just substitute all values, including their signs, and the formulas handle negative leading coefficients automatically.
When should I use Sum and Product of Roots instead of the Quadratic Formula?
Use Sum and Product when you only need the sum or product of roots, not the roots themselves — it is much faster and simpler. Reach for the Quadratic Formula when you need the actual root values or when you need to determine whether roots are real.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18