Margaret Hamilton Led the NASA Software Team That Landed Astronauts on the Moon - Smithsonian Magazine
Margaret Hamilton Led the NASA Software Team That Landed Astronauts on the Moon Skip to main content Search Shop Newsletters Renew Give a Gift Subscribe Membership i Subscribe Give a Gift Renew Sections Smart News History Science Innovation Arts & Culture Travel At the Smithsonian More from Smithsonian magazine Newsletters Photo Contest Podcast Videos Our Partners Smithsonian Store Smithsonian Journeys Subscribe to Smithsonian magazine and get a FREE tote. Women Who Shaped History A Smithsonian magazine special report Margaret Hamilton Led the NASA Software Team That Landed Astronauts on the Moon Apollo's successful computing software was optimized to deal with unknown problems and to interrupt one task to take on a more important one Alice George | Museums Correspondent March 14, 2019 Share Copy link Email SMS Facebook X Reddit LinkedIn Bluesky Print Add as preferred source Margaret Hamilton stands next to a stack of program listings from the Apollo Guidance Computer in a photograph taken in 1969. Wikimedia Commons American Innovations American Innovations XX Factor | The Woman Who Put Man on the Moon | S10-E1 XX Factor | The Woman Who Put Man on the Moon | S10-E1 Share Share Share Subscribe Subscribe Amazon Music Apple Podcasts CastBox Google Podcasts iHeartRadio Pocket Casts RadioPublic Spotify Stitcher TuneIn RSS Amazon Music Apple Podcasts CastBox Google Podcasts iHeartRadio Pocket Casts RadioPublic Spotify Stitcher TuneIn RSS Download Description × Advertising / | 00:00 / 40:33 | Skip Listen on Listen on Amazon MusicListen on Amazon MusicListen on Amazon Music Listen on Apple PodcastListen on Apple PodcastListen on Apple Podcast Listen on SpotifyListen on SpotifyListen on Spotify Listen on StitcherListen on StitcherListen on Stitcher Privacy Policy American Innovations XX Factor | The Woman Who Put Man on the Moon | S10-E1 Astronauts Neil Armstrong and Buzz Aldrin are preparing to land on the Moon. The whole world is watching live on television. But something is very wrong, their warning alarms are flashing and they don't know what it is. There's only one woman who can fix it: MIT software engineer Margaret Hamilton. This is the first episode of a special series with Smithsonian Magazine highlighting the lives of women inventors to celebrate Women's History Month. Head over to Smithsonian.com/Wondery to go deeper, or find us on Twitter @InnovationsPod. You can binge all episodes of American Innovations exclusively and ad-free on Wondery+. Find Wondery+ in the Wondery App or on Apple Podcasts. See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info. Embed this player on your website using the snippet below Copy On July 20, 1969, as the lunar module, Eagle, was approaching the moon's surface, its computers began flashing warning messages. For a moment Mission Control faced a “go / no-go” decision, but with high confidence in the software developed by computer scientist Margaret Hamilton and her team, they told the astronauts to proceed. The software, which allowed the computer to recognize error messages and ignore low-priority tasks, continued to guide astronauts Neil Armstrong and Buzz Aldrin over the crater-pocked, dusty crust of the moon to their landing. “It quickly became clear,” she later said, “that [the] software was not only informing everyone that there was a hardware-related problem, but that the software was compensating for it.” An investigation would eventually show that the astronauts' checklist was at fault, telling them to set the rendezvous radar hardware switch incorrectly. “Fortunately, the people at Mission Control trusted our software,” Hamilton said. And with only enough fuel for 30 more seconds of flight, Neil Armstrong reported, “The Eagle has landed.” The achievement was a monumental task at a time when computer technology was in its infancy: The astronauts had access to only 72 kilobytes of computer memory (a 64-gigabyte cell phone today carries almost a million times more storage space). Programmers had to use paper punch cards to feed information into room-sized computers with no screen interface. As the landing occurred, Hamilton, then 32, was hooked up to Mission Control from MIT. “I was not concentrating on the mission, per se,” Hamilton confessed. “I was concentrating on the software.” After everything worked properly, the weight of the moment hit her. “My God. Look what happened. We did it. It worked. It was exciting.” Hamilton, who popularized the term “software engineering,” took some chiding for it. Critics said it inflated her work's importance, but today, when software engineers represent a fervently sought-after segment of the work force, no one is laughing at Margaret Hamilton. The Smithsonian's National Air and Space Museum holds in its collections the Apollo Flight Guidance Computer Software Collection (above, page number 45506-A) created by Hamilton and her team. National Air and Space Museum When the Apollo missions were planned, the process of writing code began on large sheets of paper. A keypunch operator would create holes in paper cards, keying the codes into what were called punch cards. “Not too many people know what punch cards are anymore, but that's how you programmed it,” says Paul Ceruzzi, a curator emeritus at the Smithsonian's National Air and Space Museum, who has known Hamilton for the past two decades. The museum holds in its collections the Apollo Flight Guidance Computer Software Collection created by Hamilton. The archival material includes printout sheets, known as “the listings,” which show results of guidance equation calculations. When the computer's output identified no problems, software engineers would “eyeball” the listings, verifying that no issues required attention. Once everything looked good, the code was sent to a Raytheon factory, where mostly women—many of them former employees of New England textile mills— wove copper wires and magnetic cores into a long “rope” of wire. With coding written in ones and zeroes, the wire went through the tiny magnetic core when it represented a one, and it went around the core when it represented a zero. This ingenious process created a rope that carried software instructions. The women who did the work were known as LOL, Hamilton told Ceruzzi, not because they were funny; it was short for “little old ladies.” Hamilton was called “rope-mother.” Hamilton, says curator Teasel Muir-Harmony “was also really expansive as a programmer (above, while working on Apollo) coming up with solutions for problems, very innovative, very outside-the-box thinking." Wikimedia Commons The rope compensated for the Apollo computers' limited memory. The process created “a very robust system,” according to Teasel Muir-Harmony, a curator also at the Air and Space Museum and author of the new book, Apollo to the Moon: A History in 50 Objects. " That was one of the reasons why the Apollo Guidance Computer worked flawlessly throughout every single mission.” A math lover from an early age, Hamilton transformed that affinity, becoming an expert in software writing and engineering following her departure from college. When her husband was attending law school at Harvard in 1959, she took a job at MIT, learning to write software that would predict the weather. A year later, she began programming systems to locate enemy aircraft in the Semi-Automatic Ground Environment (SAGE) program. It was in the mid-1960s that Hamilton heard that MIT “had announced that they were looking for people to do programming to send man to the moon, and I just thought, 'Wow, I've got to go there.'” She had planned to begin graduate school at Brandeis University for a degree in abstract math, but the U.S. space program won her heart. Thanks to the success of her work at SAGE, she was the first programmer hired for the Apollo project at MIT. In 1965, she became head of her own team at the MIT Instrumentation Laboratory (later known as Draper Laboratory), which was dedicated to writing and testing software for Apollo 11's two 70-pound computers—one aboard the command module, Columbia, and one aboard the lunar module, Eagle. In 2016, President Barack Obama awarded Hamilton the Medal of Freedom, noting that “her example speaks of the American spirit of discovery.” Official White House photo by Lawrence Jackson “What I think about when I think about Margaret Hamilton is her quote that 'there was no choice but to be pioneers,' because I think that really embodies who she was and her significance in this program,” Muir-Harmony says. “She was a pioneer when it came to development of software engineering and.... a pioneer as a woman in the workplace contributing to this type of program, taking on this type of role.” Then, as now, most software engineers were male, but she never let that stand in her way. “She has this mentality that there should be equal rights and equal access. And it wasn't about men and women. It was about people being able to pursue the kinds of jobs they want to pursue and take on the challenges they want to take on,” Muir-Harmony says. “She was also really expansive as a programmer, coming up with solutions for problems, very innovative, very outside-the-box thinking. That, I think, is reflected in her career choices and the work she did in the lab.” In a bid to make software more reliable, Hamilton sought to design Apollo's software to be capable of dealing with unknown problems and flexible enough to interrupt one task to take on a more important one. In her search for new ways to debug a system, she realized that sound could serve as an error detector. Her program at SAGE, she noted, sounded like a seashore when it was running. Once, she was awakened by a colleague, who said that her program “no longer sounded like a seashore!” She rushed into work eager to find the problem and to start applying this new form of debugging to her work. In 2017, Lego introduced a Margaret Hamilton action figure, part of the Women of NASA collection (above at the Air and Space Museum). National Air and Space Museum As a working mother, she took her young daughter to the MIT Instrumentation Laboratory with her at night and on weekends. One day, her daughter decided to “play astronaut” and pushed a simulator button that made the system crash. Hamilton realized immediately that the mistake was one that an astronaut could make, so she recommended adjusting the software to address it, but she was told: “Astronauts are trained never to make a mistake.” During Apollo 8's moon-orbiting flight, astronaut Jim Lovell made the exact same error that her young daughter had, and fortunately, Hamilton's team was able to correct the problem within hours. But for all future Apollo flights, protection was built into the software to make sure it never happened again. Over time, Hamilton began to view the whole mission as a system: “part is realized as software, part is peopleware, part is hardware.” The Moon Landing Was the Television Event of the Decade Watch onYouTube Logo Hamilton's work guided the remaining Apollo missions that landed on the moon as well as benefitting Skylab, the first U.S. space station, in the 1970s. In 1972, she left MIT and started her own company, Higher Order Software. Fourteen years later, she launched another company, Hamilton Technologies, Inc. At her new firm, she created Universal Systems Language, another step in making the process of designing systems more dependable. NASA honored Hamilton with the NASA Exceptional Space Act Award in 2003, acknowledging her contributions to software development and granting her the biggest financial prize that the agency had ever awarded to one person until that time—$37,200. In 2016, President Barack Obama awarded her the Medal of Freedom, noting that “her example speaks of the American spirit of discovery that exists in every little girl and little boy who know that somehow to look beyond the heavens is to look deep within ourselves.” Hamilton's work may not be widely known to those outside the scientific community, though her achievements have been memorialized with the 2017 introduction of a Lego Margaret Hamilton action figure, part of the Women of NASA collection. It portrays Hamilton as a small, big-haired, bespectacled hero whose Apollo code stacked up to be taller than she was. The National Air and Space Museum now holds the prototypes for these action figures. Software engineers are not generally viewed as courageous action figures, but Hamilton is no stranger to the bravery required for heroism. She remembers “being fearless, even when the experts say: 'No, this doesn't make sense,' they didn't believe it, nobody did. It was something that we were dreaming of happening, but it became real.” You Might Also Like How Neil, Buzz and Mike Got Their Workouts in on Their Way to the Moon and Back June 24, 2019 The Best Books About the Apollo Program and Landing on the Moon July 16, 2019 At 21, Ann Montgomery Became a Lead Engineer at NASA, Managing the Cameras and Other Crucial Gear Used on the Moon July 2, 2019 How Apollo 8 'Saved 1968' December 11, 2018 Rita Rapp Fed America's Space Travelers March 27, 2019 Alice George | | Read More Alice George, Ph.D. is an independent historian with a special interest in America during the 1960s. A veteran newspaper editor, she is recently the author of The Last American Hero: The Remarkable Life of John Glenn and has authored or co-authored seven other books, focusing on 20th-century American history or Philadelphia history. Get the latest on what's happening At the Smithsonian in your inbox. Sign Up Email Powered by Salesforce Marketing Cloud ( Privacy Notice / Terms & Conditions) Sponsored Content Dianomi LogoDianomi Logo Advertise Here Charles Schwab Schwab's Market Update The Motley Fool Missed the SpaceX IPO? Consider This Stock Instead Charles Schwab Gambler's Blues: Betting Isn't Investing The Motley Fool 48-Year-Old CEO Puts $2.6B on 1 Stock TradeStation Leverage TradeStation's platform designed for self-directed traders. FinanceBuzz 11 Dumb Mistakes The Middle-Class Can't Afford Right Now in New York . Charles Schwab How to Earn and Maximize Travel Points Charles Schwab Schwab's Monthly Stock Sector Outlook Charles Schwab How to Earn and Maximize Travel Points Charles Schwab Moving Abroad: Finanical Checklist and Tips Charles Schwab Gambler's Blues: Betting Isn't Investing More about: Air and Space Museum Apollo at 50: People Apollo Program Computer Science Women in Science Women's History Follow Us Explore Smart News History Science Innovation Arts & Culture Travel At the Smithsonian Photo Contest Podcast Video Subscription Subscribe Give a gift Renew Manage My Account Newsletters Sign Up About About Us Advertising Contact Us Content Licensing FAQ Feedback Internships & Employment Member Services Smithsonian Institution Staff Our Partners Smithsonian.com Smithsonian Store Smithsonian Journeys Smithsonian Channel Smithsonian Books Smithsonian Membership © 2026 Smithsonian Magazine Privacy Statement [5/20/25] Cookie Policy [5/20/25] Terms of Use Advertising Notice Your Privacy Choices Cookie Settings Privacy Preference Center Like many websites, when you visit our website, it may store or retrieve information on your browser, mostly in the form of cookies. Cookies help us identify your device or browser. We use this information to make the site work as you expect it to, as well as to give you a more personalized web experience. You can choose not to allow certain cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer. More information Allow All Manage Consent Preferences Strictly Necessary Cookies Always Active These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will then not work. Performance Cookies [x] Performance Cookies These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance. Functional Cookies [x] Functional Cookies These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly. Social Media Cookies [x] Social Media Cookies These cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools. Targeting Cookies [x] Targeting Cookies These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will still see ads, but they will not be targeted based on your online activities. Cookie List Clear [-] checkbox label label Apply Cancel Consent Leg.Interest [-] checkbox label label [-] checkbox label label [-] checkbox label label Reject All Confirm My Choices