Buy a full case and the price per unit drops automaticallyRequest a sample
AccountCart0
All ContainersBottlesJarsCaps & ClosuresPumps & SprayersTubs & PailsJugsDroppersTinsTubesAccessoriesSeals & LinersCansBags & PouchesVialsLabels & DecorationBuckets & PailsDrumsBoxes & MailersBottling Tools
Industries
Learn

Why did my coffee bag inflate or my jar lid pop?

Updated

On this page8

Freshly roasted coffee gives off carbon dioxide for weeks, and a sealed bag or jar with no way to vent it swells until the seal or the lid gives. Roasted coffee holds roughly 1 to 2% of its weight as CO2 [1], darker roasts release more of it [1], and the Specialty Coffee Association notes that the release is rapid for the first 20 days after roasting [2]. A puffed bag of whole bean coffee is harmless to drink, but it tells you the package had no working one-way valve, the valve was blocked, or the coffee was sealed too soon. This page shows how much gas to expect, which cause you have, and when a swollen package means something else.

How much gas a bag of coffee makes

Researchers at the Zurich University of Applied Sciences weighed roasted coffee as it degassed, holding it at 35°C, a little warmer than a room, to speed the process and keep it repeatable [1]. Over runs of at least 400 hours (about 17 days), whole Arabica beans lost this much weight as gas, almost all of it CO2, per gram of coffee [1]:

Roast degree in the studyCO2 released over the measurement run (mg per g of whole beans)
Light2.5 to 2.8
Medium4.7 to 6.6
Dark8.5 to 11.9

The ranges cover the study's slow, medium and fast roasts, all measured at 35°C. The light roast was still degassing at about 800 hours (more than a month) at 35°C [1].

To see what that means for a package, convert it to volume. This is an approximate calculation from the 35°C measurements, with the inputs shown. A gram of CO2 takes up roughly half a liter (from the ideal gas law: 1 g ÷ 44.01 g per mole × about 24.06 liters per mole at 20°C ≈ 0.55 L; about 25.3 liters per mole at 35°C). For a 12 oz (340 g) bag, the study's figures work out to:

RoastCO2 over the run at 35°C in a 340 g bagApproximate volume at 20°CApproximate volume at 35°C
Light0.85 to 0.95 gabout 0.5 Labout 0.5 L
Medium1.6 to 2.2 gabout 0.9 to 1.2 Labout 0.9 to 1.3 L
Dark2.9 to 4.0 gabout 1.6 to 2.2 Labout 1.7 to 2.3 L

The figures are approximate, at 35°C. The study ran warmer than most storerooms, which speeds degassing, so beans at room temperature release the same gas more slowly, and real bags hold beans at different temperatures over time. But it shows the scale: a medium or dark roast sealed shortly after roasting can make more gas than the volume of the bag itself. A bag with no outlet has to swell, and a rigid jar has to push on its lid.

What you see, what it means, what to do

What you seeWhat it meansWhat to do
Bag without a valve, tight as a pillow, a few days after roastingNormal CO2 from fresh coffee with nowhere to goVent and reseal, or move to valve bags for anything you sell
Valve bag swollen and firmThe valve is blocked, sealed over or missingCheck that the valve is on the inside and unobstructed; see below
Valve bag swollen only when packed with ground coffeeFine grounds or oils clogging the valveFill with the valve facing away from the stream of coffee; consider whole bean only
Bag split at the seal, or a zipper popped openPressure exceeded the sealSeal fewer days after roasting, use valve bags, or check your heat sealer
Jar or canister lid popped or domedGas pressure in a rigid containerLeave the lid loose for the first days, or use a canister with a one-way valve
Bags puff during shipping or at a mountain marketLower outside air pressure at altitude, plus fresh coffeeNormal; valve bags vent it; allow headspace when filling
Bag that was flat now swells weeks later in a hot car or windowHeat speeds degassing and expands the gas already insideStore cooler; the coffee is fine to drink but is ageing faster

A blocked or missing valve

A one-way degassing valve is a small vent welded into the bag wall that lets gas out and keeps outside air from coming back in. The degassing study designed its test container to mimic a valve pack, and notes that in such packages CO2 builds up quickly after packing without significant overpressure, because the excess leaves through the valve [1]. When a valve bag still balloons, look for these:

  • The valve was sealed over. A label or a strip of tape covers the vent holes on the outside.
  • The valve is blocked from inside. Ground coffee, chaff or oil sits against the valve. This is more common with fine grinds and oily dark roasts.
  • The bag has no valve. Some stock bags have a printed circle where a valve would go. Feel for the disc.
  • The valve faces the wrong way or came loose in a bag where you fitted your own.

How to choose, fit and test valves is on do I need a valve on my coffee bags.

Packing too soon

The more of the gas that leaves before sealing, the less pressure builds later. Waiting a day or more before sealing a bag without a valve cuts the swelling, but the coffee keeps releasing gas for weeks, so waiting alone rarely solves it for a sealed, valveless bag. Waiting also costs freshness: the SCA describes oxygen moving in as CO2 leaves, and the coffee "starts developing off-flavors" [2]. A valve bag lets you seal on the day you roast and keep the gas leaving outward.

Resting for flavor is a different question from resting so a package does not swell. The data and the trade-off are on how long should coffee rest after roasting.

Vacuum-sealed coffee that inflated

Vacuum sealing fresh coffee pulls the air out, and then the coffee's own CO2 fills the bag back up. A vacuum bag that relaxed or puffed within days is doing what the gas data predicts. The nitrogen and vacuum page covers when vacuum or nitrogen flushing helps a small roaster.

When a swollen package is not coffee gas

Roasted whole bean and ground coffee are dry, and their gas comes from roasting. Dry tea and herbal blends do not make gas in the same way. A tea or herbal bag that swells only at altitude or in heat, then relaxes, is air expanding. A tea, herbal or flavored product that swells and stays swollen, or that smells sour, yeasty, fermented or musty when opened, has a different problem, usually moisture. Do not sell it or drink it; see it clumped, went sticky or grew fuzz.

Liquid coffee and tea drinks are outside this page. A swollen bottle, can or pouch of cold brew or any other prepared drink should not be opened or drunk; see the cold brew page.

Choosing a bag that vents

If your bags keep puffing, the fix is in the packaging. Start with do I need a valve on my coffee bags, then how to fill, weigh and seal bags by hand.

References

  1. Smrke S, Wellinger M, Suzuki T, Balsiger F, Opitz SEW, Yeretzian C, Time-resolved gravimetric method to assess degassing of roasted coffee, Journal of Agricultural and Food Chemistry 66:5293-5300, 2018. https://digitalcollection.zhaw.ch/bitstream/11475/12175/2/2017_Smrke-etal_Roasted-coffe-degassing-time-resolved-gravimetry.pdf
  2. Specialty Coffee Association, SCA News, Carmichael L, Coffee Decoded: What is "freshly roasted" coffee?, July 28 (year not shown; page copyright 2026), read October 2026. https://sca.coffee/sca-news/coffee-decoded-9-fresh-coffee