Skip to content
BestCalculators LogoBestCalculators
Free online calculators and converters

Math & Statistics

Factor Calculator: What Multiplies To and Adds To

Find the two numbers that multiply to one value and add to another, with whether an integer pair exists at all and the factored quadratic.

The constant term of the quadratic — the c in x² + bx + c.

The middle coefficient, b. The pair you are looking for is the roots of t² − bt + c.

First number

1

With -21, this pair multiplies to -21 and adds to -20. Nothing is shown when no real pair exists — that is a genuine answer, not a failure to search hard enough.

Second number
-21
Does a real pair exist
1

1 yes, 0 no. It needs b² ≥ 4c — two numbers cannot both add to a small figure and multiply to a large one, and this is the exact boundary.

Is the pair whole numbers
1

1 means the quadratic factors over the integers, which happens only when the discriminant is a perfect square. If this is 0, stop hunting through factor pairs — there is nothing to find.

Discriminant, b² − 4c
484

The whole question in one number. Positive gives a pair, zero gives one repeated number, negative gives none that are real.

Square root of the discriminant
22

The gap between the two numbers is exactly this, and they sit symmetrically either side of half the sum.

Halfway between them
-10

Half the sum. Every pair adding to -20 straddles this point, so the search is one-dimensional rather than two.

The pair multiplied back together
-21

Should come back to -21. Worth a glance — a sign error in the input shows up here immediately.

The pair added back together
-20
Root of x² + bx + c, first
21

The signs flip when you go from the factor pair to the roots: x² + -20x + -21 factors as (x − 1)(x − -21) only after that flip, which is the step most often got backwards.

Root of x² + bx + c, second
-1
Are both numbers negative
0

A positive product with a negative sum means both are negative. A negative product always means one of each sign — that single check removes half the candidates before you start.

How to use this calculator

  1. Enter your target value into the They multiply to field, representing the constant term of your quadratic expression.
  2. Enter your second target value into the And they add to field, representing the middle coefficient of your expression.
  3. Review the calculated first number and second number displayed in the headline results.
  4. Check whether a real pair or an integer pair exists based on the discriminant evaluation.
  5. Examine the factored quadratic and root values provided in the complete calculation breakdown.

Mastering Sum and Product Relationships

Finding two unknown numbers based on their combined sum and product is a fundamental task across algebra, calculus, and financial modeling. When people search for a reliable factor calculator, they usually want to solve a specific puzzle: what two numbers multiply to one value and add to another? This operation forms the beating heart of factoring quadratics, where every standard trinomial requires you to split the middle term using these exact constraints.

Behind the scenes, the arithmetic being performed relies on solving a hidden quadratic equation. If your two unknown numbers are p and q, their sum is b and their product is c. They naturally form the roots of the auxiliary quadratic equation t² − (sum)t + (product) = 0. By applying the quadratic formula, the calculation extracts the two values simultaneously using the expression t = (sum ± √(sum² − 4·product)) ÷ 2. This clever rearrangement means you never have to guess factor combinations by trial and error.

Understanding this underlying relationship helps clarify why certain numbers yield clean, neat whole numbers while others spiral into endless decimals or impossible imaginary numbers. The engine running inside your browser evaluates the discriminant—the expression b² − 4c found underneath the square root symbol—to instantly determine the nature of your target pair before displaying any final outputs.

How Discriminants and Roots Shape Your Results

Not every combination of numbers possesses a real solution. When exploring what multiplies to and adds to specific targets, you will frequently encounter scenarios where real factor pairs simply do not exist. The discriminant acts as an absolute gatekeeper for this outcome. If sum² − 4·product drops below zero, the square root component forces the result into the realm of complex numbers, meaning no standard real number pair can satisfy both conditions.

