QuestionChemical reactions

Why Do Eggs Turn Solid When You Cook Them? Proteins Explained

A hard-boiled egg cut in half, with a green ring around the overcooked yolk
A hard-boiled egg cut in half, with a green ring around the overcooked yolk. Image: Ll1324 (CC0), via Wikimedia Commons

Eggs turn solid when cooked because heat unfolds the proteins in the white and the yolk, and the unfolded proteins link into a firm network that traps water. Egg white begins to set at about 62 °C (144 °F), and the yolk at about 65 °C (149 °F). Once set, the change cannot be reversed.

Contents

The full answer

A raw egg is mostly water. The white is about 88 percent water, and the whole egg is about 75 percent water. The rest is mostly protein, along with fats in the yolk and small amounts of minerals and sugars. Proteins are long chains of amino acids that fold into compact shapes. In a raw egg, these shapes keep the proteins separate, so the egg flows like a liquid.

When an egg is heated, the energy from the heat makes the protein chains vibrate more. This breaks the weak bonds that held each protein in its folded shape, and the chain unfolds. This process is called denaturation. The unfolded chains expose parts of the molecule that were hidden before, and they stick to one another.

As more proteins unfold and join, they form a continuous network that holds the water in place. The egg no longer flows, because the network is too tangled and too large to move freely. The result is a solid gel. The white becomes opaque because the new clumps scatter light, and the yolk becomes thick and crumbly as its proteins and fats set.

The change is permanent. Cooling the egg does not unfold the protein network, because the new bonds between chains are stable. This is why a cooked egg cannot be returned to its raw state.

The science behind it

Egg white contains many different proteins. The most abundant is ovalbumin, which makes up about half of the white’s protein. Other proteins, such as ovotransferrin, bind metals like iron, and some are enzymes or antimicrobial proteins. Each one sets at a slightly different temperature, which is why the white begins to set before the yolk does.

The yolk is more complex than the white. It contains proteins called lipovitellins and phosvitin, along with a large amount of fat, and the fat is held in small droplets. As the yolk heats, its proteins unfold and join, trapping the fat droplets in a solid network. This is why a yolk becomes crumbly rather than gel-like.

Temperature controls how fast the setting happens. A higher temperature unfolds proteins faster, so a hot pan sets an egg in a few minutes, while a gentle warm water bath can set an egg slowly and keep the yolk soft. Time matters too. Holding an egg at a temperature just above the setting point gives a softer texture, while long heating or high heat gives a firm and dry result.

An everyday example: hard-boiled and soft-boiled eggs

Boiling an egg shows the change clearly. A soft-boiled egg is cooked for a few minutes, so the white sets but the yolk stays runny. A hard-boiled egg is cooked for longer, so the yolk sets fully. The difference is only a matter of minutes, because the yolk sets at a slightly higher temperature than the white.

Cooks use this difference to control texture. A poached egg is cooked gently in water, so its white sets around the yolk while the yolk remains soft. A scrambled egg is stirred while it cooks, so the proteins form small curds instead of one large network. In every case, the same proteins behave in the same basic way, and only the timing and temperature differ.

Eggs are also a common example of why cooking matters for food. Heat changes the texture of the proteins, and at the same time it can destroy bacteria, which is why cooked eggs are safer to eat than raw ones.

Readers often ask why the clear white of a raw egg turns opaque when cooked. The reason is the change in protein shape. In the raw egg, the proteins are dispersed and do not scatter much light, so the white looks clear. Once the proteins unfold and clump, the clumps scatter light in all directions, and the white looks cloudy.

A similar effect happens in other foods. Milk looks white because its fat and protein particles scatter light, and the same is true of many everyday materials. Scattering does not come from a pigment, so no color has to be added to make the white opaque. The page on why clouds are white describes the same idea in the sky.

Another question people ask is about the smell of an overcooked egg. The sulfur in egg white is contained in amino acids such as cysteine, and heating releases small amounts of sulfur compounds. The page on sulfur explains the element that makes these compounds.

Common misconceptions

Whites and yolks set at the same time. The white begins to set at a lower temperature than the yolk. That is why a soft-boiled egg can have a set white and a runny yolk.

The green ring means the egg is spoiled. The ring is iron sulfide, which forms when overcooking releases hydrogen sulfide and it meets iron in the yolk. It affects the color and smell but does not make the egg unsafe to eat.

Cooling a cooked egg makes it liquid again. Cooking changes the proteins permanently. Cooling only makes the set egg colder.

Frequently asked questions

Why does egg white turn from clear to white when cooked?

Heat unfolds the proteins in the white, and they clump together into particles that scatter light. Scattered light makes the cooked white look opaque instead of clear.

At what temperature does an egg set?

Egg white begins to set at about 62 °C (144 °F), and the yolk begins to set at about 65 °C (149 °F). Heating well above these temperatures sets the egg further and makes it firmer and drier.

Can a cooked egg turn back into a liquid?

No. Cooking changes the shapes of the proteins and forms new bonds between them, and these changes are permanent. Cooling the egg does not reverse them.

What causes the green ring around an overcooked yolk?

Hydrogen sulfide, a gas released from the white during long cooking, reacts with iron in the yolk to form iron sulfide (FeS), which is greenish gray. The ring is harmless and does not mean the egg is spoiled.

Why do eggs turn rubbery when overcooked?

Too much heat squeezes water out of the protein network and makes it tighter and harder. The result is a dry, rubbery texture instead of a soft, tender one.

Sources and further reading

  • OpenStax, "Chemistry 2e"
  • Encyclopaedia Britannica, "Protein"
  • N. N. Greenwood and A. Earnshaw, "Chemistry of the Elements" (2nd ed., 1997)

Cite this page

“Why Do Eggs Turn Solid When You Cook Them? Proteins Explained.” Atoms & Forces, https://science.bigworldlist.com/questions/why-do-eggs-turn-solid-when-cooked/.

More about Chemical reaction