Margaret Hamilton, software pioneer who guided Apollo moon landings, dies at 90
The computer scientist led the MIT team behind the Apollo flight code and coined the term software engineering.

Margaret Hamilton, the computer scientist who directed the software team that guided NASA’s Apollo missions to the moon, has died at the age of 90.
Hamilton died on 30 September, according to an announcement from the Massachusetts Institute of Technology, where she worked from 1959 until the mid-1970s. She is widely credited with establishing software engineering as a serious technical discipline in its own right—coining the term at a time when programming was often viewed as an afterthought to hardware.
Born in Paoli, Indiana, in 1936, Hamilton studied mathematics and philosophy before moving to Boston in 1959. She began writing weather prediction code at MIT for meteorologist Edward Lorenz, work that fed directly into his pioneering studies on chaos theory. She later wrote tracking software for the SAGE air defence project at Lincoln Laboratory, cutting her teeth on system reliability.
When MIT’s Instrumentation Laboratory won the NASA contract to build the Apollo guidance system in the mid-1960s, Hamilton was the first programmer hired for the project. By 1968, she was assistant director in charge of the Command and Service Module software, managing a division that grew to more than 400 people.
Saving Apollo 11
Hamilton’s insistence on what she called "defensive programming" proved decisive during human spaceflight. In testing, her young daughter Lauren had accidentally triggered a pre-launch sequence called P01 while playing on a simulator, wiping its flight data. NASA managers initially resisted adding code to block the command during flight, insisting trained astronauts would never make such a blunder. But during Apollo 8 in 1968, astronaut Jim Lovell entered that exact command. Hamilton’s team had to patch the flight calculations from the ground, and her safety lockout was promptly adopted.
Her architecture saved the Apollo 11 landing outright in July 1969. Minutes before Neil Armstrong and Buzz Aldrin were due to touch down, the lunar module's computer sounded a 1202 alarm, overwhelmed by radar data triggered by an incorrectly set hardware switch. Because Hamilton had designed the computer's operating software to drop low-priority background tasks when overloaded, the processor kept the thrusters and landing radar running. Mission control allowed the descent to continue, and the crew landed safely.
Establishing a discipline
When Hamilton first started describing her work as "software engineering", colleagues treated it as a running joke. "I fought to bring the software legitimacy so that it—and those building it—would be given its due respect," she recalled years later. "Software eventually and necessarily gained the same respect as any other discipline."
After Apollo, Hamilton left MIT as the lab spun out into Draper Laboratory. She founded Higher Order Software in 1976 and Hamilton Technologies in 1986, creating the Universal Systems Language to automate error-free code design. In 2016, President Barack Obama awarded her the Presidential Medal of Freedom, pointing out that her code helped humanity make giant leaps.
She later found fresh public fame when a photograph of her standing beside a stack of printed Apollo code binders circulated widely on social media, turning her into an enduring icon for women in technology.
Hamilton is survived by her daughter, Lauren, her son-in-law, two grandsons and four great-grandchildren. A memorial service is scheduled for the spring in Cambridge, Massachusetts.
Key numbers
| What | Figure | Source |
|---|---|---|
| Age at death | 90 | MIT |
| Date of death | 30 September | MIT |
| Apollo software staff size under her leadership | More than 400 | MIT |
| Published academic papers | Over 130 | MIT |
In this story
| Name | Role in the story |
|---|---|
| Margaret Hamilton | Pioneering computer scientist and head of the Apollo on-board flight software team who died at 90. |



