A marshmallow placed in a vacuum doesn't melt or instantly vaporize; it puffs up noticeably as the surrounding pressure drops, then collapses into a wrinkled, denser version of itself. The expansion comes from gas trapped inside the foam, and the final result depends on how fast you pull the vacuum, how long you hold it, and whether the marshmallow has a skin, a coating, or a fresh cut exposing its interior.

That single behavior—trapped gas expanding against a soft, elastic solid—drives most of what makes the demonstration interesting. The marshmallow is not boiling, and the sugar isn't going anywhere, but the air sealed in its tiny bubbles is suddenly pushing much harder than the gas around it.

The short answer: it balloons, then deflates

Under low pressure, the air pockets inside the marshmallow expand because the external pressure no longer balances the internal pressure. The sugar-protein matrix stretches to accommodate them, so the marshmallow grows and its surface tightens. When air is let back in—or when the internal bubbles rupture and gas escapes—it shrinks back, usually ending smaller, denser, and wrinkled compared with the original.

If you leave it under vacuum for a while, some of the trapped gas diffuses out through the foam, so the marshmallow may not spring back fully when the pressure returns. The longer the exposure, the more of that gas is lost and the more deflated the final result tends to be.

Why a marshmallow expands at all

A marshmallow is a foam: countless tiny gas bubbles dispersed in a continuous solid-ish phase. That continuous phase is mainly sugars (sucrose, corn syrup, and often dextrose) plus gelatin or another gelling protein, whipped with air and set. The gas occupies most of the volume, which is why a marshmallow is so light for its size.

Pressure is force per area, and a gas's pressure depends on how much gas is packed into a given volume and at what temperature. The bubbles inside a marshmallow are sealed, so each bubble contains a roughly fixed number of gas molecules.

When the chamber pressure outside the marshmallow falls, the pressure inside each bubble is temporarily higher than outside, and the bubble expands until the elastic skin of the foam pushes back enough to balance it.

The key detail is that the marshmallow doesn't have a rigid shell. It has a flexible, somewhat sticky surface, so it can deform a lot before it tears. That is why you see visible swelling rather than an invisible internal change.

The actual mechanism, step by step

When you draw a vacuum, several things happen in sequence, and separating them explains the common confusion between "expanding" and "boiling."

1. External pressure drops

A pump removes air from the chamber, lowering the pressure around the marshmallow. The pressure inside the trapped bubbles is still near atmospheric, so a pressure difference builds across the foam.

2. The trapped gas expands the bubbles

Each bubble grows, and the whole marshmallow puffs up. The sugar-protein matrix stretches; the surface may develop a shiny, taut appearance. The foam is doing its job as an elastic container.

3. Water in the marshmallow can start to evaporate

Lowering the pressure makes it easier for water to leave the marshmallow as vapor—this is the same physics behind vacuum drying. A marshmallow contains water, and under a hard enough vacuum, some of that moisture can vaporize into the bubbles or escape, especially near the surface. This is a real effect, but it is usually slower and less dramatic than the gas expansion.

4. The foam can rupture and some gas escapes

If the pressure difference is large enough, or the foam is weak, the bubble walls can break. Gas escapes, the structure partially collapses, and that bubble no longer pushes back.

5. On venting, it partially re-inflates and then shrinks

When air returns, external pressure rises. Bubbles that stayed intact are compressed back toward their original size. Bubbles that lost gas or ruptured leave the marshmallow smaller than it started.

The visible "deflation" people notice is largely this combination: gas loss plus the foam not returning perfectly to its starting geometry.

Is it boiling?

No, the marshmallow isn't boiling in the everyday sense, even if a slight bubbling or hissing appears during a strong pump-down. Boiling means a liquid's vapor pressure reaches the surrounding pressure throughout the liquid, producing vapor bubbles inside it. A marshmallow is not a pool of liquid; it's a solid foam with water distributed through a matrix.

There is a related effect, though: under sufficiently low pressure, water in the marshmallow can vaporize more readily, which is properly called evaporation or vacuum drying, not boiling of the marshmallow itself. If you see a little moisture or steam, that's a sign the pressure has dropped enough for water to leave, not that the sugar is boiling.

