Diamond Problem Calculator

Enter the product (top of the diamond) and the sum (bottom of the diamond) to find the two numbers that multiply to the product and add to the sum.

Quick Facts

Diamond layout
Top = product, bottom = sum, sides = the two numbers
You are solving for the left and right numbers.
Solving formula
a, b = [sum ± √(sum² − 4·product)] / 2
The two numbers are the roots of x² − (sum)x + product = 0.
Used for
Factoring trinomials (the "AC method")
Splits the middle term of ax² + bx + c so it can be factored by grouping.

Your Results

Calculated
Left number
-
Larger (or first) root
Right number
-
Smaller (or second) root
Sum check
-
Left + Right (should equal bottom value)
Product check
-
Left × Right (should equal top value)

Ready

Enter the product and sum, then press Calculate.

How the Diamond Problem works

A diamond problem is a small puzzle shaped like a rhombus, split into four cells: top, bottom, left, and right. The top cell holds a product and the bottom cell holds a sum. Your job is to find the two numbers — placed in the left and right cells — that multiply together to give the top value and add together to give the bottom value. Diamond problems are a standard warm-up drill in pre-algebra and Algebra 1 because they build exactly the skill needed to factor quadratic trinomials.

Formula and method

If the two unknown numbers are a and b, you need a × b = product and a + b = sum. Substituting b = sum − a into the product equation gives a quadratic in a, which means a and b are simply the two roots of x² − (sum)x + product = 0. By the quadratic formula, those roots are:

a, b = [sum ± √(sum² − 4 × product)] / 2

This calculator plugs your product and sum directly into that formula. For simple integer diamond problems you can also solve by listing factor pairs of the product and picking the pair that adds to the sum — the formula just automates that search and also handles non-integer or irrational answers.

Using it to factor a trinomial

To factor ax² + bx + c, put a × c in the top cell and b in the bottom cell. The two numbers you find (call them m and n) let you rewrite the middle term: ax² + mx + nx + c, which then factors by grouping. This is often called the "AC method" or "split the middle term" — the diamond is just a visual scaffold for organizing the search for m and n.

Common sources of error

  • Mixing up top and bottom: the top cell is always the product (multiply), the bottom cell is always the sum (add) — swapping them gives a different (and usually unsolvable) problem.
  • Sign errors: if the product is negative, the two numbers must have opposite signs; if the sum is negative and the product is positive, both numbers are negative.
  • Assuming a real solution always exists: if sum² is smaller than 4 × product, no real number pair works — the discriminant is negative.

Checking your result

Once you have candidate numbers a and b, verify both conditions independently: add them to confirm a + b equals the sum you started with, then multiply them to confirm a × b equals the product. If either check fails, re-solve rather than rounding your way to a match.

Frequently Asked Questions

What is a diamond problem in math?
A diamond problem is a diagram shaped like a rhombus with four cells: the top cell holds a product, the bottom cell holds a sum, and the left and right cells hold the two numbers that multiply to the product and add to the sum. Diamond problems are commonly used in pre-algebra and Algebra 1 to build the skill of factoring quadratic trinomials.
How do you solve a diamond problem?
Given the product (top) and sum (bottom), find two numbers a and b such that a × b = product and a + b = sum. You can list factor pairs of the product and check which pair adds to the sum, or solve directly with the quadratic formula by treating a and b as the roots of x² − (sum)x + product = 0, giving a, b = [sum ± √(sum² − 4×product)] / 2.
How are diamond problems used to factor a quadratic trinomial?
For a trinomial ax² + bx + c, you fill the diamond's top with a×c and the bottom with b. The two numbers you find let you split the middle term (the "AC method"), rewriting bx as two terms so the four-term expression can be factored by grouping.
What if a diamond problem has no real number solution?
If the discriminant sum² − 4×product is negative, no pair of real numbers multiplies to the product and adds to the sum — the diamond problem has no real solution, only a complex-conjugate pair. Double-check that the product and sum values were entered correctly before assuming the problem is unsolvable.