All games

Water Jug Puzzle

0 moves

Measure exact amounts with unmarked jugs

Puzzle 1/20 · Fewest 4

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

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

How to play the water jug puzzle

How to solve water jug puzzles

Water jug puzzle answers

8, 5 and 3: split 8 into 4 and 4 (7 moves)

The best-known version: an 8L jug is full, and the 5L and 3L jugs are empty. It is Easy puzzle 10 in this game.

Move8L5L3LPour
0800Start
13508L → 5L
23235L → 3L
36203L → 8L
46025L → 3L
51528L → 5L
61435L → 3L
74403L → 8L

3 and 5: measure exactly 4 (the Die Hard 3 riddle, 6 moves)

With a tap, a 3-gallon jug and a 5-gallon jug, get exactly 4 gallons. In this game it is Easy puzzle 4, in liters.

Move3L5LAction
000Start
105Fill 5L
2325L → 3L
302Empty 3L
4205L → 3L
525Fill 5L
6345L → 3L

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. Solve it every day to build a streak.