□ − 4 = 9 and 15 − □ = 6. Both are subtraction equations, yet you find □ in different ways. Many people say, “I always get confused about whether to add or subtract,” or “I can’t explain my child’s find-the-□ homework very well.” This article explains how to solve fill-in-the-box problems (working backward) in this order: how the operations relate, bar models, and how to check. It also covers working backward in adult life, like finding a price before tax or planning a schedule.
What Is a Fill-in-the-Box Problem (Working Backward)?
It’s a calculation where you know the answer, but one number in the equation is missing, and you find that number. The unknown number is shown with a □ or ○. Because you trace the equation back from the answer, it’s also called “working backward” (in Japanese, gyakuzan, “reverse calculation”).
In Japanese elementary schools, children often learn equations with □ around 3rd or 4th grade (the timing depends on the textbook). In middle school, the □ turns into a letter like x, and they learn it as solving equations. In Japan, entrance exams for private middle schools also often include “gyakuzan” problems that ask you to find the □ in a long equation.
The foundation of working backward is that addition and subtraction, and multiplication and division, undo each other.
How Addition and Subtraction Relate
From the equation 5 + 7 = 12, you can also say two subtraction facts: 12 − 5 = 7 and 12 − 7 = 5. The three numbers form a “part, part, whole” relationship.
So for □ + 5 = 12, subtract the part 5 from the whole 12, and □ = 7. Even when □ comes second, as in 8 + □ = 13, it’s 13 − 8, which is 5. In addition, whichever number is □, you find it by subtracting.
The Calculation Changes Depending on Where □ Is in Subtraction
In subtraction, the calculation changes depending on where □ is.
When □ is the starting number (□ − 4 = 9)
This equation says, “I subtracted 4 from the starting number and got 9.” The starting number is the 9 that’s left plus the 4 you took away, so 9 + 4 gives □ = 13.
It’s the same as this situation: you spent 400 yen from your wallet and had 900 yen left. What was in it at first was 900 + 400, or 1,300 yen.
When □ is the number subtracted (15 − □ = 6)
This equation says, “I subtracted something from 15 and got 6.” Think of it as eating some of 15 strawberries and having 6 left. The number eaten is 15 − 6, so □ = 9. In this case, you find it by subtracting.
A common mistake is to remember “the opposite of subtraction is addition” and do 15 + 6 to get 21. You can’t subtract 21 from 15, so checking catches it right away.
When in doubt, swap in an equation with small numbers
When you’re not sure which one it is, try an equation with small numbers whose answer you know. If 5 − 3 = 2, the number subtracted, 3, comes from 5 − 2. 15 − □ = 6 has the same shape, so it’s 15 − 6. This “try a small equation” method also works for multiplication and division.
How Multiplication and Division Relate
Multiplication and division work the same way.
- For □ × 6 = 42, 42 ÷ 6 gives □ = 7
- For □ ÷ 3 = 8, □ is the number being divided. 8 × 3 gives □ = 24
- For 36 ÷ □ = 4, □ is the divisor. 36 ÷ 4 gives □ = 9
In division, only when □ is the divisor do you find it by dividing.
For division with a remainder, □ ÷ 5 = 7 remainder 2 means 5 × 7 + 2, so □ = 37. It has the same shape as checking a division problem (divisor × answer + remainder) (How to Teach Division).
Quick Reference: Where □ Is and How to Find It
| Where □ is | Example | How to find it | □ |
|---|---|---|---|
| Number added to | □ + 5 = 12 | 12 − 5 | 7 |
| Starting number in subtraction | □ − 4 = 9 | 9 + 4 | 13 |
| Number subtracted | 15 − □ = 6 | 15 − 6 | 9 |
| Number multiplied | □ × 6 = 42 | 42 ÷ 6 | 7 |
| Number being divided | □ ÷ 3 = 8 | 8 × 3 | 24 |
| Divisor | 36 ÷ □ = 4 | 36 ÷ 4 | 9 |
Only when □ is the number subtracted or the divisor do you find it with the same sign as the original (− or ÷). Otherwise, you find it with the opposite sign.
For Equations with Two or More Steps, Undo from the End
Think about an equation with two calculations, like □ × 3 + 4 = 19. It means, “I multiplied □ by 3, then added 4, and got 19.”
In the morning, you put on your socks and then your shoes; when you get home, you take off your shoes and then your socks. Working backward is the same: undo the last calculation first.
- Since 4 was added last, subtract 4 from 19: 19 − 4 = 15
- Before that, it was multiplied by 3, so divide 15 by 3: 15 ÷ 3 = 5
□ = 5.
Watch the order of operations
In 4 + □ × 3 = 19, × is calculated first, so the last step is “add 4.” Subtract 4 from 19 to get 15, divide by 3, and □ = 5, the same answer. The rule that × and ÷ come first is explained in Order of Operations.
For 20 − □ × 3 = 8, it’s “subtracting □ × 3 from 20 gives 8.” □ × 3 is the number subtracted, so 20 − 8 = 12. 12 ÷ 3 = 4, so □ = 4.
Equations with parentheses
In (□ − 6) ÷ 4 = 5, what’s inside the parentheses comes first. The last step was “divide by 4,” so 5 × 4 = 20. Before that was “subtract 6,” so 20 + 6 = 26. □ = 26.
Even with three steps, the method is the same. For (□ + 8) × 2 − 5 = 31, 31 + 5 = 36, 36 ÷ 2 = 18, 18 − 8 = 10, so □ = 10.
The game where you say, “Think of a number, multiply it by 3, and add 4. What do you get?” and then guess the original number from the other person’s answer also uses this kind of working backward.
Thinking with Bar Models
When the equation alone is confusing, drawing a bar model (a diagram with a long bar split into parts) lets you see whether to add or subtract.
- Draw one long horizontal line, and write the “whole” number above it.
- Mark divisions on the line to split it into “parts.”
- Write the numbers you know on their parts, and □ on the part you don’t know.
For 15 − □ = 6, the whole is 15, and the parts are □ and 6. Looking at the line, □ is what’s left after you remove the 6 part from the whole, so you can see you find it with 15 − 6.
For □ − 4 = 9, the whole is □, and the parts are 4 and 9. The whole is the length of the parts put together, so it’s 4 + 9.
For □ × 3 + 4 = 19, split the line into “3 sections the length of □” and “1 section of 4.” Remove 4 from the whole 19, and 3 □s make 15. One is 15 ÷ 3, which is 5.
Bar models also help when turning word problems into equations. How to think through word problems is summarized in How to Solve Word Problems.
How to Check: Put It in the □ and Recalculate
You can check an answer you found by working backward by putting the number into the □ and calculating the original equation again.
- If □ = 9 for 15 − □ = 6, then 15 − 9 = 6, so it’s right.
- If □ = 5 for □ × 3 + 4 = 19, then 5 × 3 + 4 = 19, so it’s right.
Also check the rough size. The □ in □ × 6 = 42 should be smaller than 42. The □ in □ − 4 = 9 should be bigger than 9. If the size goes the wrong way, you’ve mixed up adding and subtracting.
Working Backward in Adult Life
Working backward isn’t just for tests. In daily life, there are lots of situations where the goal is set first and you work out “what to do now” from there.
Finding the price before tax from the tax-included price
For an item that costs 2,750 yen including tax (Japan’s 10% consumption tax), the price before tax is the □ in “price before tax × 1.1 = 2,750.” 2,750 ÷ 1.1 is 2,500 yen. For the regular price of an item that became 2,100 yen at 30% off, it’s “regular price × 0.7 = 2,100,” so 2,100 ÷ 0.7 is 3,000 yen. Calculating discounts and tax is covered in detail in How to Calculate Discounts.
Planning a schedule backward
Say you’re meeting someone in front of the station at 9:00, it’s a 15-minute walk from home to the station, and getting ready takes 40 minutes.
- Go back 15 minutes from 9:00: leave home at 8:45
- Go back 40 minutes from 8:45: start getting ready at 8:05
If you want 10 minutes to spare, you know to start at 7:55. In cooking, too, if you want something to come out of the oven at 6:00 p.m., and baking takes 35 minutes and prep takes 25 minutes, put it in the oven at 5:25 p.m. and start prep at 5:00 p.m. Subtracting times is also explained in How to Calculate Time.
Working out how much each time from a goal
If you want to save 120,000 yen in 6 months and you have 30,000 yen now, 90,000 yen is left. That means 90,000 ÷ 6, or 15,000 yen a month.
If you want an average of 80 points over 4 tests, you need 80 × 4 = 320 points in total. If your first three tests were 75, 82, and 79 points, the total is 236 points, so working backward, you need 320 − 236, or 84 points, on the 4th test. Calculating averages is covered in How to Calculate an Average.
Practice Problems
Find the number that goes in the □. The answers are below.
- □ + 17 = 43
- □ − 28 = 39
- 72 − □ = 45
- □ ÷ 7 = 9
- 84 ÷ □ = 12
- □ × 4 + 7 = 31
- 60 − □ × 7 = 4
- (□ − 5) ÷ 3 = 9
- What is the price before tax of an item that costs 3,080 yen including tax (10% consumption tax)?
- You want to arrive 15 minutes before a movie that starts at 7:10 p.m. If it takes 45 minutes to get from home to the theater, what time should you leave home?
Answers to the practice problems
- 26 (43 − 17)
- 67 (39 + 28; □ is the starting number in subtraction)
- 27 (72 − 45; □ is the number subtracted)
- 63 (9 × 7; □ is the number being divided)
- 7 (84 ÷ 12; □ is the divisor)
- 6 (31 − 7 = 24, 24 ÷ 4 = 6)
- 8 (□ × 7 is the number subtracted, so 60 − 4 = 56, 56 ÷ 7 = 8)
- 32 (9 × 3 = 27, 27 + 5 = 32)
- 2,800 yen (3,080 ÷ 1.1)
- 6:10 p.m. (15 minutes before 7:10 p.m. is 6:55 p.m., and 45 minutes before that is 6:10 p.m.)
Tsumezan: A Math Puzzle Where You Trace Back from the Goal
The math puzzle Tsumezan asks you to make the number written on the card at the top (the goal) with an equation that uses every number and sign tile (+ − × ÷) exactly once. There are no parentheses, and × and ÷ come before + and −. ÷ only works when it divides evenly, and nothing may go below zero, along the way or at the end. Every puzzle has exactly one answer.
In Tsumezan, the answer is set first, and you search for the equation. Unlike a fill-in-the-box problem with just one □, you decide where every number and sign goes yourself. Even so, the way of thinking is the same as working backward. If you trace back from the goal, asking “which calculation, done last, would give this number?”, the possibilities narrow down a lot.
Here’s a sample puzzle.
There’s a + tile, so try tracing back from the goal: “What plus what makes 10?” The answer is at the end of this section.
The Tsumezan app for smartphones is free to play (it shows ads). Difficulty ranges from ★1 Easy (1–2 goals, 3–4 numbers) to ★5 Grandmaster (2–4 goals, 8 numbers). If you get stuck, “Hint” places one tile that leads to the answer. You can try as many times as you like with “Undo” and “Restart,” and if you stop partway, you can pick up where you left off next time. On the official site, tsumezan.com, you can solve “Today’s Tsumezan,” one puzzle a day, in your browser.
The rules are summarized in How to Play Tsumezan.
Answer to the Tsumezan puzzle
6 + 8 ÷ 2 = 10 (arranging it as 8 ÷ 2 + 6 counts as the same equation). ÷ comes first, so 8 ÷ 2 = 4, and adding 6 makes 10. You can trace it backward: 10 minus 6 is 4, which you make with 8 ÷ 2. 6 ÷ 2 + 8 and 8 + 6 ÷ 2 make 11, and 2 ÷ 6, 6 ÷ 8, and the like don’t divide evenly, so they can’t be used.
