Margaret Hamilton NYT
World

The woman whose software guided the Apollo missions has died

Hamilton was a young mathematician at the Massachusetts Institute of Technology in the early 1960s, putting her husband through law school by working in a computer lab. When she learned that MIT was designing in-flight computers for the moon mission, she eagerly joined the team.

New York Times

NEW YORK: Margaret Hamilton, who led the 100-person team that wrote the onboard software for the Apollo missions, guiding Neil Armstrong and Buzz Aldrin to a safe landing on the moon, died Sept. 30 in Cambridge, Massachusetts. She was 90.

Her death, in a hospital, was confirmed by her daughter, Lauren.

Hamilton was a young mathematician at the Massachusetts Institute of Technology in the early 1960s, putting her husband through law school by working in a computer lab. When she learned that MIT was designing in-flight computers for the moon mission, she eagerly joined the team.

She was the first female programmer hired to work on the Apollo project, housed at MIT’s Instrumentation Laboratory, in 1965. Her skills led to her promotion to director of software engineering on the project, which developed the two 70-pound onboard computers for the Apollo flights: one in the command module, which carried the astronauts from Earth, and the second in the lunar module, which set down on the moon’s surface.

Hamilton, who would bring her young daughter to work on weekends and evenings, is credited with popularizing the term “software engineering” to describe the complexity of the work her team did, thus elevating software coding to a status equal to hardware design.

A 1969 photograph of the 5-foot-4-inch Hamilton standing beside a head-high stack of printed code developed for the moon landing has been widely shared on social media in recent years.

Primary navigation for the Apollo flights was guided from Houston on mainframe IBM computers. But the onboard Apollo Guidance Computer that the MIT lab created was a crucial cog.

Developing its software was a major lift in an era when computers had limited memory. The onboard computers contained only 72 kilobytes of storage memory (an iPhone 16, by comparison, can have more than 7 million times as much storage).

As Apollo 11’s lunar module, Eagle, touched down on the moon on July 20, 1969, Hamilton, then 32, was patched into Mission Control in Houston from MIT.

“I was not concentrating on the mission per se; I was concentrating on the software,” she recalled in a 2017 interview for the Computer History Museum. She compared the moment before touchdown to the instant before death when a person’s life is said to flash before them. “I could see the Apollo life, just: ‘Look what happened. We did it. It worked,’” she recalled. “It was exciting.”

But it almost didn’t happen. As Eagle neared the moon, its onboard computer famously flashed alarms, and Mission Control was faced with a decision about whether to abort the landing.

One of the astronauts, according to some historians, flipped a switch that overloaded the computer’s processing unit, which set off the alarms. Hamilton had foreseen just such an event. Her software told the onboard computer to prioritize essential tasks and cancel less important ones. The alarm was the signal that the procedure had occurred. Houston chose to continue the mission, and Eagle’s computer guided it to a safe landing on the Sea of Tranquility.

“If the computer hadn’t recognized this problem and taken recovery action, I doubt if Apollo 11 would have been the successful moon landing it was,” Hamilton wrote in a 1971 letter to a computer magazine, Datamation.

Hamilton worked on the six lunar landing missions from 1969 to 1972. Her programming also contributed to Skylab, America’s first space station, launched in 1973, and to the early design of the space shuttle. She left MIT to found a company, Higher Order Software, in 1976, as well as a second firm a decade later, Hamilton Technologies.

In 2016, President Barack Obama awarded Hamilton the Presidential Medal of Freedom. Its citation reads that her work for NASA “set the foundation for modern, ultrareliable software design and engineering.”

In 2019, on the 50th anniversary of the moon landing, Google trained more than 100,000 mirrors at its Ivanpah solar power farm in the Mojave Desert to create a nighttime portrait in reflected moonlight of Hamilton, bigger than Central Park.

Margaret Elaine Heafield was born on Aug. 17, 1936, in Paoli, Indiana, the oldest of four children of Kenneth and Esther (Partington) Heafield. The family moved to Michigan’s Upper Peninsula. Her mother was a high school teacher, and her father was a poet and a college professor of English and philosophy.

Margaret enrolled in the University of Michigan before transferring to Earlham College in Richmond, Indiana, where she received a bachelor’s degree in mathematics in 1958.

The same year, she married James Hamilton, also an Earlham student. The couple moved to Cambridge, Massachusetts, where their plan was for Hamilton to support her husband in law school and then to have him pay the bills while she earned a doctorate in math and became a professor.

Instead, her computer work led her in a starkly different direction.

Her first job at MIT, in 1959, was in the meteorology department for Edward Norton Lorenz, the founder of modern chaos theory, for whom she helped develop software to predict weather.

In 1961 she moved to an MIT team working for the Air Force on a system known as SAGE to track enemy aircraft. She was assigned a puzzle given to all new programmers: to decipher a program no one could get to work, whose author had left notes in Latin and Greek. Hamilton was the first person to get the program to run.

Based on her work on SAGE, she was hired for the MIT Apollo computer project, led by a professor of aeronautical engineering, Charles Stark Draper, who had won the NASA contract for the navigation and guidance system for the moon flight, announced by President John F. Kennedy in 1961.

Hamilton was initially the only woman on the programming team, she recalled at a 2021 conference about the history of the Apollo computers.

She became known as the “rope mother,” because of the unusual way code was stored on the in-flight computers, in an era before the wide use of silicon chips.

Programs were written in binary arithmetic, a series of 1s and 0s. The digits were stored using copper wires woven around tiny doughnut-shaped material called cores. A wire passing through a core was read as a 1 and a wire that bypassed a core was a 0. The long assemblages of cores and threaded wire were called ropes.

The ropes were woven by women capable of fine hand work, many of whom had worked in New England textile mills. Hamilton, who was responsible for getting everything right, was the “rope mother.” (A 1965 film shows how the MIT-designed computers were built at Raytheon’s space division plant in Waltham, Massachusetts).

Her first marriage ended in divorce in 1967. Two years later, she married Daniel Lickly, a supervisor on the MIT Apollo project, who was responsible for hiring her. They divorced in the early 1970s.

From the late ’70s, Hamilton was the partner of Ron Hackler, a musician she met when he helped move her office and then trained in systems engineering and was employed at her company Hamilton Technologies, which developed software. He died in 2025.

Besides her daughter, Lauren, Hamilton is survived by two grandsons, four great-grandchildren and her siblings John, David and Kathryn Heafield.

Govt slams Elon Musk's allegations; says fair, non-discriminatory rules in place for satcom

Rajinikanth can’t believe his ‘dear friend’ Nana Patekar is ‘no longer with us’: May his soul rest in peace

TNPDCL makes fresh bid to install 1.74 crore smart meters

ISRO to build human space analog habitat in Bengaluru

TN govt tells AAI Parandur airport project is off, no new site finalised yet

SCROLL FOR NEXT