Enter any two of the four diamond values — the two factors, their product, or their sum — and instantly solve for the missing two. Built for factoring trinomials, quadratic roots, and classroom diamond-problem practice.
✓ Solves all 3 diamond problem cases ✓ Handles negative numbers ✓ Works on mobile
Fill in exactly two of the four values below, then hit Calculate.
The logic behind the cross-shaped puzzle, explained.
A diamond problem calculator solves a small four-number puzzle arranged in a diamond, or cross, shape: two numbers called factors sit on the left and right, their product sits on top, and their sum sits on the bottom. A diamond problem gives you any two of those four values and asks you to find the other two — and this calculator does exactly that, instantly, for any combination you enter.
Diamond problems show up early in algebra as a warm-up for factoring, and they resurface every time a student needs to factor a quadratic expression like x² + 7x + 12, because factoring that expression means finding two numbers whose product is 12 and whose sum is 7 — precisely a diamond problem in disguise. Once those two numbers are found, they slot directly into the factored form (x + a)(x + b).
There are three distinct situations a diamond problem can present: knowing both factors and needing the product and sum; knowing one factor plus either the product or the sum and needing the rest; or knowing only the product and sum and needing to find both factors, which is the case most closely tied to factoring quadratics. This calculator detects which two values you've supplied and applies the correct method automatically, including handling negative numbers and cases with no real-number solution.
The relationships that connect all four corners of the diamond.
The top of the diamond is always the two factors multiplied together, regardless of which values you started with.
The bottom of the diamond is always the two factors added together.
Given one factor plus the sum or product, simple subtraction or division isolates the missing factor.
Given only the product and sum, both missing factors are the two roots of the quadratic x² − (Sum)x + (Product) = 0, found with the quadratic formula.
Four steps from a partial diamond to a fully solved one.
Type in any two of the four diamond values: Factor A, Factor B, Product, or Sum. Negative numbers and decimals are both supported.
The calculator automatically identifies which of the three diamond problem cases you've entered — two factors, one factor plus product/sum, or product and sum.
The correct formula is applied — multiplication, subtraction, division, or the quadratic formula — and the two missing values are filled into the diamond.
Read the fully solved diamond, copy the result, or reset and try a new set of values — useful for checking homework or generating practice problems.
Every case explained, from the simplest to the one behind factoring quadratics.
Every diamond problem uses the same fixed layout: the left and right positions hold the two factors, the top position holds their product, and the bottom position holds their sum. Because multiplication and addition are both commutative, it never matters which factor is written on the left and which is on the right — swapping them doesn't change the product or the sum.
This is the most direct case. With both factors already known, the product is simply Factor A × Factor B, and the sum is Factor A + Factor B. This version of the problem is typically the first one introduced, since it only requires basic multiplication and addition rather than working backward from a partial answer.
When one factor and the sum are known, the missing factor is found by subtraction: Factor B = Sum − Factor A. When one factor and the product are known instead, the missing factor is found by division: Factor B = Product ÷ Factor A. Either way, once both factors are known, the remaining top or bottom value is calculated normally by multiplying or adding them.
This is the case most students encounter while learning to factor quadratic expressions, because it's mathematically identical to factoring x² + (Sum)x + (Product). The classic approach is to list factor pairs of the product and check which pair adds up to the sum. This calculator instead applies the quadratic formula directly to x² − (Sum)x + (Product) = 0, which finds both factors in one step and also handles non-integer or negative solutions that would be tedious to find by trial and error.
A quadratic expression such as x² + 7x + 12 factors into (x + a)(x + b) exactly when a × b equals the constant term (12) and a + b equals the coefficient of x (7). Solving that diamond — product 12, sum 7 — gives a = 3 and b = 4, so the expression factors as (x + 3)(x + 4). This is why diamond problems are introduced as a stepping stone before formal factoring: they isolate the number-finding part of the process from the algebraic rewriting step.
Diamond problems frequently involve negative factors, especially once a trinomial's constant term is negative. A negative product means the two factors have opposite signs; a negative sum with a positive product means both factors are negative. This calculator handles every sign combination automatically, including cases where the sum and product together produce two negative roots or one of each.
Given only a product and a sum, it's possible for no pair of real numbers to satisfy both conditions — this happens whenever Sum² is less than 4 × Product, which makes the discriminant in the quadratic formula negative. In that situation, the two factors are a pair of complex numbers rather than real numbers, and this calculator flags the case rather than returning a misleading result.
Eight worked diamonds covering all three cases.
Factor A = 13, Factor B = 4.
Factor A = 6, Sum = 11.
Factor A = 9, Product = 63.
Product = 12, Sum = 7 — from factoring x² + 7x + 12.
So x² + 7x + 12 = (x + 3)(x + 4).
Factor A = −4, Factor B = 8.
Product = 35, Sum = −12.
Factor B = 9, Product = 63.
Product = 20, Sum = 2.
Since the discriminant is negative, no pair of real numbers has a product of 20 and a sum of 2 — the calculator reports no real solution in this case.
Common diamond setups and their solutions.
| Factor A | Factor B | Product | Sum |
|---|---|---|---|
| 3 | 4 | 12 | 7 |
| 13 | 4 | 52 | 17 |
| −4 | 8 | −32 | 4 |
| 9 | 7 | 63 | 16 |
| Product | Sum | Factor A | Factor B |
|---|---|---|---|
| 12 | 7 | 3 | 4 |
| 35 | 12 | 5 | 7 |
| 35 | −12 | −5 | −7 |
| −32 | 4 | −4 | 8 |
| Quadratic | Diamond (Product, Sum) | Factored Form |
|---|---|---|
| x² + 5x + 6 | 6, 5 | (x + 2)(x + 3) |
| x² + 7x + 12 | 12, 7 | (x + 3)(x + 4) |
| x² − x − 12 | −12, −1 | (x − 4)(x + 3) |
| x² − 7x + 10 | 10, −7 | (x − 2)(x − 5) |
Why students and teachers use a dedicated solver instead of trial and error.
Get both missing values immediately, without listing out factor pairs by hand.
Automatically detects whether you've given two factors, one factor plus a total, or product and sum.
Correctly solves diamonds with negative factors, negative products, or negative sums.
Verify a hand-solved diamond problem in seconds before moving on to factoring a full quadratic.
Uses the same reliable method that also solves full quadratic equations, so results are always mathematically exact.
The diamond layout and result cards adapt cleanly to phones and tablets for on-the-go practice.
Where this simple four-number puzzle shows up in real math coursework.
Finding two numbers with a given product and sum is the core step in factoring quadratic expressions.
The product-and-sum case of a diamond problem is mathematically identical to finding a quadratic's two roots.
Diamond problems are a standard warm-up exercise used to build number sense before formal factoring is introduced.
The same product/sum logic extends to diamonds built from fractions or decimals rather than whole numbers.
Tutors use quick diamond checks to verify a student's factoring work step by step, rather than only the final answer.
Practicing varied diamond setups builds the speed needed for factoring questions under timed exam conditions.
Avoid these errors when solving diamonds by hand.
The top of the diamond is always the product (multiplication), and the bottom is always the sum (addition) — swapping them gives an entirely different pair of factors.
When listing factor pairs of a product, don't forget that two negative numbers can also multiply to a positive product.
Not every product-and-sum pair has a real-number solution — check the discriminant (Sum² − 4×Product) before assuming you've made an arithmetic error.
Trial and error works for small integers but breaks down for larger numbers or non-integer solutions — the quadratic formula always works.
If one known factor is zero, the product must also be zero, and the other factor can't be found by division — check for this edge case first.
A diamond problem is only solvable with exactly two known values — entering all four, or only one, leaves the puzzle over- or under-determined.
Rounding a fractional factor before computing the second value can introduce a small error that compounds through the rest of the calculation.
Remember the diamond is set up for x² − (Sum)x + (Product), so a negative middle-term coefficient in the original quadratic flips the sign of the sum you search for.
Everything students and teachers ask about diamond problems.
A diamond problem is a puzzle arranged in a cross shape where two factors sit on the left and right, their product sits on top, and their sum sits on the bottom — you're given two of these four values and asked to find the other two.
The product is −32 (−4 × 8) and the sum is 4 (−4 + 8).
It's mainly used as a stepping stone to factoring trinomials and finding the roots of quadratic equations, since both tasks require finding two numbers with a known product and sum.
The same rules apply: multiply the two fractions to get the product, and add them (using a common denominator) to get the sum — for example, 1/2 × 5/6 = 5/12, and 1/2 + 5/6 = 16/12.
List factor pairs of the product, then check which pair adds up to the given sum — or use the quadratic formula for an exact result without guessing.
Yes. If the sum squared is less than four times the product, there is no pair of real numbers satisfying both conditions, and the factors would be complex numbers instead.
Factoring that expression means finding two numbers whose product is c and whose sum is b — exactly a diamond problem with product c and sum b.
Yes, the calculator fully supports negative factors, negative products, and negative sums, and returns the correct sign combination automatically.
Yes. Any of the four diamond values can be a decimal, and the calculator solves the diamond the same way as it would for whole numbers.
A diamond problem needs exactly two known values to solve for the other two — if all four are entered, the calculator will ask you to clear two of them first.
With only one value known, there isn't enough information to solve the diamond — enter a second value to proceed.
No. Since both multiplication and addition are commutative, Factor A and Factor B can be swapped without changing the product or the sum.
Yes. It uses exact arithmetic for the two-factor and one-factor cases, and the quadratic formula for the product-and-sum case, so results are mathematically exact.
Yes, the Diamond Problem Calculator is free, with no signup required.
Yes. The diamond layout and results are fully responsive and work well on phones and tablets.
Enter any two values and let the calculator find the missing factors, product, or sum in seconds.