Giant Footsteps
Home/Technology & Biz/Margaret Hamilton

๐ŸŒ™Margaret Hamilton

Apollo Moon Landing Software

Technology & Biz1,205 words
Organizations
NASA, Hamilton Technologies, MIT Instrumentation Laboratory
Known for
Apollo onboard flight software
Coined 'software engineering'
Presidential Medal of Freedom (2016)
Field
Software engineeringTechnology
Born in
Paoli, IndianaUnited States
Grew up in
Small towns in Indiana, Michigan and Ohio; Upper Peninsula of Michigan for high schoolUnited States
Pillar groups
Women
Year OneMargaret Hamilton's first programming job ยท 1959In 1959 Margaret Hamilton, a math graduate who had never been near a computer, took a temporary job at MIT programming weather forecasts for the scientist Edward Lorenz. She taught herself to fix programs by poking holes in paper tape, and her work fed into his early studies of chaos.Read it โ†’

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?

  1. Say yes when someone needs a player. She joined the boys' baseball team and had fun.
  2. Start working toward your goals early. She was saving for college at 14.
  3. Speak up for your team. At the copper mine she got the guides a raise.
  4. Love the hard stuff. Abstract math and logic were her favorite subjects, years before she ever saw a computer.

Sources

Year OneSummer 1959 to summer 1961

Margaret Hamilton's first programming job

In 1959 Margaret Hamilton, a math graduate who had never been near a computer, took a temporary job at MIT programming weather forecasts for the scientist Edward Lorenz. She taught herself to fix programs by poking holes in paper tape, and her work fed into his early studies of chaos.

Degree
Math, Earlham College
Job
Programmer for Edward Lorenz, MIT meteorology
Computer
LGP-30, about 800 pounds
The work
Weather-prediction programs
Her plan
Save money for a PhD in math
Next job
SAGE air defense software, 1961

How it started

Margaret Heafield loved abstract math. She studied it at Earlham College in Indiana and planned to become a mathematician. She and her husband agreed that one of them would work while the other studied. He chose law school, so in 1959 they moved to the Boston area, and Margaret looked for a job. She hoped to save money and then earn a PhD in math at Brandeis University. "I wanted to get my Ph.D. in math," she said.

She found a temporary job in the meteorology department at MIT, working for Professor Edward Lorenz, a scientist who studied the weather.

The year, step by step

  • Summer 1959. A loud machine. Lorenz had bought an LGP-30, a computer the size of a desk that weighed about 800 pounds. It was so noisy, like a passing propeller plane, that it got an office of its own. Margaret "hadn't really been near a computer before," she said. Lorenz showed her what he knew about it.
  • Learning by doing. Her job was to write programs that predicted the weather. Few people anywhere had been trained to program, and she learned on the job. She found that where a program sat on the computer's memory drum changed how fast it ran, and she used tricks to make it faster.
  • Fixing the tape. Programs went into the machine on long strips of paper tape full of punched holes. Feeding a broken program back through to fix it was slow. So Margaret learned to read the holes as ones and zeros. She rolled the tape down the hallway and fixed it by hand. "I'd poke holes for ones, and I'd cover up with Scotch tape the others," she said. Lorenz "just got a kick out of it."
  • Long runs. Some programs took hours. She planned the biggest jobs, multiplying large tables of numbers, to run while she went to lunch. Once, at a party at 3 or 4 a.m., she realized a run would not finish by morning. She hurried to the lab with friends to start it.
  • End of 1959. A baby. Her daughter was born near the end of the year, and Margaret kept working.
  • 1961. Training the next programmer. Margaret hired and trained Ellen Fetter, a new math graduate from Mount Holyoke, to take over. In the summer of 1961 she left for a better-paid programming job at MIT's Lincoln Laboratory, on SAGE, the United States' air defense computer system.

The hard parts

  • She had no training in programming, because almost nobody did then. She had to learn on a machine she had never seen before.
  • Fixing mistakes was slow, so she invented her own faster way, by hand, with a pencil and tape.
  • The pay was low. "None of us made that much money at MIT," she said. She needed to save for graduate school, which is why she moved on.
  • She was working while starting a family, with a new baby at the end of 1959.

How year one ended

Margaret had come for a temporary job and found work she loved. "He loved that computer," she said of Lorenz. "And he made me feel the same way about it." Lorenz thanked her in his scientific papers of the early 1960s, which helped start the science of chaos. MIT later called this job her "first entry point into computer programming." In 1965 she joined the MIT lab that wrote the software for the Apollo moon missions.

Think about it

  • Margaret planned to be a mathematician, but a temporary job changed her path. Have you ever started something "just for now" that became important to you?
  • She found the normal way of fixing programs too slow, so she made up her own. What slow job have you found a faster way to do?
  • Before she left, she trained the person who took her place. Why is teaching the next person a good way to finish a job?

Sources

Last updated 2026-11-08Plain text version