Diamond puzzle solver: free X puzzle solver with steps
💎 Diamond Puzzle Solver — Solve Any X Puzzle With Steps

Type any two numbers into the diamond and press Solve. The solver fills in the other two and shows every step. Switch to Practice for 4 levels of diamond problems with instant checking.

📑 In this guide (8 sections)
  1. What Is a Diamond Puzzle Solver?
  2. How Does the Diamond Problem Work?
  3. How Do You Solve a Diamond Problem by Hand?
  4. How Do Negative Numbers Change the Answer?
  5. What Happens When No Whole-Number Pair Works?
  6. How Does the Diamond Method Factor a Quadratic?
  7. Which Mistakes Trip Up Diamond Puzzle Solvers?
  8. FAQs

A diamond puzzle solver takes any two of the four numbers in a diamond problem and works out the missing two: the left and right numbers (the factors), the top number (their product) and the bottom number (their sum). Type two numbers into the diamond above, press Solve, and the tool fills the rest and lists every step it used.

I first met these as an “X puzzle” on a seventh-grade warm-up sheet, and they still show up the week a class starts factoring. The solver is there for checking homework and for the awkward cases, such as a top of 10 with a bottom of 2, where no real pair exists. The Practice tab gives 4 short levels when you want to do the thinking yourself.

Below you will find how the diamond works, the four solving cases, sign rules for negatives, what happens when no pair fits, and how the same idea factors a trinomial. For more equation practice, the algebra practice problems game is a good next step.

What Is a Diamond Puzzle Solver?

A diamond puzzle solver is a calculator that completes a diamond problem: you give it any two of the four numbers, and it returns the other two along with the working. It handles four numbers in a fixed layout, with the factors on the left and right, the product on top and the sum at the bottom.

Most diamond problem calculator tools on the web follow the same idea: enter any two values and the other two appear. The version above adds the steps in plain words, so a student can see why factor A and factor B are 3 and 4 rather than just copying the result. It also accepts negatives, decimals and fractions like 5/6.

From my own tutoring, the steps matter more than the answer. A diamond that looks solved can still hide a sign mistake, and seeing “factor pairs of 12: 1 and 12, 2 and 6, 3 and 4” written out is what makes the pattern stick before polynomial factoring starts.

How Does the Diamond Problem Work?

The diamond problem works on two rules at once: the left number times the right number gives the top, and the left number plus the right number gives the bottom. In symbols, L × R = top and L + R = bottom, so every correct diamond satisfies both a product and a sum.

The diamond layout, also called the X method because of the cross drawn through the middle, started as a classroom exercise for factoring quadratics. With sides 13 and 4, for example, the top is 13 × 4 = 52 and the bottom is 13 + 4 = 17. The order does not matter, so 4 and 13 is the same answer.

What makes the diamond useful is that the product and the sum pull in different directions. Many pairs multiply to 52, but only one of them adds to 17. That tension is the whole puzzle, and it is exactly the check a student needs when factoring x² + 17x + 52 later on.

How Do You Solve a Diamond Problem by Hand?

You solve a diamond problem by hand by first spotting which two numbers you already know, because each combination has its own short method. The diamond puzzle solver above uses the same four cases, so you can compare its steps with your own working.

  1. Both sides known: multiply them for the top and add them for the bottom. Sides 3 and 7 give a top of 21 and a bottom of 10.
  2. One side and the bottom known: subtract the known side from the sum. A left side of 6 with a bottom of 11 leaves 5, and the top is 6 × 5 = 30.
  3. One side and the top known: divide the product by the known side. A left side of 9 with a top of 63 gives 63 ÷ 9 = 7, and the bottom is 16.
  4. Top and bottom known: list the factor pairs of the top and pick the pair that adds to the bottom. For a top of 20 and a bottom of 12, the pairs 1 and 20, 2 and 10, 4 and 5 add to 21, 12 and 9, so the sides are 2 and 10.
  5. Double-check: multiply and add your two sides once more before you move on.

The fourth case is the one that takes real thought, and it is the case that maps straight onto factoring. When the top has many factor pairs, I tell students to write the pairs in a column and add each one; it is slower than guessing but it never misses the right pair.

Diamond puzzle solver with top 12 and bottom 7 solved as 3 and 4 with steps
Type any two numbers, press Solve, and read the steps.

How Do Negative Numbers Change the Answer?

Negative numbers change a diamond problem through the signs of the top and the bottom: a positive top means the sides share a sign, and a negative top means the sides have opposite signs. Reading those two signs first cuts the list of factor pairs in half before you add anything.

