Margaret Hamilton, Software Pioneer Behind Apollo Moon Landings, Dies at 90
Margaret Hamilton, the MIT scientist whose onboard flight software guided NASA’s Apollo astronauts to the Moon and who helped invent the discipline of “software engineering” itself, has died at 90. MIT, her former employer, announced on Wednesday that Hamilton died on September 30, calling her a computing pioneer whose team wrote some of the most consequential code in human history.
![]() |
| Margaret Hamilton stands beside the towering stack of Apollo guidance-software listings developed by her team at MIT. |
Born in Indiana in 1936, Hamilton studied mathematics before moving to Boston with her husband in 1959, according to reports. She found employment at MIT, working first on computer programs for weather forecasting and then on the SAGE air-defense system at the Lincoln Laboratory, where she gained experience building software for complex systems where reliability was essential.
The turning point came in the mid-1960s, when MIT’s Instrumentation Laboratory won the contract to develop the onboard guidance software for NASA’s Apollo missions. MIT says Hamilton joined the effort in 1965, becoming the first programmer hired for the Apollo project at MIT — and the first female programmer on the project. By 1968, she was assistant director in charge of Apollo’s Command and Service Module software team, with more than 400 people working on the mission’s code, according to the university.
![]() |
| The Apollo 11 lunar module Eagle on the Moon’s surface in July 1969 — the landing made possible by Hamilton’s onboard flight software. |
The Alarms That Almost Aborted Apollo 11
Hamilton’s philosophy was put to its most dramatic test in July 1969. As the Apollo 11 lunar module descended toward the Moon with only about three minutes to go, the onboard computer began flashing alarms, signaling it was being overloaded with data.
The software Hamilton’s team had written was designed for exactly this scenario: it could prioritize critical operations when the computer faced excessive demands, discard lower-priority tasks, and recover from unexpected conditions instead of shutting down. The computer kept guiding the lunar module, and the landing went ahead.
President Barack Obama told the story in 2016 when he awarded Hamilton the Presidential Medal of Freedom, noting that with little time to decide, the astronauts and mission control relied on software built to keep working when things went wrong.
The approach was deliberate. Teasel Muir-Harmony, curator of the Apollo Collection at the Smithsonian’s National Air and Space Museum, told NPR that Hamilton’s goal was not simply to build a system that worked when everything went right, but one that could continue working when things went wrong — a principle she baked into the Apollo code years before the term was in wide use.
She Named the Field: “Software Engineering”
When Hamilton started the work, software was widely treated as secondary to hardware — something closer to typing than engineering. She took the opposite view. At a time when computer programming was still an emerging field, Hamilton insisted software had to be carefully engineered, tested, and designed to handle the unexpected, especially when human lives depended on it.
The Smithsonian’s Muir-Harmony says Hamilton helped coin the phrase “software engineering” itself, reflecting her conviction that writing code demanded the same structured discipline as any other branch of engineering. It was a contrarian idea in the 1960s. Today it is the name of an entire industry.
Her teams also developed methods for anticipating errors before they occurred, and for designing systems that could degrade gracefully rather than fail catastrophically — principles that became foundational to safety-critical software.
Recognition and Later Career
Hamilton taught at MIT from 1959 into the mid-1970s and went on to found software companies focused on building highly reliable systems, continuing her work on error prevention long after Apollo. She authored more than 130 publications over her career, and her contributions gradually became recognized as foundational to modern software development.
In 2016, she received the Presidential Medal of Freedom, the United States’ highest civilian honor, for her work on Apollo and her influence on computer science. NASA later honored her contributions, with the space agency’s leadership calling her flight software a pioneering effort whose concepts became the building blocks of modern software engineering.
Tributes followed the announcement of her death. NASA chief Jared Isaacman paid tribute on social media, describing her as a pioneer whose work helped make Apollo and humanity’s first journeys to the Moon possible, according to reports. The MIT statement quoted the university’s Apollo Program professor, who said that calling Hamilton a pioneer and ahead of her time would be a dramatic understatement.
One black-and-white photograph has become the emblem of her career: a young Hamilton, smiling, standing beside a tower of printed code listings taller than she is — the Apollo guidance software her team wrote. The image goes viral online every few years, and has become an icon of computer science history.
![]() |
| Barack Obama presents Margaret Hamilton with the Presidential Medal of Freedom at the White House in 2016. |
What This Means
Hamilton’s death is a milestone for the technology world because she was one of the last living links to the era when software engineering was invented. Her insistence that code should be engineered — specified, tested, and built to survive the unexpected — is now standard practice in everything from aviation and medical devices to the phone in your pocket. Every modern system that keeps working when it is overloaded owes something to the principles she wrote into the Apollo computer.
Her story also matters as a chapter in the history of women in computing. Hired as the first programmer on the Apollo effort at MIT, she rose to lead hundreds of engineers on the program that landed humans on the Moon — in an era when women in technical leadership were vanishingly rare. Her visibility, and that famous photograph, helped make the case for generations of women entering the field.
Finally, there is the matter of credit. For decades, the Apollo story was told mainly as a tale of astronauts and rockets. The growing recognition of Hamilton’s role — culminating in the Presidential Medal of Freedom — reflects a broader correction: the Moon landing was, among other things, a software achievement.
What Happens Next
MIT and NASA are expected to hold memorial tributes in the coming weeks, and the obituaries will likely rekindle public fascination with the Apollo program’s hidden engineering — from the priority-scheduling ideas in the guidance computer to the handwritten code that still circulates among historians.
More broadly, Hamilton’s passing arrives at a moment when software reliability is once again a global obsession, as artificial intelligence systems and autonomous machines take on life-or-death responsibilities. The questions she posed in the 1960s — how to build software that keeps working when things go wrong, and how to prevent errors before they happen — are the same questions engineers are asking now, at far greater scale.
The stack of code beside her in that famous photograph was one answer. The industry she helped name is still working on the rest.




No comments