
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.
Scan with your iPhone cameraor open it in your browser
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.
| Born | 1936 |
|---|---|
| Died | 2026 |
| Known for | Apollo flight software engineer |
| The lesson | Plan for the thing that goes wrong. |
| Topics | Space and rockets, Inventors |
| The book | 10 pages, 3 reading levels, read aloud |
Read the first pages free

Many years ago, nobody had ever been to the Moon. Then America's leader asked for something huge: send people to the Moon, and bring them safely home!
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?
In May 1961, President John F. Kennedy challenged the United States to land a person on the Moon and return them safely to Earth before the end of the decade. Nobody had ever done anything like it. Getting there, landing and coming home would take rockets, spacecraft and astronauts, and also something nobody could see or hold: software, the instructions that tell a computer what to do.
Page 1 of 10

Margaret wrote instructions for computers, like recipes that say what to do. Some helped guess the weather! Then she heard about the Moon trip. It sounded so exciting, and she wanted to help!
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!
At MIT, Margaret Hamilton wrote software that predicted the weather. Then, while working on a project called SAGE, she began to understand how important it is for software to be stable: to keep running without crashing. In 1965, she learned about Apollo, the program to reach the Moon. It sounded very exciting, and she wanted to be part of it.
Page 2 of 10
Margaret Hamilton: a timeline of true facts
- Before Apollo, astronauts in the Gemini program flew by hand using control sticks. source
- Apollo astronauts communicated with their spacecraft computer using a number display and keyboard. source
- Much of the Apollo computer's software was stored in memory made by weaving wires around tiny magnetic cores. source
- 1961 President Kennedy challenged the United States to land a person on the Moon and bring them safely home before the decade ended. source
- When Hamilton began working on Apollo, people did not take software development as seriously as other kinds of engineering. source
- 1959 At MIT, Hamilton wrote software to predict the weather. source
- Hamilton learned how important it was for software to keep working without crashing. source
- 1965 Hamilton wanted to join Apollo because a Moon program sounded exciting. source
- Some of the software and programming methods needed for Apollo had to be invented from scratch. source
- The computer's memory was limited, and adding more memory was expensive. source
- Hamilton's first Apollo program involved tables of Moon landmarks for a spacecraft without a crew. source
- After that spacecraft launched, the team discovered that the tables had been entered backward. source
- For another mission, Hamilton wrote a backup program that people did not expect to use. source
- The unlikely trouble happened, and Hamilton's backup program took over. source
- Hamilton led the team that wrote and tested software for the Apollo spacecraft's command and lunar modules. source
- Hamilton designed important displays that could alert astronauts when something went wrong. source
- Hamilton thought about how astronauts would use the software and what mistakes people might make. source
- 1969 Three minutes before the Apollo 11 lander reached the Moon, several computer alarms went off. source
- 1969 The alarms meant the computer could not finish all its tasks at once and had to put some off. source
- 1969 The software recovered by dropping less important jobs so it could finish the crucial work of guiding the lander. source
- 1969 The team in mission control gave the landing a go, and Apollo 11 landed successfully. source
- Hamilton's team gave each software process a priority so events could happen in the right order and at the right time. source
- Hamilton's solution for a possible display mix-up was to have astronauts count to five before pressing a button. source
- 1969 Armstrong and Aldrin walked on the Moon, and the crew returned safely to Earth. source
- Apollo's guidance computer software influenced later spacecraft and aircraft systems. source
- 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

Read the whole book tonight.
On iPhone, iPad and Android, and in any web browser.
Scan with your iPhone cameraor open it in your browser
Space and rockets for kids · Inventors for kids · Women inventors for kids · All heroes




