Margaret Hamilton (née Heafield) grew up surrounded by music, family, and a strong focus on education. She was born in Indiana, but she spent her childhood moving around the Midwest before spending her high school years in the Upper Peninsula. Hamilton enjoyed learning—her mother was a teacher and her father a philosopher. There was no question she would go to college; it was simply assumed.
She graduated from Hancock High School in Michigan in 1954 and decided to attend the University of Michigan. She had been offered a scholarship to an all-girls college as well, but Hamilton felt she needed the real world experience of studying in a co-ed institution. As a child, she played baseball on an all-boys team, and in high school, her least favorite subject was home economics, simply because all the girls were required to take it. Hamilton was used to pushing back against gender norms at the time. She studied mathematics at the university and did well, but she decided to transfer to Earlham College, a small college in Indiana intertwined with her family history. She had relatives who had attended dating back to the 1890s.
At Earlham, Hamilton studied under math professor Florence Long. Hamilton admired her professor's ability to teach and enjoyed the camaraderie she built by inviting her classes to her home for sandwiches, although she noted she was the only girl in the class. Hamilton graduated with degrees in mathematics and philosophy, a nod to her father's profession, and taught math to high school students in Indiana for one year while she waited for her husband (James Cox Hamilton) to finish his degree. They both wanted to study advanced degrees but knew one would have to work while the other studied. James was admitted to Harvard Law School, so they moved to Boston, and Margaret was hired at MIT to work alongside Professor Edward N. Lorenz. Hamilton encountered computers for the first time here, although she remembered hearing about them at a previous job, as well as the rumor that computers would replace everyone and take all the jobs away.
Hamilton worked with several large computers at MIT focused on meteorological models, Professor Lorenz's area of research. After several years, she was hired as a computer programmer and worked with the SAGE (Semi-Automatic Ground Environment) system to detect and track potentially harmful Soviet bombers. During this time, her daughter was young, and she often brought her to the lab at night.
 |
Margaret Hamilton, in 1969, next to "the stack" of operating manuals she wrote during the Apollo missions at NASA. Photo: NASA |
During this time, Hamilton heard about the Apollo program at NASA and knew she wanted the chance to work for the program that would send men to the Moon. This meant delaying grad school again, but she thought the chance to work on Apollo was worth it. Hamilton was hired to help build the software for the onboard computers for the Apollo missions. As she worked, she realized she had to also account for how different systems interfaced. Hamilton was eventually responsible for the systems softward and the command module software. She invented the idea of an offline version of a software update during this time after once updating the main computer with a version that didn't work, affecting every other computer in the department. As the Apollo missions moved into manned missions, Hamilton also took on responsibility for the onboard flight software.
In her oral history interview with the Computer History Museum, Hamilton noted the greatest challenge of this program:
"But there was always one thing that stood
out in my mind being in the onboard flight software was that it was “man rated,” meaning if it
didn’t work a person’s life was at stake if not over. That was always uppermost in my mind and
probably many others as well. It had to be man rated and it had to work the first time. You
couldn’t fly the astronauts up there-- because it was man-machine, interfacing with the
astronauts. You couldn’t fly them up there to test the system, so you had to do it before the fact,
meaning you had to simulate it either in the hardware or the software simulation and hope that
your simulations covered everything."
Hamilton dealt in "what ifs" with the Apollo program, a trait ingrained in her by philosophy sessions with her father. It was the ability to think through the "what if" scenarios that made her such a successful programmer. She also coined the term "software engineering" to distinguish what her team was doing from the hardware engineers. Hamilton's programming also famously saved the Apollo 11 astronauts when the system became overloaded. By anticipating this possibility, she had instructed the programming to drop low-priority tasks so it could continue to steer the spacecraft to the Moon.
After Hamilton's work with the Apollo Missions, she went on to create two companies, Higher Order Software in 1976, and Hamilton Technologies in 1986. During this time, she developed the Universal Systems Language (USL) and served as CEO. She was awarded NASA's Exceptional Space Act Award in 2003 and a Presidential Medal of Freedom in 2016. In 2022, she was inducted into the National Aviation Hall of Fame, and in 2025, the Smithsonian National Air and Space Museum recognized Hamilton with the Michael Collins Trophy for lifetime achievement.
Margaret Hamilton died September 30, 2026, in Cambridge, Massachusetts. Her lifetime of dedication to the field of software engineering, and her work at NASA and beyond, will never be forgotten.