How to guess the number of items in a jar (and actually win)

There’s actual math behind guessing how many items are in a jar — and it takes about two minutes to do correctly.

How to guess the number of items in a jar (and actually win)
This post may contain affiliate links. For more information, please read our affiliate disclosure policy.

You know that feeling when you walk into a party or a fair booth and there’s a giant jar of jellybeans or gumballs or whatever, and they want you to guess how many are in there, and you just… stare at it? Like your brain goes completely offline?

I have been that person. I have scribbled a number on a ticket that was essentially a vibe. I did not win.

Turns out there’s an actual method for this. Not magic, not cheating — just a little math that takes about two minutes and makes you look like an absolute genius when your guess is suspiciously close.

Why does the jar-guessing method even work?

Estimating the contents of a jar is basically a volume problem, and volume problems have real answers. You’re not psychic — you’re doing geometry. The core idea is that you figure out how much space the jar holds, figure out how much space one item takes up, and divide. Simple as that.

The tricky part — the part most people skip — is accounting for air. When you pack a bunch of round objects into a container, they don’t fill it perfectly. There are gaps. That matters.

What do you actually need to calculate this?

You need three things: the jar’s dimensions, one piece of the item (to measure or estimate), and a calculator — your phone works fine.

If you can’t physically measure the jar, eyeball it. Most standard fair-booth jars are either a one-quart Mason jar (about 58 cubic inches) or a one-gallon jar (about 231 cubic inches). If you know what you’re looking at, you can skip half the math.

How do you calculate the volume of the jar?

For a cylinder-shaped jar — which most of them are — the formula is Ï€ × radius² × height. So if the jar is 4 inches across, the radius is 2 inches. If it’s 8 inches tall, you do 3.14 × 4 × 8 = roughly 100 cubic inches.

For a rectangular jar or box, it’s just length × width × height. Much easier. Either way, write that number down.

How do you figure out the volume of one item?

For a sphere — a marble, a gumball, a jawbreaker — the formula is (4/3) × π × radius³. A standard gumball is about 0.6 inches across, so the radius is 0.3 inches. That gives you roughly 0.11 cubic inches per gumball.

For oddly shaped stuff like jellybeans or candy corn, the easiest trick is to fill a measuring cup with water, drop a known number of pieces in, see how much the water rises, and divide. A little DIY displacement math — your middle school science teacher would be proud.

The air gap is the part everyone forgets

Here’s where most guesses go wrong. Round objects packed into a container don’t fill 100% of the space — they fill about 64% of it if packed randomly, up to about 74% if packed really efficiently. For a casual estimate, just plan on your items filling about 64% of the jar’s volume.

So take your jar volume, multiply by 0.64, then divide by the volume of one item. That’s your estimate. According to research on random packing of spheres, that 64% figure holds up pretty consistently for real-world conditions — it’s not just a guess.

Walk me through the full calculation with an example

Okay, real scenario. Big cylindrical jar, about 10 inches tall, 5 inches across. Filled with standard gumballs.

Jar volume: 3.14 × 2.5² × 10 = about 196 cubic inches. Multiply by 0.64 for packing = 125.4 cubic inches of actual gumball space. One gumball = roughly 0.11 cubic inches. So: 125.4 ÷ 0.11 = about 1,140 gumballs.

That’s your answer. Write down 1,140 or something close, and watch everyone else guess 500 or 3,000 off pure vibes.

What if the jar has a weird shape or layers of different items?

For funky-shaped jars — think apothecary jars with narrowing necks — just estimate the usable volume. The neck holds almost nothing, so focus on the main body of the jar and do the math there.

For layered or mixed items, this gets harder. If you can see that roughly half the jar is one thing and half is another, split your calculation. Do each half separately and add the results. It’s not perfect, but it’s still going to beat everyone around you who’s guessing with their soul.

Does item size actually matter that much?

It matters a lot more than people think. Smaller items mean more of them — obviously — but smaller items also pack more tightly together, which nudges that packing efficiency number slightly higher. You can bump your multiplier from 0.64 up to 0.68 or so for really small items like sprinkles or small candies.

For big chunky items like large jawbreakers or wrapped candies, you might go the other direction. The wrapping adds volume, and the irregular shapes leave bigger air pockets. Drop your multiplier to 0.60 and see how that feels. This is the part where you get to use your gut a little — which, honestly, is my favorite part.

poll

What’s your jar-guessing strategy?

pick your answer — no counts saved, just for fun

Any quick tips for when you can’t do the full math?

If you’re standing at a booth with no calculator and a line behind you, here’s the shortcut version: look at the bottom layer, count how many items fit across the base in a rough grid. Count the visible layers. Multiply. It’s not as precise, but it’s shockingly better than a random number.

Also — and this is something I learned from a post about fun party games I love — if there’s a smaller reference jar nearby, use it. Count the items in the small one if you can, then scale up based on how much bigger the prize jar looks. Your brain is actually decent at volume ratios when you give it a reference point.

And if none of this works? Just go with a number that sounds weirdly specific. Nobody guesses 1,247. That confidence reads as insider knowledge.

Winning a jar-guessing contest is genuinely one of those things where knowing the method puts you so far ahead of the room it almost feels unfair. Almost.

The math takes two minutes. The smug satisfaction when you’re the closest guess lasts way longer than that. Go forth and calculate.

Frequently asked questions

How do you calculate how many items are in a jar?
Calculate the jar’s volume using basic geometry (Ï€ × radius² × height for cylinders), multiply by 0.64 to account for air gaps between packed items, then divide by the volume of one item. That gives you a solid estimate.
What percentage of a jar is actually filled by round items?
Randomly packed spheres fill about 64% of a container’s volume. That means roughly 36% of the jar is just air — which is why raw volume calculations always overestimate the count.
How do I estimate the volume of one jellybean or candy?
Fill a measuring cup with water, drop in a known number of candies, and measure how much the water rises. Divide that volume by the number of pieces and you’ve got the volume per item.
Is there a quick shortcut for guessing without doing the full math?
Count how many items fit across the base in a row, estimate how many layers are stacked, and multiply those two numbers together. It’s not as precise but it’s way better than a random guess.
Does the shape of the item affect how accurate the estimate is?
Yes. Irregular shapes like jellybeans or wrapped candies leave bigger air gaps than perfect spheres, so you should use a lower packing efficiency — around 60% instead of 64% — when estimating those.
What’s the formula for a cylindrical jar volume?
Volume = Ï€ × radius² × height. Measure the jar’s diameter, divide by two to get the radius, then plug into the formula. The result is in cubic inches if you measure in inches.
How do I win a jar guessing contest at a fair or party?
Measure or estimate the jar’s dimensions, calculate total volume, multiply by 0.64 for packing efficiency, then divide by the volume of one item. Guess a specific-sounding number — it signals confidence and precision.