Margaret Hamilton

American NASA scientist and mathematician

Margaret Hamilton: The Engineer Who Named Software

Three minutes from the lunar surface, the Apollo 11 guidance computer began throwing alarms. Buzz Aldrin had issued an eighth simultaneous task request to a machine designed to handle seven. The landing could have been aborted there. It was not, because the woman who ran the software had assumed years earlier that something exactly like this would happen and had written the computer to shed its own non-essential work rather than fail. "If the computer hadn't recognized this problem and taken recovery action," she said later, "I doubt if Apollo 11 would have been the successful Moon landing it was."

Paoli, Indiana

Margaret Elaine Heafield was born on 17 August 1936 in Paoli, Indiana, to Kenneth and Ruth Esther Heafield. The family moved to Michigan, where she graduated from Hancock High School in 1954. Her father was a poet and her grandfather a headmaster, and the household pointed her toward philosophy as firmly as toward mathematics — she would end up taking both. She studied at the University of Michigan in 1955, then transferred to Earlham College, taking a BA in mathematics with a minor in philosophy in 1958. She credited Florence Long, who headed Earlham's mathematics department, with encouraging her toward abstract mathematics and an academic career. She married James Cox Hamilton in June 1958; their daughter Lauren was born the following year.

Weather, Chaos, Greek and Latin

Her first job in computing was with Edward Norton Lorenz in MIT's meteorology department from mid-1959, writing weather prediction software for LGP-30 and PDP-1 machines. Lorenz later acknowledged her contribution to the work that became chaos theory. From 1961 to 1963, at MIT Lincoln Laboratory, she programmed the prototype AN/FSQ-7 for the Semi-Automatic Ground Environment air defence system, where she was handed a notoriously intractable program whose comments had been written in Greek and Latin — and became the first person to get it to work. Both jobs shared a feature that would define her: she was given systems nobody else could make behave.

The Instrumentation Lab

In 1965 she joined MIT's Instrumentation Laboratory, later the Charles Stark Draper Laboratory, as the first programmer — and the first female programmer — hired for the Apollo project. She rose to Director of the Software Engineering Division, responsible for the on-board flight software for the Apollo Guidance Computer in both the Command Module and the Lunar Module, and subsequently for Skylab systems. This was code with no second chance: no patches, no reboots on a descent trajectory, no way to reach the machine once it left the pad.

THE FREE TEST
How high is yours?

Twenty questions, eight minutes on the clock, and a percentile measured against everyone who has taken it. No sign-up.

Take the IQ test →

1202

Hamilton's answer was to treat error not as an exception but as a design assumption. Her software included error detection and recovery routines and, critically, a "priority display" scheme: when the computer was overloaded, it would abandon lower-priority tasks and preserve the functions required to land. She had also thought through the human half of the loop, designing the procedure so that astronauts seeing a priority display would count to five, allowing for the software's processing lag.

On 20 July 1969 the mechanism ran exactly as designed. The alarms fired, the computer discarded what it could afford to lose, and NASA's mission control computer engineer Jack Garman recognised the codes and called "Go, go!" The Eagle landed.

Naming a Discipline

Hamilton is credited with establishing the term "software engineering" during the early Apollo years. Her purpose was jurisdictional as much as descriptive. "I began to use the term 'software engineering' to distinguish it from hardware and other kinds of engineering," she explained, "yet treat each type of engineering as part of the overall systems engineering process." The hardware people were not impressed. "It was an ongoing joke for a long time," she recalled. "They liked to kid me about my radical ideas." The joke is now the name of an industry employing tens of millions of people.

Development Before the Fact

She spent the rest of her career pursuing the implication. In 1976 she co-founded Higher Order Software with Saydean Zeldin to formalise the error-prevention methods that Apollo had taught her; their USE.IT product supported government programmes including the Space Shuttle and the Air Force's ICAM projects. In March 1986 she founded Hamilton Technologies in Cambridge, Massachusetts, where she developed the Universal Systems Language and the 001 Tool Suite around a paradigm she called "development before the fact" — the argument that errors should be made impossible at the moment of design rather than hunted during testing.

Recognition arrived slowly and then all at once: the Augusta Ada Lovelace Award in 1986; the NASA Exceptional Space Act Award in 2003, at $37,200 the largest individual award in the agency's history; the Presidential Medal of Freedom from Barack Obama in 2016; a Computer History Museum Fellow Award in 2017; the Washington Award in 2019; induction into the National Aviation Hall of Fame in 2022.

Why Margaret Is Called a Genius

The faculty is a specific inversion of how her field thought. In the 1960s software was understood as instructions that should work, with errors treated as regrettable incidents to be found later. Hamilton treated failure as the primary design object: what should a system do when the assumptions underpinning it stop holding? The priority display is the clearest artefact of that mind. It does not prevent overload, which cannot be prevented; it decides in advance, under conditions nobody has yet experienced, what a machine should be willing to abandon in order to keep doing the one thing that matters. That is a philosophical move as much as a technical one. Her second claim is conceptual authorship: naming "software engineering" while being mocked for it reorganised how an entire profession understood itself.

The honest qualifications are these. The record of her honours, extensive as it is, does not show the word "genius" formally applied; it shows medals for consequence. The Apollo 11 save was a system, not a solo act — her software raised the alarm, but Jack Garman had to recognise the codes, a flight controller had to say go, and the design depended on astronauts following a human procedure. And the industry adopted her word more completely than her method: "software engineering" is universal, while "development before the fact" remains specialist. Her genius is best located in a framing of the problem that has outlived every tool she built to solve it.

Legacy

The code she directed is the reason the phrase "1202 alarm" is a triumph rather than an epitaph. The larger inheritance is the assumption — now so standard it is invisible — that software is something engineered, held to tolerances, and expected to fail gracefully. She supplied both the name and the first great proof.

Compare with the greats

Erwin Schr Dinger vs PythagorasAdam Smith vs Garry KasparovClaude Monet vs Edgar Allan PoeJohn Von Neumann vs Stephen Hawking
See the IQ Rankings →All comparisons →

Child prodigies

Momiji NishiyaMomiji NishiyaFirst Olympic women's street champion, winning gold at age 13Emily BearEmily BearPlayed the White House at six, won a Grammy at twenty, scored a…Summer McintoshOlympic finalist at 14, world-record holder and triple Olympic…Laurent SimonsGraduated University at 11 — Belgian Prodigy with Electrical…
Child prodigies →

Play & come back tomorrow

Daily Genius Challenge · Guess the genius
Self-taught English scientist who discovered electromagnetic induction, the basis of the electric generator.
Tap your answer ↓
Which Genius Are You? Free IQ Test