This distinction matters because people often expect a marshmallow in a vacuum to behave like a balloon in a vacuum. A balloon's rubber also stretches as external pressure falls, but a balloon holds one large gas volume, while a marshmallow holds thousands of tiny ones. The same principle works differently in each: the balloon visibly inflates and may burst; the foam puffs, then typically softens and shrinks.

How the outcome changes with the setup

Results differ mainly because pressure, temperature, dwell time, and the marshmallow's structure vary. The table below compares common conditions using qualitative differences rather than invented measurements.

Condition What happens to the marshmallow Why
Brief, mild vacuum Puffs moderately, springs back mostly intact Small pressure difference; bubbles stretched but not ruptured
Strong vacuum, short hold Expands a lot, may crack or split; partially recovers High pressure difference; foam strained, some bubbles fail
Strong vacuum, long hold Expands, then deflates as gas diffuses out; ends wrinkled and denser Gas escapes through foam over time; bubbles cannot re-pressure
Vacuum plus mild heating Faster moisture loss, more visible puffing and possible surface hardening Warmer conditions accelerate evaporation and soften the matrix
Fresh, soft marshmallow Stretches easily, may look bloated More elastic foam with intact bubble walls
Stale or dried marshmallow Less expansion, surface cracks sooner Less moisture and a less flexible matrix

The table describes direction and mechanism, not measured dimensions. Any specific expansion figure would depend on the marshmallow's formulation, freshness, and the exact pressure reached—inputs a home demonstration rarely controls precisely.

Why fresh versus stale marshmallows behave differently

Fresh marshmallows contain more moisture and a more pliable gelatin network, so the bubble walls stretch farther before cracking. A fresh marshmallow is more likely to make a dramatic puff without tearing. A stale marshmallow has lost water, its matrix is stiffer and less elastic, and the bubble walls may crack earlier, so it swells less and may split.

This is also why storage matters. Marshmallows left in a dry, open environment lose moisture over time. The same marshmallow that balloons under vacuum fresh from the bag may barely move after weeks of exposure to dry air.

What's left after the experiment

After a strong vacuum cycle, a marshmallow typically ends up smaller, denser, and wrinkled, with a slightly chewy or tough texture. That's the most useful takeaway: the vacuum didn't destroy the material, it changed the foam's structure by removing gas and some moisture. The sugar and gelatin are still there.

An older marshmallow may end up noticeably shriveled and firm. A fresh one may recover more of its size but still look a bit deflated compared with its starting shape. In both cases, the change is dominated by gas escaping the foam, with a secondary contribution from moisture loss if the vacuum is strong and held long enough.

Why the demonstration is worth understanding

The marshmallow-in-a-vacuum demo is popular because it makes a hidden property visible: gas is physically trapped inside a solid food. Most of the marshmallow's volume is empty space, and the foam's structure holds the gas in place. Dropping the external pressure lets that stored gas do work, and the result is a direct picture of the relationship between pressure, volume, and the flexibility of the surrounding material.

That same principle explains vacuum packaging, vacuum drying, and why sealed containers behave differently at altitude. A marshmallow is a low-stakes, edible model for all of it.

Practical notes if you try it

A few things matter if someone is watching rather than reading. Use a clear chamber so the expansion is visible. Release the vacuum slowly to see the marshmallow partially re-inflate before it settles. Expect some variance between brands—recipes differ in gelatin and sugar composition, and some have a firmer skin.

Keep the experiment clean and don't leave the pump running long enough to draw moisture into the pump oil if that's a concern for the equipment. But from a food-science perspective, the result is harmless sugar and gelatin.

What people get wrong about it

Two misunderstandings are common. The first is expecting the marshmallow to "explode" spectacularly. It usually puffs, may crack, and deflates; a full burst is a dramatic edge case, not the norm. The second is expecting it to return exactly to its original size. Most of the time it doesn't, because some gas has escaped and the foam has been strained.

A third, subtler point: a marshmallow under vacuum isn't "boiling sugar" or "vaporizing." The visible change is gas expansion and foam deformation, with moisture evaporation as a secondary process. Once you separate those, the behavior becomes predictable: the more pressure drop and the longer hold, the more the foam loses its internal gas and the more deflated and wrinkled it becomes.

The marshmallow in a vacuum is, in the end, a compact lesson in what a foam is: mostly gas, held by something stretchy, responsive to the pressure around it.