Solve the Water Jug Riddle from Die Hard 3

You've got to defuse a bomb by placing exactly 4 gallons of water on a sensor. The problem is, you only have a {{safesubst:#invoke:convert|convert}} jug and a 3 gallon jug on hand! This classic riddle, made famous in Die Hard 3, may seem impossible without a measuring cup, but it is actually remarkably simple. Click here to watch the clip from the movie if you need to refresh your memory.

For the solution, click here to skip to the answer. If you want guidance and hints to solving it on your own, scroll down.

Steps

Figuring out the Answer (Hints)

  1. Simplify the question and your options. Setting the movie aside for the moment, think of the riddle in its most basic terms. What do you know, what's your goal, and what are your options? A simpler way to look at the riddle might be:

    You have two empty water jugs in your hands. One holds 3 gallons of water, the other holds 5 gallons of water. You need to use these two jugs to measure exactly 4 gallons of water. You have an unlimited amount of water to do so.
  2. Determine where you will keep the 4 gallons of water. In order to measure out your 4 gallons, you need to put it somewhere. As John McClane rightly deduces, you couldn't possibly fit it in the 3-gallon jug, which means the right answer must involve getting the right amount of water in the 5-gallon jug.
  3. Know that, like all good riddles, you have everything you need for a solution. The solution does not involve bringing in another jug, or eyeballing the water levels perfectly, or finding fractions of jugs. You have two jugs and an unlimited supply of water. How can you use just those things to get to 4 gallons? More specifically, how can you use 3 and 5 to get to 4?
    • Unlimited water means you can use or pour out as much as you want.
    • You are not able to guess exactly how much water is in the jug unless you fill it all the way up.
  4. Realize that this is, at heart, a simple math problem. Ignore the water and the jugs for a moment if you are still stuck. How can you add or subtract 3's and 5's to get to 4? This is really all you are doing; the numbers just happen to represent gallons. Adding water or dumping it out is really just addition and subtraction.

Getting the Solution (Correct Answers)

Solution 1

  1. Fill the 5-jug up completely. There will be, of course, 5 gallons in the 5-jug. You must fill all the gallons up to the top, otherwise you don't actually know how much you have.
  2. Use the water from the 5-jug to fill up the 3-jug. You're left with 3 gallons in the 3-jug and 2 gallons in the 5-jug.
  3. Pour out the 3-gallon jug. You're left with nothing in the 3-jug and 2 gallons in the 5-jug.
  4. Transfer the water from the 5-jug to the three jug. You're left with 2 gallons in the 3-jug. And nothing in the 5-jug.
  5. Fill up the 5-jug completely. You now have 2 gallons in the 3-jug and 5 in the 5-jug. This means that there is {{safesubst:#invoke:convert|convert}} of space left in the 3-jug.
  6. Use the water from the 5-jug to fill up the 3-jug. Fill up the last gallon of space in the 3-jug with the water from the 5-jug. This leaves you with 3 gallons in the 3-jug, and 4 gallons in the 5-jug.[1]

Solution 2

  1. Fill the 3-jug completely with water. You now have {{safesubst:#invoke:convert|convert}} of water.
  2. Transfer this water into the 5-jug. You now have nothing in the 3-jug, and {{safesubst:#invoke:convert|convert}} in the 5-jug.
  3. Re-fill the 3-jug with water. You now have {{safesubst:#invoke:convert|convert}} in the 3-jug and 3 gallons in the 5-jug.
  4. Fill the 5-jug with water from your 3-jug. You now have {{safesubst:#invoke:convert|convert}} in the 3-jug and {{safesubst:#invoke:convert|convert}} in the 5-jug. This is because, in the last step, you only had {{safesubst:#invoke:convert|convert}} of space left over, so you could only pour 2 gallons.
  5. Pour out the 5-jug and refill it with your 1 gallon. You now have nothing in the 3-jug and 1 gallon in the 5-jug
  6. Fill up the 3-jug. You now have {{safesubst:#invoke:convert|convert}} in the 3-jug and 1 in the 5-jug.
  7. Transfer the {{safesubst:#invoke:convert|convert}} of water into the 5-jug to end up with {{safesubst:#invoke:convert|convert}}. Simply pour over your three gallons into the 5-jug, which only had {{safesubst:#invoke:convert|convert}} in it previously. 1+3=4, and a successfully defused bomb.[2]

Tips

  • You can't spill a drop when transferring.

Related Articles

Sources and Citations

You may like