How Does Canning Preserve Food? The Science of the Seal
Learn how canning preserves food through heat processing and vacuum seals, and why both steps matter for safe, shelf-stable jars.

Canning works through two mechanisms that happen in sequence: heat destroys the microorganisms inside the jar, and a vacuum seal forms as the jar cools to keep new ones out. Understanding those two steps makes every other canning rule click into place. Once you see the logic, you stop guessing and start canning with real confidence.
What's Actually Threatening Your Food
Before you can appreciate what canning does, it helps to know what it's defending against.
Spoilage in home-preserved food comes from microorganisms (bacteria, molds, and yeasts) along with enzymes that naturally occur in the food itself. Under the right conditions (warmth, moisture, oxygen, and nutrients), these organisms multiply quickly and break food down. Some just ruin flavor or texture. Others produce toxins that cause serious illness.
The most dangerous threat in home canning is Clostridium botulinum. This bacterium is found in soil and water almost everywhere, and its spores are remarkably heat-resistant. In a sealed, oxygen-free environment (exactly the conditions inside a canned jar), those spores can germinate and produce a toxin that causes botulism, a potentially fatal illness. You can't see, smell, or taste the toxin. That's why safe canning methods exist: they're designed to eliminate this risk before you ever put a jar on the shelf.
Molds and most bacteria are far easier to deal with. They're killed at boiling temperatures relatively quickly, which is why high-acid foods can be safely processed in a boiling-water canner. Botulinum spores require a higher temperature, around 240°F (116°C), that boiling water alone cannot reach. That's the whole reason pressure canners exist.
How Heat Processing Works
The first mechanism of canning preservation is heat. When you load filled jars into a canner and bring it up to temperature, the heat does several things at once.
Destroying Microorganisms and Enzymes
Adequate heat kills or deactivates the organisms responsible for spoilage and illness. For high-acid foods, boiling-water processing at 212°F (100°C) is sufficient to destroy molds, yeasts, and bacteria, including any that could reactivate enzymes that would otherwise cause color and texture changes over time.
For low-acid foods (vegetables, meats, most soups and stews), you need pressure canning because that method raises the internal temperature of the jars to 240°F (116°C). At that temperature, heat-resistant botulinum spores are destroyed within the processing time specified by tested recipes. Boiling-water canning can never reach that temperature, which is why it is never a safe substitute for low-acid foods, no matter how long you process them.
Driving Air Out of the Jar
Heat does a second job that's easy to overlook: it expands the food and the liquid inside the jar and drives air and steam upward and out from under the lid. This is part of why leaving proper headspace matters. The space at the top of the jar gives the contents room to expand without pushing food up into the sealing compound on the lid.
How the Vacuum Seal Forms
The second mechanism is the vacuum seal, and this is where the physics gets genuinely satisfying.
The Lid Compound and What It Does
Two-piece metal lids (the kind designed for home canning) have a band of flexible sealing compound around the underside of the flat disc. During processing, heat softens this compound just enough that it can conform to the rim of the jar and create a gasket-like contact.
Cooling Creates the Vacuum
When you lift hot jars out of the canner and set them on a towel, the real action is just beginning. As the contents cool, they contract: the food shrinks slightly, the liquid volume decreases, and the steam trapped inside the jar condenses back into water vapor. All of that contraction reduces the pressure inside the jar relative to the normal atmospheric pressure pushing down on the outside of the lid.
That pressure differential is what pulls the lid down tight. The center of the lid (slightly domed before processing) flexes downward and stays there. The familiar "ping" you hear is the lid snapping into place. The sealing compound, now cooled, holds that position and forms an airtight barrier between the contents of the jar and the outside world.
A properly sealed jar is shelf-stable not because of some preservative ingredient, but because nothing can get in or out. No oxygen. No new microorganisms. No moisture exchange. Combined with the heat processing that eliminated threats already inside, the jar is safe to store at room temperature for the long term.
Why Both Steps Are Necessary
Here's where beginners sometimes trip up: the vacuum seal alone is not enough, and heat processing alone is not enough. You need both.
A jar that seals without adequate heat processing might look perfectly fine. The lid will ping, it will pass the press-down test, and it will sit happily on your shelf. But if the processing time or temperature wasn't sufficient to destroy harmful organisms, they may still be alive inside that sealed, oxygen-free environment. That's actually the ideal condition for botulinum spores to germinate and produce toxin.
Conversely, a jar that was adequately processed but failed to seal is not shelf-stable. Air and microorganisms from the environment can re-enter, and the food will spoil just like any open container. A jar that doesn't seal during cooling should go straight into the refrigerator and be used within a few days, or reprocessed within 24 hours with a new lid.
This is why tested recipes from sources like the USDA Complete Guide to Home Canning and the National Center for Home Food Preservation (NCHFP) specify both the processing method and the time. Those times were determined through laboratory testing to ensure that heat penetrates to the center of the coldest, densest jar and holds long enough to destroy target organisms. Changing the recipe, the jar size, or the processing method invalidates that testing.
Acidity and Why It Changes Everything
The acidity of a food determines how much heat it needs to be safe.
High-Acid Foods
High-acid foods (most fruits, jams, jellies, pickles with added vinegar, and tomatoes prepared with added acid) have a pH of 4.6 or below. At that acidity level, botulinum spores cannot germinate, even if a few survive the heat processing. The acid itself creates an environment where the bacterium responsible for botulism can't thrive. That's why boiling-water processing is sufficient for these foods: you're targeting molds, yeasts, and the bacteria that do survive in acidic conditions, and 212°F handles all of them.
The acid also makes heat penetration faster and more predictable. High-acid jams and jellies are relatively thin and uniform, which helps.
Low-Acid Foods
Vegetables, meats, fish, poultry, beans, and most mixtures without significant added acid have a pH above 4.6. At that pH, surviving botulinum spores can become active in a sealed jar. The only way to make these foods safe without refrigeration is to reach 240°F, the temperature that destroys the spores themselves, which requires a pressure canner.
You can read more about acidity in canning in the guide to why acidity matters in home canning.
What a Successful Seal Looks and Feels Like
Knowing how the seal forms helps you evaluate it correctly after processing.
A properly sealed lid:
- Is concave (curved downward) in the center when cooled
- Does not flex or move when you press the center with your finger
- Makes a clear, high-pitched ringing sound when tapped with a metal spoon (a hollow, dull thud suggests the lid is not sealed)
- Has no visible damage to the rim compound or lid surface
Check every jar before storing it. Remove the screw bands for storage (they can hide seal failures and trap moisture against the lid). If any jar fails these checks, refrigerate it immediately and use it within a few days, or discard it if you have any doubt.
Before using a stored jar, check it again. The lid should still be concave and immovable. Any lid that has bulged up, any jar with spurting liquid when opened, any food with an off smell: discard without tasting. When in doubt, throw it out.
Tying It Back to Tested Recipes
Every part of the science above is exactly why tested recipes are non-negotiable. The processing time in a tested recipe accounts for the specific food density, jar size, starting temperature, and target organisms for that food. The required headspace, the jar size limits, and the canner type are all part of the same equation.
Scaling up a recipe, using a larger jar than specified, skipping the recommended acid addition to tomatoes, or switching from pressure canning to boiling-water canning doesn't just bend the rules. It changes the physics and the safety outcome.
For current tested recipes and guidelines, start with the USDA Complete Guide to Home Canning, the National Center for Home Food Preservation at nchfp.uga.edu, or Ball's canning resources. These are updated periodically as research refines our understanding of heat penetration and food safety. For a broader look at whether home canning is safe when done correctly, see our guide on home canning safety. If you're still deciding between a water-bath canner and a pressure canner, the water-bath vs pressure canning comparison breaks down exactly which method each food requires.
The science is logical and consistent. Once it makes sense, safe canning follows naturally.
FAQ
What makes a canning seal airtight?
The sealing compound on the underside of a two-piece canning lid softens during heat processing and molds to the jar rim. When the jar cools and the contents contract, atmospheric pressure pushes the lid down, compressing that compound against the rim and creating a tight, airtight seal. As long as the jar rim is chip-free and the lid is new and undamaged, this process is reliable.
Is a vacuum seal enough to make canned food safe?
No. A vacuum seal alone does not make food shelf-stable or safe. The heat processing step must happen first, at the correct temperature and for the correct duration, to destroy harmful microorganisms and spores inside the jar. A jar that seals without adequate processing can still harbor dangerous pathogens. Always follow tested recipes from the USDA, NCHFP, or Ball for both the processing method and the time.
Why can't I use boiling-water canning for green beans?
Green beans are a low-acid food with a pH above 4.6. At that acidity, botulinum spores can survive boiling-water temperatures and later germinate in the oxygen-free environment of a sealed jar. Only pressure canning reaches the 240°F temperature needed to destroy those spores. Processing green beans in a boiling-water canner for any amount of time is not safe and should not be done, regardless of what older recipes may suggest.
Why does my lid sometimes seal but then pop back up?
A lid that seals and then un-seals usually means the initial seal was weak: perhaps the jar rim had a small chip, the lid compound didn't seat properly, or the jar wasn't processed long enough. The contents expanded slightly as they warmed to room temperature and broke the imperfect seal. Refrigerate the jar immediately and use it soon. For future batches, inspect jar rims carefully before filling and always use new, undamaged lids.
How long does a proper vacuum seal last?
The USDA recommends using home-canned goods within one year for best quality, though a properly sealed jar stored in a cool, dark, dry location can remain safe beyond that. Quality (flavor, color, texture) does decline over time. The seal itself can last longer, but don't assume a sealed jar is safe if it's several years old. When in doubt, discard it.