← Home

Margaret Hamilton, the Software Engineer Who Programmed the Moon Landing, Dies at 90

Margaret Hamilton, the software engineer who programmed the onboard computers for the Apollo 11 moon landing, died on September 30 at the age of 90 in Cambridge, Massachusetts. Her death was confirmed by the Massachusetts Institute of Technology, where she directed the Software Engineering Division of the Instrumentation Laboratory, responsible for creating the software that guided humanity to the Moon.

Hamilton did more than write brilliant code — she coined the term "software engineering" and transformed it into a professional discipline. When she joined MIT in 1959, writing programs was so novel that very few people in the world knew how to do it systematically. She arrived writing weather prediction software, then moved to the Apollo project and, in 1965, became the first programmer hired for the lunar program.

What she built with her team of 100 engineers was, without exaggeration, the most critical software ever run on a machine. The Apollo Guidance Computer — the AGC — ran on hardware built from magnetic cores threaded through wires, at a time when silicon chips were still a distant idea. Every programming error could mean the difference between landing on the Moon and losing three astronauts in space.

Proof that their work was functioning came on July 20, 1969, just three minutes before landing. The AGC fired a series of processor errors — 1202 and 1201 — indicating the computer was overloaded. Hamilton had programmed the system to prioritize essential tasks and discard secondary processing. The result: the computer ignored the non-critical alarms and maintained landing control. The lunar module Eagle touched down on the Moon. Astronauts Neil Armstrong and Buzz Aldrin survived.

This event saved the mission — and demonstrated, in real time, what Hamilton had argued for years: reliable software requires formal testing processes, rigorous documentation, and task prioritization. The iconic photo of her standing beside a stack of paper with the lunar module's source code became one of the most recognized symbols in computing history.

"To say Margaret Hamilton was a pioneer — to say she was ahead of her time — would be a dramatic understatement," said Olivier de Weck, the Apollo Program Professor at MIT and interim head of the Department of Aeronautics and Astronautics, in a statement to MIT News. "She was a software engineer at a time when that field was in its infancy, and she not only developed advanced code herself but led a team in using that nascent technology to develop one of the most complex systems humanity had ever achieved."

Hamilton's trajectory before Apollo was as extraordinary as her career in engineering itself. Born in Paoli, Indiana, in 1936, she studied mathematics at the University of Michigan and Earlham College, but left a PhD program in mathematics to pursue applied work. In 1961, she joined the SAGE project — the Semi-Automatic Ground Environment air defense system — and later moved to the laboratory that would win NASA's contract. By 1968, she was assistant director in charge of the Command and Service Module team.

The software she led was so robust that it was repurposed for other missions. It was adapted for Skylab and, later, for the Space Shuttle — nearly five decades later, the same prioritization principle Hamilton had implemented was still running in spacecraft. Hamilton received the Presidential Medal of Freedom from President Barack Obama in 2016, and in 2022 she was inducted into the National Aviation Hall of Fame.

Hamilton's technical legacy extends far beyond space missions. The concept of "priority inversion" — when a low-priority task blocks a high-priority one — which she documented and solved during Apollo, became a classic problem in embedded systems and is taught in every software engineering course. The term "software engineering" that she coined stopped being a vague expression and became an academic and professional discipline.

"There was no second chance. We all knew that," Hamilton said in an interview. "Software was a mystery, a black box. Upper management gave us total freedom and trust. We had to find a way and we did."

NASA, MIT, and the computing community have celebrated Hamilton in recent days. NASA Administrator Jared Isaacman wrote on social media that her work "made humanity's first journey to the Moon possible." MIT itself published a detailed tribute on MIT News. And in 2026, with AI agents taking autonomous decisions in critical systems, Hamilton's example on trust, prioritization, and graceful failure takes on entirely new meaning.

What remains, far beyond the space history, is Hamilton's conviction that reliable software is not an accident — it is discipline. In a world where every line of code controls something more complex and more dangerous, that lesson seems more relevant than ever.

She was the only woman at the beginning of the field. And, without knowing it, she was writing the rules the next 60 years of computing would need to follow.

Sources: BBC News, WLKY, MIT News

✓ Independent sources cross-checked and verified before publishing