The computer scientist who led the software for the Apollo moon landings, and who became a tour guide in a copper mine at 16
Who Is Margaret Hamilton?
Margaret Hamilton was an American computer scientist. At MIT she led the team that created the onboard flight software for NASA's Apollo missions, including Apollo 11, the first moon landing, in 1969. She is credited with naming a whole field of work: "software engineering." In 2016 President Barack Obama gave her the Presidential Medal of Freedom, the highest award for a civilian in the United States. She died on September 30, 2026, at 90, in Cambridge, Massachusetts.
Giant Footsteps
Birth
Margaret Heafield was born on August 17, 1936, in Paoli, Indiana. Her family left Paoli when she was six weeks old. Her parents were Kenneth and Ruth Heafield. Her father was a college professor who taught English, philosophy and poetry. Her mother was a high school teacher. Margaret was one of four children, with a sister, Kathryn, and two brothers, John and David.
Childhood: Small Towns and Three Pianos
The Heafields moved a lot, around Indiana, Michigan and Ohio. Margaret got used to new classrooms and new towns. They were small places with one main street, where "you knew all of your neighbors," she said.
Her home was full of books and music. Sometimes family members played three pianos at the same time. Her younger sister grew up to be a concert pianist. Margaret's favorite books included Thee, Hannah! and The Upside-Down Town.
Both of her grandfathers were ministers. Her father's father was a Quaker minister. Her father served in the Navy during World War II and later became president of the Michigan Poetry Society. He and Margaret had long talks about big ideas. She felt he treated her ideas as brilliant.
School: Math, Not Home Economics
Margaret loved school and "looked forward to it." Math was her favorite subject, especially the abstract kind: algebra, geometry and logic.
Girls had to take home economics, and she didn't like it. Avoiding it felt like a small rebellion. She was upset when her biology class dissected a frog. She took physics because her small school offered it. "Nobody pushed me in a certain way," she said.
Teen Years: One Girl on the Boys' Team
Margaret spent her high school years in Michigan's Upper Peninsula, in the far north of the state. She sang in the choir, played in the band, rode horses and went dancing. She loved classical music, and she also liked Elvis Presley.
Her small town needed one more player for its baseball team, which was all boys. So Margaret joined. "I was not the best player on the team, but it was fun," she said.
Age 14: Saving for College
Her family was not rich, so Margaret started working young to save money for college. At 14 she worked at a Woolworth's store. She also waited tables in a resort area.
Age 16: The Copper Mine
At 16, Margaret got a job as a tour guide at the Arcadian Copper Mine, an old mine that had become a tourist attraction. In summer, about 1,000 visitors came every day. As the crowds grew, she hired and managed the other guides.
When the guides went on strike, she went to the owner, Arvo Walitalo. "Arvo, these guys are going to leave unless you get them a raise," she told him. The guides got their raise. Later she ran the mine's copper jewelry sales and much of its money. Walitalo had only gone to school through fourth grade.
One day Margaret found a big piece of native copper, pure copper straight from the rock. "I decided that if you find it it's keepers," she said. Walitalo cut it in half, and she kept one half. She worked at the mine through high school and her college summers. She also worked nights at a restaurant called Joe's Chicken Basket.
Age 17: Choosing College
Margaret graduated from Hancock High School in Michigan in 1954. College was expected in her family. Once, to rebel, she told her father she might skip it. "Fine, that's okay," he said. She quickly changed her mind.
She turned down full scholarships to an all-women's college. She wanted a school with both men and women, more like the working world.
After 18
Margaret studied math at the University of Michigan, then moved to Earlham College in Indiana, where her mother had studied. Florence Long, the head of math there, encouraged her love of abstract math. Margaret graduated in 1958 with a math degree and a minor in philosophy, inspired by her father and grandfather.
She planned to go to graduate school, but first she took a job at MIT with the weather scientist Edward Lorenz. "I hadn't really been near a computer before," she said. She learned to write weather-prediction programs on an LGP-30 computer. Then she worked on SAGE, a U.S. air defense system.
In 1965 she joined MIT's Instrumentation Laboratory to work on Apollo. Her team wrote the software for the spacecraft's computers. On July 20, 1969, as Apollo 11 was landing on the moon, alarms called 1201 and 1202 popped up. They meant too many jobs were fighting for the computer's attention. Her team's software was built for this kind of trouble. It restarted and kept the most important work going, and the landing went ahead.
In 1986 she started her own company, Hamilton Technologies. She lived in Cambridge from her early 20s until she died.
Bonus Points
- A famous 1969 photo shows her standing next to a towering stack of printed pages of the Apollo code.
- Her young daughter, Lauren, once crashed a practice mission by pressing keys on the simulator. Margaret wanted a safety fix and wrote a warning: "do not select P01 during flight." On Apollo 8, an astronaut did just that, and her note helped the crew sort it out.
- She named one backup program "Forget It."
- Her daughter remembers her as "a really eccentric and fun character" who collected vintage clothing.
- At 16 she found a chunk of pure copper in a mine, and the owner cut it in half so she could keep part of it.
What Can We Learn From Margaret Before 18?
- Say yes when someone needs a player. She joined the boys' baseball team and had fun.
- Start working toward your goals early. She was saving for college at 14.
- Speak up for your team. At the copper mine she got the guides a raise.
- Love the hard stuff. Abstract math and logic were her favorite subjects, years before she ever saw a computer.
Sources
- Oral History of Margaret Hamilton, interviewed by David C. Brock โ Computer History Museum (2017)
- Margaret Hamilton, who led a software team for NASA's Apollo program, dies at 90 โ Jamie Stengle, Associated Press, via News4JAX (2026)
- Obituary: Margaret Hamilton, who led NASA's Apollo software team โ WBUR (October 9, 2026)
- Margaret Hamilton, Apollo program pioneer and Midwest native, dies at 90 โ FOX 9 (2026)
- Margaret Hamilton (software engineer) โ Wikipedia