Percy Spencer took the same snack to work every day: a PayDay bar, chocolate over peanuts, riding in his trouser pocket. One morning in 1945 he reached for it and came back with sludge.

Room temperature could not explain it, a detail the University of Maine’s research guide on Spencer keeps returning to. Most people bin the bar and get on with the day.

Spencer wanted to know what had eaten his lunch.

What a magnetron does to a chocolate bar

He had been working beside a magnetron, a vacuum tube that turns electricity into microwaves. Raytheon built them by the thousand for Allied radar, because short waves bounce off small objects and give a sharper picture than long ones do.

Microwaves also do something less obvious. As IEEE Spectrum explains, the field grabs lopsided molecules, water above all, and flips them back and forth; that agitation is heat. A microwave does not so much warm food as shake it until it warms itself.

Cocoa butter surrenders at around 34 degrees Celsius, which makes a pocketed chocolate bar a sensitive thermometer. Spencer had one on him by habit.

Popcorn, then an egg

He sent for corn kernels, held them up to the running tube and watched them go off across the laboratory. The next test went worse: per the Smithsonian’s Lemelson Center, he set an egg in a pot in front of the magnetron and it burst over a colleague.

Two experiments, roughly ten minutes, no budget.

Why it was Spencer who noticed

According to the Lemelson-MIT Program, Spencer’s schooling stopped at twelve, when he went to work in a weaving mill. Six years later he enlisted in the Navy as a radio operator and spent off hours working through calculus and physics on his own.

The Linda Hall Library dates his rise to running Raytheon’s radar effort to 1939, the year the company won a contract from MIT’s Radiation Laboratory. The library also credits him with untangling the magnetron assembly line, which had been slow and hand-machined, and rebuilding it around stamped and soldered parts; output climbed from a trickle to thousands a day.

So the melted bar landed in the pocket of the one man in that building best placed to work out what else a radar part could do.

The patent went in that October

Filed on 8 October 1945 and granted in January 1950, Spencer’s “Method of Treating Foodstuffs” claims electromagnetic energy at a wavelength of about ten centimetres, concentrated in a restricted space, with the food moving relative to that field while it cooks. The last clause is a turntable, described decades before the feature became standard.

Energy figures do the selling. As documented by the Library of Congress, Spencer reckoned a hard-boiled egg cost 2 kilowatt-seconds his way against 36 by conventional cooking, and a baked potato 240 against 72,000.

Six feet tall and water-cooled

Raytheon had a product two years later. The first Radarange, described by MIT Technology Review, went to ocean liners, trains, hotels and restaurants, a few of which built promotional menus around it. One machine ran for three decades in the kitchen of a Raytheon founder.

It stood close to six feet, weighed some 750 pounds, needed plumbing to cool the tube and cost about $5,000. Nobody was putting that beside the kettle.

Why the door has two locks

Consumers took some persuading, and the persuasion involved regulators. Microwaves are non-ionising, meaning they cannot knock electrons loose the way X-rays do, so cooked food is neither radioactive nor contaminated. Leakage was the real question, since a badly sealed door could burn skin or damage eyes at close range.

The US Food and Drug Administration has policed the appliance since 1971. Federal rules cap lifetime leakage at 5 milliwatts per square centimetre measured roughly two inches from the casing, and every oven must carry two independent interlocks that cut power to the magnetron the instant the door opens, plus a monitor that shuts the whole thing down if either interlock fails.

Twenty years to the countertop

Miniaturisation took its time. A 220-volt wall unit went on sale for the home in 1955 at $1,295 and flopped, as IEEE Spectrum’s history notes. Raytheon then bought the appliance maker Amana, and in 1967, Smithsonian magazine records, a countertop Radarange arrived at $495. Steep, but payable by a middle-class household, and it ran off an ordinary power point instead of special wiring.

Adoption after that was relentless. By 2015 the US Energy Information Administration counted a microwave in 96 per cent of American households, with 99 per cent using it at least weekly.

That accident gets all the airtime, and it is the less interesting half. Chocolate had almost certainly gone soft in other pockets, in other radar rooms, on other slow afternoons, and nothing came of any of it.

Somebody sent out for popcorn. That is the part nobody lucks into.