Forget carnival games based on pure luck! A viral TikTok video has revealed how a simple application of middle-school geometry and probability can turn you into a prize-winning pro at one of the oldest carnival challenges: guessing the number of items in a giant jar.
The Science of Guessing: How the TikTok Math Hack Works
Carnival and fair booths frequently feature oversized glass jars packed to the brim with jellybeans, marbles, or candy coins, challenging passersby to guess the total count for cash prizes or stuffed animals. While most visitors offer wild guesses like 500 or 2,000, viral TikTok creator Alex Trueman broke down the exact mathematical formula that consistently approximates the total count within a narrow margin of error.
The hack relies on calculating the approximate cylinder volume of the container and adjusting for random close packing density:
Step-by-Step Formula Breakdown
- Count the Base Layer: Look at the flat bottom of the jar and count how many individual items touch the glass along the circumference and radius. Alternatively, count the diameter (number of items across) and divide by two to get the radius in item units (r).
- Estimate Base Area: Using the circle area formula (Area = pi * r^2), compute how many items fit in a single circular cross-section layer.
- Count the Vertical Height: Count how many candies tall the jar is from bottom to top (h).
- Calculate Cylinder Volume: Multiply the cross-sectional layer count by the total height (Volume = Area * h).
- Apply the Sphere Packing Factor: Because candies are imperfect spheres that leave empty air gaps between them, they do not fill 100% of the jar’s volume. According to Kepler’s sphere packing principles, random close packing of spheres fills approximately 64% of total volume. Multiply your raw volume by 0.64 to get your final, highly accurate estimate!
Real-World Example
Suppose you encounter a jar where the diameter across the base is roughly 10 jellybeans (radius r = 5). The cross-sectional layer holds 3.14 * 5^2 = 78.5 jellybeans. If the jar is 20 jellybeans tall, raw volume is 78.5 * 20 = 1,570. Multiply by the 0.64 packing factor: 1,570 * 0.64 = 1,004 jellybeans.
Frequently Asked Questions
Does the math hack work for non-spherical candy?
Yes. While spheres pack at roughly 64% density, oblong candies like jellybeans pack slightly tighter (around 66% to 68%), and flat disc candies (like M&Ms) pack closer to 70%. Using a 65% multiplier offers an excellent baseline for almost all carnival candy contests.
Are jar guessing games rigged?
Most community fairs and carnival guessing games are not rigged; rather, human intuition is naturally terrible at estimating three-dimensional volume. People regularly underestimate volume by 30% to 50%, making math-based estimates drastically more competitive.
