Canning works by heating food in a sealed jar until the contents kill bacteria, then cooling the jar so the lid seals tight and keeps new bacteria out
When you heat food in a closed jar, two things happen at once. The heat kills the bacteria, mold, and enzymes that would otherwise spoil the food. As the jar cools, the contents shrink slightly, and the lid gets sucked down so hard that air cannot get back in. That seal is what stops new bacteria from landing on your food and starting to grow. Without the seal, the heat alone would not protect anything—the food would spoil as soon as bacteria landed on it again.
The reason canning works is that most bacteria need oxygen to grow, and a sealed jar has almost none left. The heat also drives out dissolved oxygen from the food itself. Once the jar is sealed and cooled, the environment inside is hostile to the microorganisms that cause spoilage. This is why canned food can sit on a shelf for months or years without refrigeration.
Key Takeaways
- Heat kills bacteria and mold, and cooling creates a vacuum seal that keeps new bacteria out.
- The seal is the critical part—without it, bacteria will recolonize the food as soon as it cools.
- High-acid foods like jams and pickles need boiling water; low-acid foods like vegetables and meat need a pressure canner to reach higher temperatures.
- A failed seal means the food is not safe to eat, even if it looks and smells normal.
- Canning only works if you follow tested recipes and methods—improvising with time, temperature, or jar size can leave dangerous bacteria alive inside.
Why heat and sealing work together
Heat alone does not preserve food. If you heated a jar of tomatoes and then left the lid off, bacteria would land on it within hours and start growing again. The seal is what makes canning different from just cooking. When the hot jar cools, the air inside contracts, and the lid is sucked down so tightly that no new air can enter. This creates what is called a vacuum seal.
The vacuum seal does two jobs. First, it keeps oxygen out, and most spoilage bacteria cannot grow without oxygen. Second, it keeps the jar isolated from the outside world. Even if bacteria are floating in the air around your kitchen, they cannot reach the food inside a sealed jar. The combination of no oxygen and no new bacteria is what lets canned food last for years.
The difference between high-acid and low-acid foods
Not all foods need the same heat to be safe. High-acid foods—like jams, pickles, tomatoes, and anything with vinegar—can be canned in a boiling water bath. Boiling water reaches 212°F (100°C), which is hot enough to kill the bacteria that spoil these foods. The acid itself also slows bacterial growth, which is why pickles stay safe even if the seal fails slightly.
Low-acid foods—like green beans, carrots, corn, meat, and fish—need a pressure canner. A pressure canner heats the food to 240°F to 250°F (116°C to 121°C), which is hot enough to kill a dangerous bacterium called Clostridium botulinum. This bacterium produces a toxin that can cause botulism, a serious illness. Boiling water alone cannot kill it. If you try to can low-acid food in a boiling water bath, the bacteria may survive and grow inside the sealed jar, and you will not know it is there because the food will look and smell normal.
What happens inside the jar during canning
When you place a hot jar of food into boiling water (or pressure-cook it), the heat penetrates the food from the outside in. The longer the jar stays hot, the more the heat kills bacteria throughout the entire contents. This is why recipes specify exact times—too short, and bacteria in the center survive; too long, and you destroy the texture and nutrients of the food.
As the jar heats, air and steam escape from under the lid. This is normal and necessary. Once you remove the jar from the heat and let it cool, the air inside cools and contracts, pulling the lid down. You will hear a distinctive pop sound as the seal forms. That pop is the sound of the lid being sucked down by the vacuum. If you do not hear it within 12 to 24 hours, the seal failed, and the food is not safe to keep.
After the jar cools completely, you can remove the metal band that holds the lid on. The lid itself should not budge—if you can lift it off with your fingers, the seal did not form. A proper seal means the food inside is protected from bacteria and will stay safe as long as the jar is not opened.
Why following tested recipes and methods matters
Canning is safe only when you follow a tested recipe exactly. The recipe tells you the right temperature, the right time, and the right jar size because those details determine whether the heat reaches the center of the food and kills all the dangerous bacteria. If you change the recipe—using a larger jar, a shorter time, a lower temperature, or different proportions of ingredients—you risk leaving bacteria alive inside the sealed jar.
The most reliable tested recipes come from the National Center for Home Food Preservation (part of the University of Georgia) and the USDA. These organizations have tested recipes in laboratories to make sure the heat reaches the center of the food and kills the bacteria that cause botulism and other illnesses. Recipes from old family cookbooks, blogs, or social media may not be safe, even if they have been used for years. A recipe that has worked for decades does not mean it is safe—it may just mean no one got sick yet.
The same rule applies to equipment. You need proper canning jars (not repurposed pasta sauce jars), new lids (the rubber seal wears out after one use), and either a boiling water bath or a pressure canner. Improvising with other containers or equipment can cause the seal to fail or the heat to not reach the center of the food.
How to tell if a seal is good and the food is safe
After the jar cools completely, press the center of the lid with your finger. A good seal will not flex—it will be hard and slightly concave (curved inward). If the lid pops up and down when you press it, the seal failed. Remove the band and try to lift the lid off with your fingers. If it comes off easily, the seal is not good. A proper seal means the lid is stuck tight and you cannot remove it without prying.
Store sealed jars in a cool, dark place—a pantry or basement is ideal. Check the jars occasionally for signs of spoilage: bulging lids, cloudiness, mold, or strange smells. Any of these signs mean the seal failed or bacteria grew inside, and the food is not safe to eat. Even if the food looks and smells normal, a failed seal means bacteria may be growing inside, and you cannot see or smell the toxins that cause botulism.
What happens if the seal fails
If a jar does not seal, you have three options. You can refrigerate the food and eat it within a few days, just like any other cooked food. You can reprocess it—reheat the food, put it in a clean jar with a new lid, and process it again according to the recipe. Or you can throw it away. Do not store unsealed jars at room temperature, because bacteria will grow inside and the food will spoil.
A failed seal does not mean you did anything wrong. Sometimes a jar has a tiny flaw, or the rim was not clean, or the lid was defective. This is why recipes tell you to check the seal within 12 to 24 hours—so you know right away whether the food is safe to store or needs to be refrigerated or reprocessed.
Frequently Asked Questions
Can I reuse canning lids?
No. The rubber seal on a canning lid can only be used once. After the first use, the rubber is stretched and will not seal properly again. You can reuse the metal band and the jar itself, but you need a new lid every time you can. Reusing old lids is a common cause of seal failure.
How long does canned food last?
Canned food that is properly sealed and stored in a cool, dark place can last for years. The food quality (texture, color, flavor) may decline over time, but it will remain safe to eat as long as the seal is intact and the jar has not been opened. High-acid foods like jams generally last longer than low-acid foods like vegetables.
What is the difference between canning and freezing?
Canning uses heat and sealing to kill bacteria and keep new bacteria out. Freezing slows bacterial growth but does not kill bacteria—when you thaw frozen food, bacteria can start growing again. Canned food needs no electricity and lasts longer at room temperature, while frozen food requires a freezer and thaws quickly. Both methods are safe if done correctly.
Why do some recipes say to process jars in a boiling water bath and others in a pressure canner?
High-acid foods (pH below 4.6) are safe in boiling water because the acid prevents the growth of botulism bacteria. Low-acid foods need a pressure canner because only the higher heat from pressurized steam can kill botulism spores. Using the wrong method for the wrong food type can leave dangerous bacteria alive inside the sealed jar.
Can I can food in the oven?
No. Oven canning is not safe because the heat does not reach the center of the jar evenly, and the jars can crack from the temperature change. Boiling water baths and pressure canners are designed to heat food safely and evenly. Always use one of these two methods.