
Margaret Hamilton, Apollo software pioneer who guided first Moon landing, dies at 90
The computer scientist who led development of the onboard software for NASA Apollo missions died on 30 September in Cambridge, Massachusetts, leaving an engineering framework that enabled the 1969 lunar landing.
Apollo software leadership
Margaret Hamilton, who led the team that created the onboard flight software for NASA Apollo missions, died on 30 September 2026 at age 90 in a hospital in Cambridge, Massachusetts. Her daughter, Lauren, confirmed her death, and the Massachusetts Institute of Technology announced it on Wednesday. Born in Paoli, Indiana, in 1936, Hamilton studied mathematics at the University of Michigan and earned a degree from Earlham College. She joined MIT in 1959, writing weather prediction programs before developing software to detect enemy aircraft for a United States air defense system. In 1965, Hamilton applied to MIT Instrumentation Laboratory, which had secured a NASA contract in 1961, joining the staff as its initial Apollo programmer.
I was attracted both by the sheer idea and the fact that it had never been done before. I was the first programmer to join and the first woman they hired.
Development and error handling
Hamilton rose to direct the Software Engineering Division at the laboratory, heading a team of 100 engineers by 1968. Her team built software for two 70-pound computers, one in the command module and one in the lunar module, each equipped with 72 kilobytes of storage memory. Because computer science was not yet an established university discipline, developers learned programming through direct practice. Hamilton popularized the term software engineering to place coding on equal footing with hardware development. She placed heavy emphasis on fault detection after her four-year-old daughter caused an Apollo simulator to fail by triggering an unintended command during a visit to the laboratory. Hamilton added safeguards known as the Lauren error to block that sequence from disrupting real flights.
Apollo 11 lunar landing
The system faced its primary test on 20 July 1969 as Neil Armstrong and Buzz Aldrin descended toward the lunar surface in the lunar module Eagle. Minutes before touchdown, radar hardware overloaded the onboard computer with unexpected data, triggering emergency alarms. Hamilton's software design used task prioritization to drop lower-priority radar calculations while protecting critical thruster and navigation functions. The architecture allowed the crew to land safely rather than abort the flight.
It quickly became clear the software was not only informing everyone that there was a hardware-related problem but was compensating for it - restarting and re-establishing the highest priority tasks. The error detection and recovery mechanisms had come to the rescue.
Later ventures and tributes
Hamilton left MIT in 1976 to start her own software business. In 2016, President Barack Obama presented her with the Presidential Medal of Freedom in recognition of her contributions to space exploration. NASA chief Jared Isaacman paid tribute to her work on social media as the agency prepares its Artemis 3 lunar mission, scheduled for 2027. Olivier de Weck, an Apollo Program professor and interim head of MIT Department of Aeronautics and Astronautics, commended her for directing the development of complex technological systems when software engineering was emerging. Hamilton is survived by her daughter, a son-in-law, two grandsons, and four great-grandchildren.
- Born in Paoli, Indiana
- Joins MIT to develop software for weather prediction
- Hired as the first programmer on the Apollo project at MIT
- Becomes director of the Apollo software engineering team
- Apollo 11 lands on the Moon as onboard software manages computer overload
- Leaves MIT to establish her own software company
- Receives Presidential Medal of Freedom from President Barack Obama
- Dies at age 90 in Cambridge, Massachusetts

