tumbly
Cover of Margaret Hamilton Plans for Trouble
Builders

Margaret Hamilton for kids: a true picture book

Margaret Hamilton Plans for Trouble. 10 pages, fact-checked, at three reading levels, read aloud.

Margaret Hamilton (1936–2026)

The lesson: Plan for the thing that goes wrong.

Books about space and rockets

Who was Margaret Hamilton?

Margaret Hamilton (1936–2026) was an American computer scientist and software engineer who led the MIT team that wrote the flight software for NASA's Apollo missions to the Moon. During the Apollo 11 landing in 1969, the computer got overloaded, and her team's software dropped less important jobs and kept the landing tasks running.

Born1936
Died2026
Known forApollo flight software engineer
The lessonPlan for the thing that goes wrong.
TopicsSpace and rockets, Inventors
The book10 pages, 3 reading levels, read aloud

Read the first pages free

A 1960s family sits on their porch at night looking up at a big bright Moon over the rooftops: a father, two small boys…

Long before you were born, President John F. Kennedy gave America a giant goal. Land a person on the Moon and bring them safely home, all before the 1960s were over! Nobody had ever been to the Moon. How could anyone get there and back?

Page 1 of 10

Margaret, a young programmer with long dark hair and glasses in early-1960s clothes, types at a desk-sized LGP-30 computer…

At MIT, Margaret Hamilton wrote computer programs that helped predict the weather. On another project, she learned how important it is for a program to keep working without crashing. Then, in 1965, she heard about Apollo, the Moon program. It sounded exciting, and she wanted to be part of it!

Page 2 of 10

Margaret Hamilton: a timeline of true facts

  1. Before Apollo, astronauts in the Gemini program flew by hand using control sticks. source
  2. Apollo astronauts communicated with their spacecraft computer using a number display and keyboard. source
  3. Much of the Apollo computer's software was stored in memory made by weaving wires around tiny magnetic cores. source
  4. 1961 President Kennedy challenged the United States to land a person on the Moon and bring them safely home before the decade ended. source
  5. When Hamilton began working on Apollo, people did not take software development as seriously as other kinds of engineering. source
  6. 1959 At MIT, Hamilton wrote software to predict the weather. source
  7. Hamilton learned how important it was for software to keep working without crashing. source
  8. 1965 Hamilton wanted to join Apollo because a Moon program sounded exciting. source
  9. Some of the software and programming methods needed for Apollo had to be invented from scratch. source
  10. The computer's memory was limited, and adding more memory was expensive. source
  11. Hamilton's first Apollo program involved tables of Moon landmarks for a spacecraft without a crew. source
  12. After that spacecraft launched, the team discovered that the tables had been entered backward. source
  13. For another mission, Hamilton wrote a backup program that people did not expect to use. source
  14. The unlikely trouble happened, and Hamilton's backup program took over. source
  15. Hamilton led the team that wrote and tested software for the Apollo spacecraft's command and lunar modules. source
  16. Hamilton designed important displays that could alert astronauts when something went wrong. source
  17. Hamilton thought about how astronauts would use the software and what mistakes people might make. source
  18. 1969 Three minutes before the Apollo 11 lander reached the Moon, several computer alarms went off. source
  19. 1969 The alarms meant the computer could not finish all its tasks at once and had to put some off. source
  20. 1969 The software recovered by dropping less important jobs so it could finish the crucial work of guiding the lander. source
  21. 1969 The team in mission control gave the landing a go, and Apollo 11 landed successfully. source
  22. Hamilton's team gave each software process a priority so events could happen in the right order and at the right time. source
  23. Hamilton's solution for a possible display mix-up was to have astronauts count to five before pressing a button. source
  24. 1969 Armstrong and Aldrin walked on the Moon, and the crew returned safely to Earth. source
  25. Apollo's guidance computer software influenced later spacecraft and aircraft systems. source
  26. Over time, software engineering gained respect as a technical field. source

Questions kids ask about Margaret Hamilton

What was Margaret Hamilton known for?

Margaret Hamilton is known for leading the development of the onboard flight software for NASA's Apollo missions, which landed astronauts on the Moon. She directed the Software Engineering Division at the MIT Instrumentation Laboratory. source

What did Margaret Hamilton do for Apollo 11?

Just before Apollo 11 landed on the Moon in 1969, the lander's computer got overloaded and set off alarms. The software made by Hamilton's team let the computer restart, drop unimportant tasks and keep guiding the astronauts to a safe landing. source

Did Margaret Hamilton coin the term software engineering?

Yes, she is credited with coining it. She began using the term software engineering during the early Apollo missions, when many people did not take software seriously. She wanted writing software to be respected as real engineering, like other kinds. source

When did Margaret Hamilton die?

Margaret Hamilton died on September 30, 2026, at a hospital in Cambridge, Massachusetts. She was 90. The head of NASA said her work helped make humanity's first journeys to the Moon possible. source

3 reading levels

  • Read to me (ages 3–5)
  • Read together (ages 6–8)
  • I'll read (ages 9–12)

The same true story, written three ways. Little kids hear short, bouncy lines; big kids get the details and the numbers.

Quiz time

What did Margaret want to be part of?

Show the answer

The trip to the Moon.

Try this at home

  • Make a list of jobs for getting ready in the morning and number them from most to least important. Now pretend you only have two minutes: which jobs stay, and which can you drop?
  • Weave a piece of yarn through and around a row of cereal rings or beads, the way Apollo's memory was woven from wires and tiny rings.
  • Play Count to Five: a grown-up holds up a warning card, and you must count to five before you press the pretend button. Did counting help you pick the right one?

More true heroes

Build one with bricks

Tumbly InventorsOn the App StoreOn Google PlayNo sign-up Download on the App StoreGet it on Google PlayFirst pages free