How does a microwave oven heat food?
The short answer
A microwave oven heats the food and not the box. What the magnetron makes, why water molecules turn it into heat, and why frozen middles and hot spots happen.

A microwave oven heats food by filling a metal box with radio waves that flip their electric field billions of times a second. Water molecules in the food try to turn with every flip, they jostle against their neighbours as they do, and that jostling is heat. The oven never gets hot itself; the food does.
That is the whole trick, but each part of it explains something you have probably noticed: why the plate stays cooler than the soup, why the middle of a frozen block stays icy, and why a fork can throw sparks.
Where the microwaves come from
The waves are made by a device called a magnetron, a vacuum tube tucked behind the control panel. Inside it, electrons stream from a hot central rod towards a surrounding metal block, and a strong magnet bends their path into a spin. The block is cut with a ring of small cavities, and as the electrons sweep past them the cavities ring electrically, much as air rings when you blow across a bottle. The result is a steady output of microwaves.
A short metal channel called a waveguide carries them from the magnetron into the cooking compartment. From there, the US Food and Drug Administration's explanation sums up the three properties that make the whole thing work: microwaves are reflected by metal, they pass through glass, paper and most plastics, and they are absorbed by food.

Household ovens run at a nominal 2.45 gigahertz, a wavelength of about 12 centimetres. That frequency sits in one of the radio bands set aside internationally for industrial, scientific and medical equipment, so ovens do not interfere with licensed radio services. It is the same crowded band that Wi-Fi shares, which is why an old or poorly shielded oven can upset a Wi-Fi connection while it runs.
Why water heats up
A water molecule is lopsided. Its oxygen end carries a slight negative charge and its two hydrogen atoms a slight positive one, so it behaves like a tiny bar magnet for electric fields. Put it in an electric field and it turns to line up.
A microwave is an electric field that keeps reversing. At 2.45 gigahertz it points one way, then the other, about five billion times a second. The water molecules keep trying to follow, but in a liquid they are packed against each other, so every turn shoves and drags the molecules around them. The FDA describes it as vibration that creates friction between molecules; physicists call it dielectric heating. Either way, energy from the wave ends up as the random jiggling of molecules, which is what temperature is.

Fats, sugars and other molecules with uneven charge heat this way too. Glass, ceramics and most plastics have few such molecules that are free to turn, so the waves pass through them. A bowl only gets hot because the food inside heats it.
The resonance story
You may have read that 2.45 gigahertz is the natural "resonant frequency" of water, tuned so that each molecule absorbs the wave perfectly.
It is a tidy idea, and it is wrong.
Christopher Baird, a physicist at West Texas A&M University, points out that water absorbs microwaves over a broad range of frequencies, and that a magnetron does not even produce one clean frequency: measurements of a household oven found output spread across roughly 2.40 to 2.50 gigahertz.
In fact, a frequency that water absorbed extremely well would cook worse. The waves would be used up in the outer skin of the food and never reach further in. The frequency ovens use is a compromise: absorbed well enough to heat, weakly enough to reach a little way into a dish.
Not from the inside out
That brings up another common belief, that microwaves cook food from the inside out. The FDA says plainly that they do not. In a thick piece of food, the outer layers are heated mostly by the microwaves themselves, and the centre is heated mainly by ordinary conduction of heat inwards from those hot outer layers. That is why recipes tell you to let a dish stand for a minute or two after the timer goes off: the heat is still spreading.
Ice is the other awkward case. In ice, water molecules are locked into a crystal and cannot turn freely, so they absorb microwaves far less than liquid water does. Any patch that thaws starts absorbing much faster, heats more, and thaws its surroundings, so a frozen block can end up boiling at the edges and solid in the middle. Defrost settings deal with this by running at low average power, which on many ovens means switching the magnetron on and off and leaving gaps for heat to spread by conduction.
Hot spots and the turntable
Waves bouncing between metal walls overlap. Where the reflected waves line up crest to crest they reinforce each other, and where crest meets trough they cancel, so the oven fills with a fixed pattern of strong and weak spots a few centimetres apart. It is the same adding and cancelling of waves that noise-cancelling headphones use deliberately to quieten an engine, but in an oven it is a nuisance.
The turntable exists to carry food through that pattern, so no part sits in a dead spot the whole time. Ovens without one use a slowly turning metal fan, called a stirrer, near the waveguide to keep shifting the pattern instead. Neither removes the unevenness completely, which is why the instructions on ready meals so often say to stir halfway.
Metal, sparks and the door
Metal reflects microwaves, which is why the walls can be metal at all. Thin or pointed metal is the problem: the field concentrates at sharp edges and points, such as the tines of a fork or crumpled foil, and can become strong enough to ionise the air and make a spark.
The door has to let you see in while keeping the waves inside. The window has a metal mesh built into it, and the holes in that mesh are far smaller than the 12-centimetre wavelength, so to the microwaves it behaves like a solid metal sheet. Visible light has a wavelength of under a thousandth of a millimetre and passes straight through. Seals and latches keep the door's edges closed, and the FDA notes that an oven in good condition does not leak microwave energy. The same kind of radio wave does other jobs too: radar units above some junctions use microwaves to spot cars waiting at traffic lights.
A radar engineer's invention
The oven grew out of wartime radar. The cavity magnetron was developed in Britain to power radar sets during the Second World War, and the American engineer Percy Spencer of Raytheon, who worked on mass-producing magnetrons, filed a patent for heating food with microwaves in October 1945. Raytheon sold the first commercial microwave oven, the Radarange, in 1947. It was a large, expensive machine aimed at commercial kitchens; countertop ovens for home kitchens did not arrive until 1967.
Sources
- US Food and Drug Administration, "Microwave Ovens" (radiation-emitting products): how microwaves are produced, reflected and absorbed, and why food is not cooked from the inside out.
- Christopher S. Baird, West Texas A&M University, "Why are the microwaves in a microwave oven tuned to water?", Science Questions with Surprising Answers (2014).
- Percy L. Spencer, US Patent 2,495,429, "Method of treating foodstuffs", filed 8 October 1945, granted 24 January 1950.