Top (product) Bottom (sum) Signs of the sides Example
Positive Positive Both positive 3 × 4 = 12, 3 + 4 = 7
Positive Negative Both negative (−3) × (−4) = 12, −3 + (−4) = −7
Negative Positive Opposite signs, positive side has the larger absolute value 6 × (−3) = −18, 6 + (−3) = 3
Negative Negative Opposite signs, negative side has the larger absolute value 3 × (−6) = −18, 3 + (−6) = −3

Two edge cases come up in homework sets. A bottom of 0 means the sides are opposites, so a top of −16 gives 4 and −4. A top of 0 means one side is 0 and the other equals the bottom, so a top of 0 with a bottom of 5 gives 5 and 0. Level 2 in the Practice tab mixes these sign patterns.

What Happens When No Whole-Number Pair Works?

When no whole-number pair works, the diamond still has an answer, but the sides come from the quadratic t² − St + P = 0, where S is the bottom and P is the top. The solver switches to this method automatically when none of the factor pairs adds up to the bottom.

The key number is the discriminant, S² − 4P. If it is a perfect square, the sides are rational; a top of 2.4 and a bottom of 3.1 give a discriminant of 0.01 and sides of 1.5 and 1.6. If it is positive but not a perfect square, the sides are irrational decimals, and the solver shows them rounded to six places.

If the discriminant is negative, no real numbers work at all. A top of 10 with a bottom of 2 gives 2² − 4 × 10 = −36, so the sides are the complex numbers 1 ± 3i. Students are often told “there is no answer” here; a more accurate statement is that there is no real answer, which is why the solver labels the case clearly.

Diamond problem practice level with a correct answer message
The Practice tab checks each diamond and shows the factored trinomial.

How Does the Diamond Method Factor a Quadratic?

The diamond method factors a quadratic x² + bx + c by putting c on top and b on the bottom, then reading the two sides as the numbers in the factored form. For x² + 7x + 12, the top is 12, the bottom is 7, the sides are 3 and 4, and the answer is (x + 3)(x + 4).

When the leading coefficient is not 1, the same diamond still works with one change, often called the AC method. Put a × c on top and b on the bottom, then split the middle term using the two sides. For 2x² + 7x + 3, the top is 6 and the bottom is 7, so the sides are 6 and 1.

Rewrite the trinomial as 2x² + 6x + x + 3 and factor by grouping: 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3). Level 4 of the practice game sticks to a leading coefficient of 1, which is the right place to build speed before the AC version.

Which Mistakes Trip Up Diamond Puzzle Solvers?

The mistakes that trip up diamond puzzle solvers most often are sign slips and checking only half of the rule. Each one below came up repeatedly when I marked practice sheets, and each one is caught by a single multiply-and-add check at the end.

  • Using only the product: 2 and 6 multiply to 12, but they add to 8, not 7.
  • Ignoring negative signs: a top of −18 needs opposite signs, so 3 and 6 can never work.
  • Confusing product and sum positions: the product always sits on top, the sum at the bottom.
  • Assuming integer factors: some diamonds need decimals, fractions or even complex numbers.
  • Using c instead of ac: for 2x² + 7x + 3 the top is 6, not 3.

The quickest fix for all five is the habit the solver models: after every answer, multiply the sides, add the sides and compare both results with the diamond. It takes ten seconds and saves a whole factoring problem from going wrong.

Diamond puzzle solver in full screen mode
Full screen gives the diamond the whole screen; tap Exit to return.

FAQs

Is the X Puzzle the Same as a Diamond Problem?

Yes, the X puzzle and the diamond problem are the same exercise: two side numbers that multiply to the top and add to the bottom. Some teachers draw it as an X, some as a diamond, and some pair it with a box for factoring, which is why you may also hear “diamond and box.” The related AC method uses the same product-and-sum idea for trinomials.

Can a Diamond Puzzle Use Fractions or Decimals?

Yes, a diamond puzzle can use fractions or decimals, and the solver above accepts both. Sides of 1/2 and 5/6 give a top of 5/12 and a bottom of 4/3. With decimals, a top of 2.4 and a bottom of 3.1 give sides of 1.5 and 1.6. Type fractions with a slash, such as 5/6.

Where Does the Product Go in a Diamond Problem?

The product goes in the top of a diamond problem, and the sum goes in the bottom. The two sides hold the numbers being multiplied and added. If you are ever unsure, check one example: sides of −4 and 8 give a top of −32 and a bottom of 4, so the top is always the multiplication result.


Muhammad Hammad

Muhammad Hammad is the founder and editor of Cool Math Game Puzzle. He creates and reviews the site's logic puzzles, number puzzles and sudoku guides for students, teachers, parents and puzzle fans.