Margaret Hamilton, Who Sent Software to the Moon, Dies at 90
Margaret Hamilton, the software engineer whose onboard flight code guided NASA’s Apollo missions and helped land the first humans on the Moon, died on September 30 at the age of 90, her death announced by the Massachusetts Institute of Technology, where she worked from 1959 until the mid-1970s. She is credited with coining the term software engineering and with building the systems that carried the Apollo 11 lunar module safely to the surface in 1969.
To say Margaret Hamilton was a pioneer, to say she was ahead of her time, would be a dramatic understatement, Olivier de Weck, interim head of MIT’s Department of Aeronautics and Astronautics, said in a statement. She not only developed advanced code herself but also led a team in using that nascent technology to develop one of the most complex systems humanity had ever achieved.
From Indiana to the Apollo Program
Born in Paoli, Indiana, in 1936, Hamilton began studying mathematics at the University of Michigan in 1955 before transferring to Earlham College, where she earned a bachelor’s degree in mathematics with a minor in philosophy in 1958. She moved to Boston the following year with her husband, who was pursuing a law degree, and took a temporary job in MIT’s meteorology department, working with professor Edward N. Lorenz on weather prediction software - her first foray into programming, work that would later inform his celebrated research on chaos theory.
She next moved to MIT’s Lincoln Laboratory, writing software for the Semi-Automatic Ground Environment, the United States’ first air defense system. There she began to take an interest in software reliability, a concept that was then largely unexplored.
In 1965, her husband spotted a newspaper advertisement: MIT’s Instrumentation Lab, which had won the NASA contract to build the onboard flight software for Apollo, was seeking people to develop software to send man to the moon. Hamilton applied and was hired as the project’s first female programmer, according to NPR. She started on uncrewed flights before moving to the crewed missions’ onboard software, and by 1968 had risen to assistant director in charge of the Command and Service Module team, leading more than 100 engineers. She was in her early 30s, as were many of her colleagues.
Defensive Programming and the 1202 Alarm
Hamilton’s defining contribution was what is now known as defensive programming: building software that could anticipate and recover from errors on its own. That philosophy was forged partly by accident. Her daughter Lauren, then four years old, once activated a pre-launch program called P01 while playing with the command module simulator, crashing it. Hamilton wrote a warning into the technical documentation and proposed a software fix, but was overruled on the grounds that trained astronauts would never make such a mistake.
During the Apollo 8 mission in 1968, that is precisely what happened: astronaut Jim Lovell inadvertently launched P01 mid-flight, causing the navigational data to vanish. Hamilton’s team resolved the error, and her proposed changes were subsequently integrated.
The approach proved decisive during Apollo 11. Moments before the lunar module Eagle was set to touch down, the onboard computer raised a 1202 error - an overload triggered by a fault in a hardware switch. Hamilton’s priority-driven software shut down unnecessary background tasks so the computer could concentrate on the landing. Houston, trusting the system, allowed the mission to proceed.
Her goal wasn’t simply to build a system that worked when everything went right, Teasel Muir-Harmony, curator of the Apollo Collection at the Smithsonian National Air and Space Museum, told NPR. It was to build a system that could continue working when things went wrong.
Recalling the alarms in a 2009 MIT News interview, Hamilton wrote that she was standing in the lab’s monitoring room when the normal mission sequence was interrupted by priority displays of 1201 and 1202 alarms, giving the astronauts a go/no go decision. She realized the software was not only reporting a hardware problem but compensating for it. With only minutes to spare, the decision was made to go for the landing, she recalled. The rest is history.
The feat was all the more remarkable given the hardware. Programs were stored on the Apollo guidance computer by hand-weaving copper wire through magnetized cores, a painstaking process that earned Hamilton the lab nickname rope mother. As an overseer of that work, she helped turn a 70-pound computer with only 72 kilobytes of memory - a fraction of a modern smartphone - into humanity’s navigator to another world.
A Discipline Named
Hamilton fought to have software treated as a serious engineering discipline rather than an afterthought to hardware. She is widely credited with popularizing the term software engineering to distinguish the field from hardware and other branches of engineering.
When I first started using this phrase, it was considered to be quite amusing, Hamilton told El Pais in 2018. It was an ongoing joke for a long time. They liked to kid me about my radical ideas. Software eventually and necessarily gained the same respect as any other discipline.
That recognition came slowly. Hamilton continued at the Instrumentation Lab into the 1970s, and as the Apollo program wound down, the lab spun out of MIT to become the independent Draper Laboratory. Its president and CEO, Jerry M. Wohletz, said in a statement that Hamilton “left an indelible mark on Draper,” crediting her leadership on the Apollo Guidance Computer’s onboard flight software with helping ensure the astronauts landed safely and returned home.
She authored more than 130 publications and went on to found two companies, Higher Order Software in 1976 and, a decade later, Hamilton Technologies, whose flagship Universal Systems Language was built around error prevention. Her later honors included the NASA Exceptional Space Act Award in 2003, the Presidential Medal of Freedom from Barack Obama in 2016, a Computer History Museum Fellow Award in 2017, and induction into the National Aviation Hall of Fame in 2022.
An Icon of Computing
For a generation of technologists, especially women in computing, Hamilton became an emblem of what was possible. The 1969 photograph of her standing beside towering stacks of Apollo code printouts has circulated widely online, and in 2017 she became an official Lego minifigure as part of the Women of NASA set. In 2015, the Apollo software was added in its entirety to GitHub, where the original guidance code now stands as a public archive of the era.
Her coding foresight and prowess really made that mission a success, Andrew Meade McGee of the Smithsonian National Air and Space Museum told NPR. She created the logical software basis for many of the critical systems we use to maintain our infrastructure today, and that silently power today’s modern aerospace world.
Hamilton herself was characteristically modest. Looking back, we were the luckiest people in the world, she told MIT News in 2009. There was no choice but to be pioneers.
She is survived by her daughter, Lauren Hamilton; her son-in-law, Richard Selesnick; two grandsons; four great-grandchildren; and her siblings John, David, and Kathryn. A memorial service is planned for the spring in Cambridge, Massachusetts.
What to Watch
As NASA pursues a return to the Moon under the Artemis program, Hamilton’s example - that reliable software, built to handle the unknown, is as essential as any rocket engine - remains a guiding lesson. Her code may no longer fly, but the discipline she named now underpins nearly every system on Earth. That, perhaps, is the most enduring of her giant leaps.