Furthermore, an integer pair exists only when that same discriminant turns out to be a perfect square. For example, if your sum is 7 and your product is 12, the discriminant evaluates to 7² − (4 × 12), which equals 49 − 48 = 1. Because 1 is a perfect square, you are guaranteed clean integers: 3 and 4. Conversely, if your sum is 5 and your product is 5, the discriminant yields 25 − 20 = 5. While real numbers still exist here in the form of irrational decimals, an integer pair is structurally impossible.

  • Positive product and positive sum: Both numbers in the calculated pair are strictly positive.
  • Positive product and negative sum: Both numbers in the calculated pair are strictly negative.
  • Negative product: One number is positive and the other is negative, with the larger absolute value matching the sign of the sum.
  • Zero product: At least one of the two numbers in your target pair must be exactly zero.

Practical Applications in Factoring Trinomials

The primary utility of finding these factor pairs lies in rewriting complex polynomials into neat, multiplied binomials. When students encounter standard factoring trinomials problems of the form x² + bx + c, the ultimate goal is to express the expression as (x + p)(x + q). The values p and q found through this mathematical process represent the exact constants needed to complete the factorization.

Consider an engineering or architectural layout where area and perimeter constraints are modeled algebraically. If an enclosure requires a specific rectangular area defined by the constant term c and a perimeter-related linear dimension defined by the coefficient b, finding these factors solves the physical dimensions of the space instantly. This intersection between pure algebra and applied geometry demonstrates why mastering the sum and product of roots remains essential across technical disciplines.

Product (c)Sum (b)DiscriminantResulting Pair
12713 and 4
-61253 and -2
20-91-4 and -5
9603 and 3
104-24No real pair

Handling Edge Cases and Common Pitfalls

A common mistake when manually solving these problems involves misplacing negative signs during subtraction steps, which completely inverts the final pair and violates the original sum requirement. Another frequent pitfall occurs when users assume that decimal outputs mean the calculation is broken, when in reality it simply indicates that the factors are irrational numbers rather than clean integers.

When dealing with extreme numeric inputs—such as numbers exceeding millions or containing dense decimal expansions—rounding errors can occasionally interfere with the whole-number detection check. In such cases, rounding precision down to six decimal places is utilized to confirm whether a computed value is genuinely an integer or merely a close floating-point approximation.

If your work requires absolute mathematical rigor for advanced academic proofs or certified engineering tolerances, and you encounter ambiguous results involving complex imaginary numbers, you should consult a licensed mathematics instructor or professional software suite like Mathematica or MATLAB. Automated web utilities are designed for rapid homework checks and engineering estimations, but high-stakes structural applications demand verified algebraic verification.

The formula

the pair is the roots of t² − (sum)t + (product) = 0t = (sum ± √(sum² − 4·product)) ÷ 2an integer pair exists only when sum² − 4·product is a perfect squarea negative product means one positive and one negative number, always

Frequently asked questions

What happens if my numbers multiply to a negative value?

When your product is negative, the calculation always returns one positive number and one negative number. This occurs because multiplying two numbers with the same sign always yields a positive result. The sign of the larger absolute number will always match the sign of your entered sum.

Why does the calculation sometimes state that no real pair exists?

This message appears when the discriminant value calculated as sum squared minus four times the product evaluates to a negative number. Because you cannot take the square root of a negative number using real numbers, no real-valued factor pair can possibly satisfy both your sum and product constraints.

How do I know if my factor pair will be whole numbers?

An integer pair is guaranteed to exist only when the discriminant is a positive perfect square like 1, 4, 9, 16, or 25. If your discriminant is a fractional value or a non-square integer, your resulting factor pair will contain decimals or irrational square roots.

How does this relate to solving quadratic equations?

The two numbers found by matching your sum and product requirements are actually the exact roots or solutions of the quadratic equation t squared minus the sum times t plus the product equals zero. This makes the underlying formula a powerful shortcut for factoring complex trinomials without tedious guessing.

Can I use decimal values for the sum and product inputs?

Yes, decimal inputs are fully supported by the underlying mathematical formulas. While integer pairs require specific square root conditions, decimal inputs will correctly calculate real-valued factor pairs whenever the discriminant remains greater than or equal to zero.

Sources

Last reviewed . Results are for general guidance and are not professional advice.