Margaret Hamilton: The 1960's Genius Programmer Who Made the Apollo 11 Moon Landing Possible

By Melita Clarice

28 NOV 2024

During the Apollo 11 mission, Margaret Hamilton identified and corrected a critical error  on the Apollo Guidance Computer that could have jeopardized the safe landing of Buzz Aldrin and Neil Armstrong during their historic mission.

Margaret Hamilton stands next to a stack of program listings from the Apollo Guidance Computer in a photograph taken in 1969 (Left Picture Credit: Wikimedia Commons) Margaret Hamilton in an Apollo Command Module (Right Picture Credit: NASA)

On July 20, 1969, during the Apollo 11 mission, the lunar module Eagle faced a critical problem. As it descended toward the moon, the onboard computer began flashing warning signals. With only 30 seconds of fuel left, the mission was on the brink of failure. But thanks to the software created by Margaret Hamilton and her team, the system was able to handle the situation and guide Neil Armstrong and Buzz Aldrin to land safely.


This was a huge accomplishment, especially considering how basic computers were in the 1960s. The Apollo spacecraft’s computer only had 72 kilobytes of memory—far less than what we use on modern phones. Programmers had to use punch cards to input data, and the computers were so big that they took up entire rooms. Despite these limitations, Hamilton and her team developed software that could prioritize important tasks and fix errors automatically.


Margaret Hamilton, just 32 years old at the time, led the software development team at MIT. Her journey to NASA started with her love for math and problem-solving. After graduating, she worked at MIT on weather prediction software and systems to track enemy aircraft. When she heard NASA was hiring programmers for the moon missions, she knew she had to be part of it, even though it meant postponing graduate school.


Hamilton’s work was not just about coding; she focused on making the software handle unexpected problems. For example, her young daughter once accidentally crashed a simulator by pressing the wrong button. Hamilton suggested adding safety features to prevent such mistakes, but her idea was dismissed because “astronauts wouldn’t make mistakes.” Later, during the Apollo 8 mission, an astronaut made the same mistake, proving Hamilton’s idea was right. This led to updates in the software for future missions.

No Ads Available

In 2016, President Barack Obama awarded Hamilton the Medal of Freedom (left) In 2017, Lego introduced a Margaret Hamilton action figure, part of the Women of NASA collection (Right Picture Credit: National Air and Space Museum)

The process of creating the software was extremely detailed. The code was written on paper, then turned into punch cards. These cards were used to create “ropes” by weaving wires through magnetic cores—if the wire went through the core, it was a “1,” and if it went around, it was a “0.” The women who built these ropes, called “little old ladies” or “LOLs,” played an important role in making the software reliable.


Hamilton’s software didn’t just help with the Apollo 11 mission. It also supported other Apollo missions and Skylab, the first U.S. space station. She even came up with the term “software engineering” to describe her work. Though some people thought it sounded too fancy at the time, it’s now a widely used term in tech.


In 1972, Hamilton left MIT to start her own company, where she continued to improve how software is designed. Over the years, she received many awards for her contributions, including NASA’s Exceptional Space Act Award and the In 2016, she received the Presidential Medal of Freedom from Barack Obama, the highest civilian honor in the United States. She even became a LEGO figure as part of a collection celebrating women in NASA.


Margaret Hamilton’s story is one of innovation and determination. Her work helped land astronauts on the moon and set new standards for software development, showing how one person’s ideas can make a lasting impact on the world.