All games

Water Jug Puzzle

0 moves

Pour to measure exact amounts. How to solve

Puzzle 1/20 · Fewest 4

Split 8L into 4L · 4L · 0L

8LGoal 4L
5LGoal 4L
2LGoal 0L

How to play the water jug puzzle

About the water pouring puzzle

Water pouring puzzles, also called water jug problems, decanting problems or measuring puzzles, date back to medieval times and appear in Bachet’s 17th-century mathematics book. Splitting 8 into 4 and 4 with 8-, 5- and 3-unit jugs is the classic example. A version with a tap and two jugs, 3 and 5 gallons, appears in the 1995 movie Die Hard with a Vengeance.

In Japan the puzzle is called aburawake-zan, “oil splitting”, after a problem in Jinkōki (1627), a best-selling math book of the Edo period by Yoshida Mitsuyoshi: split 10 measures of oil into 5 and 5 using 7- and 3-measure containers. That is Medium puzzle 1 here (9 moves). This is why the splitting puzzles in this game use golden oil, while the tap puzzles use water.

FAQ

How is the fewest number of moves worked out?

The game checks every state the puzzle can reach and finds the shortest way to the goal. “Hint” and “Solve” use the shortest solution from where you are now.

Why can’t I stop pouring halfway?

The jugs have no markings, so you can’t tell when you have poured exactly half. Pouring until one jug is empty or the other is full is the only way to know the amounts for sure. That is the rule of the puzzle.

When does the daily puzzle change?

Once a day, at midnight Japan time (15:00 UTC). Everyone gets the same puzzle that day. It rotates between halving, tap and three-way split puzzles. Weekday puzzles take 6–9 moves at best, weekend ones 10–14. Solve it every day to build a streak.