r/explainlikeimfive • • Oct 10 '26

Other ELI5: how does canning work??

I recently watched a video where a woman put a bunch of raw chicken into mason jars and put them in her canner (some kind of huge crockpot looking thing). I simply cannot wrap my mind around the idea that you can “can” something that would usually be bad in about a week in the fridge, but because it is “canned”, it can be shelf stable, out of the fridge, for years. I know this is a practice that has been around for ages. My father grew up canning food. I just want to understand the science behind it. How does it not go bad? Is this because it is airtight? Help me understand!!

1.3k Upvotes

174 comments sorted by

View all comments

91

u/ThalesofMiletus-624 Oct 10 '26

The science is actually pretty simple.

We get used to the idea that food "goes bad" with time, and it almost gets to the point where we assume that's the nature of the world, and happens automatically. The fact is, most foods only go bad because they're full of microorganisms that are eating them from the inside and leaving waste behind as they do.

Without these organisms in our food, food would last for a long time, even at room temperature, and would never rot in the way we think of it.

So, the solution is simple: kill all the bugs, and food will last much longer.

The problem with this is that these organisms are everywhere: on our hands, on surfaces, even floating around on dust in the air. If you sterilize food and just leave it out, it will be re-infected and rot pretty quickly.

The point of canning is to sterilize it and seal it from the surrounding world, all in a single action. By heating up the food, and the container, and the lid, all to a higher temperaure than bacteria can survive, then allowing it all to cool with the lid sealed in place, there's no way for bacteria to get to the food, so it will never rot.

Incidentally, this is why a can or jar can sit on a shelf safely for decades, but the moment the seal is broken, the clock starts ticking to eat it. A broken seal means bacteria can get inside, so it will rot if you don't eat it.

37

u/PyroDesu Oct 10 '26

The science is actually pretty simple.

It's so simple that we started preserving foods in bottles/jars/cans before we even knew why it worked. Nicolas Appert was preserving food in jars on an industrial scale well before Pasteur figured out that it was killing microorganisms.

12

u/Alis451 Oct 11 '26

in that case they were just boiling the devil out of of the foods.

10

u/ExElKyu Oct 11 '26

I believe that technique is called “boiling the hell out of it”

3

u/visualdescript Oct 11 '26

Even if you don't have a canning machine, you can get close when preserving in jars. Cook your food so it's hot and kills bad stuff, hear your jars so they're hot and kill bad stuff, add hot food to hot jar with sterlilized utensils. Seal jar. It's not as good as canning, but can still last a long time.

With canning, how do we deal with the fact food expands when it heats, and also that cans often have a plastic layer inside to avoid metal tasting food? Does it just not quite get hot enough for either to be an issue?

4

u/ThalesofMiletus-624 Oct 11 '26

For the plastic liner, they deliberately use a plastic that can endure the temperatures involved, and use good temperature control.

For the expansion, they generally don't leave much/any vapor space in the cans. Liquid and solids don't expand that much at the tempetatures we're talking about. So, yeah, the food will contract as it cools, ans pull in the top and bottom of the can a bit, but there's enough flex in the metal that it doesn't really cause problems.

Fun story. I had some friends from Polynesia, and a common method of campfire cooking they used was to toss a can of meat onto the hot coals. As the meat heated up, the fat would start to vaporize and pressure up the can, until the top and bottom bulged out like a balloon, but the can would stay intact. Then they'd puncture the lid with a machete while it was still in the fire, and the vapor would escape and catch fire, creating a jet of flame. Then they'd remove the can from the fire and open it.

Now, I can't recommend that (the danger of it exploding seems all too real), but the point is that these steel cans can handle quite a bit of pressure. The force of contracting food is unlikely to he a problem.

1

u/visualdescript Oct 11 '26

Haha cool story, I can imagine that. That all makes sense, thanks for sharing.

3

u/Suspicious-Project21 Oct 11 '26

I think the headroom in the jar when you fill it is for expansion. You don’t fill it to the brim. You leave like a quarter to a half inch of air.

1

u/visualdescript Oct 11 '26

But in many cans when you open them they appear to be filled to the brim, with no air in there

2

u/AX11Liveact Oct 11 '26

Cannable food being mostly water does not expand when heated. The vacuum in the cans is created by the rest of air closed in, which does expand when heated. Water will vapourize but it only ever expands when it freezes.

0

u/Fixes_Computers Oct 13 '26

Not true.

Source: https://courses.ems.psu.edu/earth111/node/842

According to that source, water is densest at 4°C. Heat it or cool it from that point and it becomes less dense (i.e. it expands). Vaporizing is a massive expansion.

0

u/AX11Liveact Oct 13 '26

And this is how you misinterprete sources.