Margaret Elaine Hamilton (; born August 17, 1936) is an American
computer scientist
A computer scientist is a scientist who specializes in the academic study of computer science.
Computer scientists typically work on the theoretical side of computation. Although computer scientists can also focus their work and research on ...
. She directed the Software Engineering Division at the
MIT Instrumentation Laboratory, where she led the development of the on-board flight software for
NASA
The National Aeronautics and Space Administration (NASA ) is an independent agencies of the United States government, independent agency of the federal government of the United States, US federal government responsible for the United States ...
's
Apollo Guidance Computer
The Apollo Guidance Computer (AGC) was a digital computer produced for the Apollo program that was installed on board each Apollo command module (CM) and Apollo Lunar Module (LM). The AGC provided computation and electronic interfaces for guidanc ...
for the
Apollo program
The Apollo program, also known as Project Apollo, was the United States human spaceflight program led by NASA, which Moon landing, landed the first humans on the Moon in 1969. Apollo followed Project Mercury that put the first Americans in sp ...
. She later founded two software companies, Higher Order Software in 1976 and Hamilton Technologies in 1986, both in
Cambridge, Massachusetts
Cambridge ( ) is a city in Middlesex County, Massachusetts, United States. It is a suburb in the Greater Boston metropolitan area, located directly across the Charles River from Boston. The city's population as of the 2020 United States census, ...
.
Hamilton has published more than 130 papers, proceedings, and reports, about sixty projects, and six major programs. She coined the term "
software engineering
Software engineering is a branch of both computer science and engineering focused on designing, developing, testing, and maintaining Application software, software applications. It involves applying engineering design process, engineering principl ...
", stating "I began to use the term 'software engineering' to distinguish it from hardware and other kinds of engineering, yet treat each type of engineering as part of the overall
systems engineering
Systems engineering is an interdisciplinary field of engineering and engineering management that focuses on how to design, integrate, and manage complex systems over their Enterprise life cycle, life cycles. At its core, systems engineering uti ...
process."
On November 22, 2016, Hamilton received the
Presidential Medal of Freedom
The Presidential Medal of Freedom is the highest civilian award of the United States, alongside the Congressional Gold Medal. It is an award bestowed by decision of the president of the United States to "any person recommended to the President ...
from president
Barack Obama
Barack Hussein Obama II (born August 4, 1961) is an American politician who was the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, he was the first African American president in American history. O ...
for her work leading to the development of on-board flight software for NASA's Apollo Moon missions.
Early life and education
Margaret Elaine Heafield was born August 17, 1936, in
Paoli, Indiana,
to Kenneth Heafield and Ruth Esther Heafield ().
The family later moved to
Michigan
Michigan ( ) is a peninsular U.S. state, state in the Great Lakes region, Great Lakes region of the Upper Midwest, Upper Midwestern United States. It shares water and land boundaries with Minnesota to the northwest, Wisconsin to the west, ...
, where Margaret graduated from
Hancock High School in 1954.
She studied mathematics at the
University of Michigan
The University of Michigan (U-M, U of M, or Michigan) is a public university, public research university in Ann Arbor, Michigan, United States. Founded in 1817, it is the oldest institution of higher education in the state. The University of Mi ...
in 1955 before transferring to
Earlham College
Earlham College is a Private college, private Liberal arts colleges in the United States, liberal arts college in Richmond, Indiana. The college was established in 1847 by the Religious Society of Friends (Quakers) and has a strong focus on Quake ...
, where her mother had been a student.
She earned a BA in mathematics with a minor in philosophy in 1958.
She cites Florence Long, the head of the math department at Earlham, as helping with her desire to pursue abstract mathematics and become a mathematics professor.
She says her poet father and headmaster grandfather inspired her to include a minor in philosophy in her studies.
Career
In Boston, Hamilton initially intended to enroll in graduate study in
abstract mathematics at
Brandeis University
Brandeis University () is a Private university, private research university in Waltham, Massachusetts, United States. It is located within the Greater Boston area. Founded in 1948 as a nonsectarian, non-sectarian, coeducational university, Bra ...
.
However, in mid-1959, Hamilton began working for
Edward Norton Lorenz, in the
meteorology
Meteorology is the scientific study of the Earth's atmosphere and short-term atmospheric phenomena (i.e. weather), with a focus on weather forecasting. It has applications in the military, aviation, energy production, transport, agricultur ...
department at
Massachusetts Institute of Technology
The Massachusetts Institute of Technology (MIT) is a Private university, private research university in Cambridge, Massachusetts, United States. Established in 1861, MIT has played a significant role in the development of many areas of moder ...
(MIT).
She developed software for predicting weather, programming on the
LGP-30
The LGP-30, standing for Librascope General Purpose and then Librascope General Precision, is an early off-the-shelf computer. It was manufactured by the Librascope company of Glendale, California (a division of General Precision Inc.), and so ...
and the
PDP-1
The PDP-1 (Programmed Data Processor-1) is the first computer in Digital Equipment Corporation's PDP series and was first produced in 1959. It is known for being the most important computer in the creation of hacker culture at the Massachusetts ...
computers at
Marvin Minsky
Marvin Lee Minsky (August 9, 1927 – January 24, 2016) was an American cognitive scientist, cognitive and computer scientist concerned largely with research in artificial intelligence (AI). He co-founded the Massachusetts Institute of Technology ...
's
Project MAC
Computer Science and Artificial Intelligence Laboratory (CSAIL) is a research institute at the Massachusetts Institute of Technology
The Massachusetts Institute of Technology (MIT) is a Private university, private research university in ...
.
Her work contributed to Lorenz's publications on
chaos theory
Chaos theory is an interdisciplinary area of Scientific method, scientific study and branch of mathematics. It focuses on underlying patterns and Deterministic system, deterministic Scientific law, laws of dynamical systems that are highly sens ...
. At the time,
computer science
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
and
software engineering
Software engineering is a branch of both computer science and engineering focused on designing, developing, testing, and maintaining Application software, software applications. It involves applying engineering design process, engineering principl ...
were not yet established disciplines; instead, programmers learned on the job with hands-on experience.
She moved on to another project in the summer of 1961, and hired and trained
Ellen Fetter as her replacement.
SAGE Project
From 1961 to 1963, Hamilton worked on the
Semi-Automatic Ground Environment
The Semi-Automatic Ground Environment (SAGE) was a system of mainframe computer, large computers and associated computer network, networking equipment that coordinated data from many radar sites and processed it to produce a single unified image ...
(SAGE) Project at
the MIT Lincoln Lab,
where she was one of the programmers who wrote software for the prototype
AN/FSQ-7 computer (the XD-1), used by the
U.S. Air Force to search for possibly unfriendly aircraft.
She also wrote software for a satellite tracking project at the
Air Force Cambridge Research Laboratories
An atmosphere () is a layer of gases that envelop an astronomical object, held in place by the gravity of the object. A planet retains an atmosphere when the gravity is great and the temperature of the atmosphere is low. A stellar atmosphere ...
.
The SAGE Project was an extension of
Project Whirlwind
Whirlwind I was a Cold War-era vacuum-tube computer developed by the MIT Servomechanisms Laboratory for the U.S. Navy. Operational in 1951, it was among the first digital electronic computers that operated in real-time for output, and the first ...
, started by
MIT
The Massachusetts Institute of Technology (MIT) is a private research university in Cambridge, Massachusetts, United States. Established in 1861, MIT has played a significant role in the development of many areas of modern technology and sc ...
to create a computer system that could predict weather systems and track their movements using simulators. SAGE was soon developed for military use in anti-aircraft air defense. Hamilton said:
It was her efforts on this project that made her a candidate for the position at NASA as the lead developer for Apollo flight software.
MIT Instrumentation Laboratory and the Apollo Guidance Computer

Hamilton learned of the Apollo project in 1965 and wanted to get involved due to it being "very exciting" as a Moon program.
She joined the
MIT Instrumentation Laboratory, which developed the
Apollo Guidance Computer
The Apollo Guidance Computer (AGC) was a digital computer produced for the Apollo program that was installed on board each Apollo command module (CM) and Apollo Lunar Module (LM). The AGC provided computation and electronic interfaces for guidanc ...
for the
Apollo lunar exploration program. Hamilton was the first programmer hired for the Apollo project at MIT and the first female programmer in the project,
and later became Director of the Software Engineering Division.
She was responsible for the team writing and testing all on-board in-flight software for the
Apollo
Apollo is one of the Twelve Olympians, Olympian deities in Ancient Greek religion, ancient Greek and Ancient Roman religion, Roman religion and Greek mythology, Greek and Roman mythology. Apollo has been recognized as a god of archery, mu ...
spacecraft's
Command
Command may refer to:
Computing
* Command (computing), a statement in a computer language
* command (Unix), a Unix command
* COMMAND.COM, the default operating system shell and command-line interpreter for DOS
* Command key, a modifier key on A ...
and
Lunar Module
The Apollo Lunar Module (LM ), originally designated the Lunar Excursion Module (LEM), was the lunar lander spacecraft that was flown between lunar orbit and the Moon's surface during the United States' Apollo program. It was the first crewed s ...
and for the subsequent
Skylab space station.
Another part of her team designed and developed the systems software.
This included error detection and recovery software such as restarts and the Display Interface Routines (also known as the Priority Displays), which Hamilton designed and developed.
She worked to gain hands-on experience during a time when computer science courses were uncommon and software engineering courses did not exist.
Her areas of expertise include
systems design
The basic study of system design is the understanding of component parts and their subsequent interaction with one another.
Systems design has appeared in a variety of fields, including sustainability, computer/software architecture, and sociolog ...
and
software development
Software development is the process of designing and Implementation, implementing a software solution to Computer user satisfaction, satisfy a User (computing), user. The process is more encompassing than Computer programming, programming, wri ...
,
enterprise
Enterprise (or the archaic spelling Enterprize) may refer to:
Business and economics
Brands and enterprises
* Enterprise GP Holdings, an energy holding company
* Enterprise plc, a UK civil engineering and maintenance company
* Enterpris ...
and
process modeling
The term process model is used in various contexts. For example, in business process modeling the enterprise process model is often referred to as the ''business process model''.
Overview
Process models are processes of the same nature that a ...
, development paradigm, formal
systems modeling
A system is a group of interacting or interrelated elements that act according to a set of rules to form a unified whole. A system, surrounded and influenced by its environment, is described by its boundaries, structure and purpose and is exp ...
languages, system-oriented objects for systems modeling and development, automated life-cycle environments, methods for maximizing
software reliability and
reuse
Reuse is the action or practice of using an item, whether for its original purpose (conventional reuse) or to fulfill a different function (creative reuse or repurposing). It should be distinguished from recycling, which is the breaking down of ...
,
domain analysis,
correctness by built-in language properties, open-architecture techniques for robust systems, full life-cycle automation,
quality assurance
Quality assurance (QA) is the term used in both manufacturing and service industries to describe the systematic efforts taken to assure that the product(s) delivered to customer(s) meet with the contractual and other agreed upon performance, design ...
, seamless integration,
error detection and recovery techniques,
human-machine interface systems,
operating system
An operating system (OS) is system software that manages computer hardware and software resources, and provides common daemon (computing), services for computer programs.
Time-sharing operating systems scheduler (computing), schedule tasks for ...
s, end-to-end testing techniques, and life-cycle management techniques.
These techniques are intended to make code more reliable because they help programmers identify and fix errors sooner in the development process.
Apollo 11 landing
In one of the critical moments of the
Apollo 11
Apollo 11 was a spaceflight conducted from July 16 to 24, 1969, by the United States and launched by NASA. It marked the first time that humans Moon landing, landed on the Moon. Commander Neil Armstrong and Lunar Module pilot Buzz Aldrin l ...
mission, the
Apollo Guidance Computer
The Apollo Guidance Computer (AGC) was a digital computer produced for the Apollo program that was installed on board each Apollo command module (CM) and Apollo Lunar Module (LM). The AGC provided computation and electronic interfaces for guidanc ...
, together with the on-board flight software, averted an abort of the landing on the Moon. Three minutes before the
lunar lander
A lunar lander or Moon lander is a Lander (spacecraft), spacecraft designed to Moon landing, land on the surface of the Moon. As of 2024, the Apollo Lunar Module is the only lunar lander to have ever been used in human spaceflight, completing s ...
reached the Moon's surface, several computer alarms were triggered. According to software engineer Robert Wills, Buzz Aldrin entered the codes to request that the computer display altitude and other data on the computer’s screen. The system was designed to support seven simultaneous programs running, but Aldrin’s request was the eighth. This action was something he requested many times whilst working in the simulator. The result was a series of unexpected error codes during the live descent. The on-board flight software captured these alarms with the "never supposed to happen displays" interrupting the astronauts with priority alarm displays.
Hamilton had prepared for just this situation years before:
By some accounts, the astronauts had inadvertently left the rendezvous radar switch on, causing these alarms to be triggered (the claim that the radar was left on inadvertently by the astronauts is disputed by Robert Wills with
the National Museum of Computing). The computer was overloaded with interrupts caused by incorrectly
phased power supplied to the lander's rendezvous radar.
The program alarms indicated "executive overflows", meaning the guidance computer could not complete all of its tasks in real time and had to postpone some of them. The asynchronous executive designed by
J. Halcombe Laning was used by Hamilton's team to develop asynchronous flight software:
Hamilton's priority alarm displays interrupted the astronauts' normal displays to warn them that there was an emergency "giving the astronauts a
go/no-go
A go/no-go test is a two-step verification process that uses two boundary conditions, or a binary classification. The test is passed only when the ''go'' condition has been met and also the ''no-go'' condition has failed.
The test gives no inform ...
decision (to land or not to land)".
Jack Garman, a NASA computer engineer in mission control, recognized the meaning of the errors that were presented to the astronauts by the priority displays and shouted, "Go, go!" and they continued.
Paul Curto, a senior technologist who nominated Hamilton for a NASA Space Act Award, called Hamilton's work "the foundation for ultra-reliable software design".
Hamilton later wrote of the incident:
Businesses
In 1976, Hamilton co-founded with Saydean Zeldin a company called Higher Order Software (HOS) to further develop ideas about error prevention and fault tolerance emerging from their experience at MIT working on the Apollo program.
They created a product called USE.IT, based on the HOS methodology they developed at MIT.
It was successfully used in numerous government programs
including a project to formalize and implement C-IDEF, an automated version of
IDEF, a
modeling language
A modeling language is any artificial language that can be used to express data, information or knowledge or systems in a structure that is defined by a consistent set of rules. The rules are used for interpretation of the meaning of components in ...
developed by the U.S. Air Force in the
Integrated Computer-Aided Manufacturing
Integrated Computer-Aided Manufacturing (ICAM) is a United States Air Force, US Air Force program that develops tools, techniques, and processes to support manufacturing integration. It influenced the computer-integrated manufacturing (CIM) and co ...
(ICAM) project. In 1980, British-Israeli computer scientist
David Harel published a proposal for a structured programming language derived from HOS from the viewpoint of
and/or subgoals. Others have used HOS to formalize the semantics of linguistic quantifiers, and to formalize the design of reliable real-time embedded systems.
Hamilton was the CEO of HOS through 1984
and left the company in 1985. In March 1986, she founded Hamilton Technologies, Inc. in
Cambridge, Massachusetts
Cambridge ( ) is a city in Middlesex County, Massachusetts, United States. It is a suburb in the Greater Boston metropolitan area, located directly across the Charles River from Boston. The city's population as of the 2020 United States census, ...
. The company was developed around the
Universal Systems Language (USL) and its associated automated environment, the 001 Tool Suite, based on her paradigm of development before the fact for systems design and software development.
Legacy

Hamilton has been credited with naming the discipline of "
software engineering
Software engineering is a branch of both computer science and engineering focused on designing, developing, testing, and maintaining Application software, software applications. It involves applying engineering design process, engineering principl ...
".
Hamilton details how she came to make up the term "software engineering":
When Hamilton started using the term "software engineering" during the early Apollo missions,
software development was not taken seriously compared to other engineering, nor was it regarded as a science. Hamilton was concerned with legitimizing software development as an engineering discipline. Over time the term "software engineering" gained the same respect as any other technical discipline.
The
IEEE Software September/October 2018 issue celebrates the 50th anniversary of software engineering. Hamilton talks about "Errors" and how they influenced her work related to software engineering and how her language, USL, could be used to prevent the majority of "Errors" in a system.
With USL, rather than continuing to test for errors, her program was designed to keep most errors out of the system from the beginning. USL was created after her knowledge and experience from the Apollo mission, in which she determined a mathematical theory for systems and software. This method was then, and still is, highly impactful to the field of software engineering. Writing in ''
Wired
Wired may refer to:
Arts, entertainment, and media Music
* ''Wired'' (Jeff Beck album), 1976
* ''Wired'' (Hugh Cornwell album), 1993
* ''Wired'' (Mallory Knox album), 2017
* "Wired", a song by Prism from their album '' Beat Street''
* "Wired ...
'', Robert McMillan noted: "At MIT she assisted in the creation of the core principles in computer programming as she worked with her colleagues in writing code for the world's first portable computer".
Hamilton's innovations go beyond the feats of playing an important role in getting humans to the Moon. According to ''Wired''s Karen Tegan Padir: "She, along with that other early programming pioneer,
COBOL
COBOL (; an acronym for "common business-oriented language") is a compiled English-like computer programming language designed for business use. It is an imperative, procedural, and, since 2002, object-oriented language. COBOL is primarily ...
inventor
Grace Hopper
Grace Brewster Hopper (; December 9, 1906 – January 1, 1992) was an American computer scientist, mathematician, and United States Navy rear admiral. She was a pioneer of computer programming. Hopper was the first to devise the theory of mach ...
, also deserve tremendous credit for helping to open the door for more women to enter and succeed in STEM fields like software."
Tributes
In 2017, a "Women of NASA"
LEGO
Lego (, ; ; stylised as LEGO) is a line of plastic construction toys manufactured by the Lego Group, a privately held company based in Billund, Denmark. Lego consists of variously coloured interlocking plastic bricks made of acrylonitri ...
set went on sale featuring
minifigures of Hamilton,
Mae Jemison
Mae Carol Jemison (born October 17, 1956) is an American engineer, physician, and former NASA astronaut. She became the first African-American woman to travel into space when she served as a mission specialist aboard the Space Shuttle Endeavou ...
,
Sally Ride
Sally Kristen Ride (May 26, 1951 – July 23, 2012) was an American astronaut and physicist. Born in Los Angeles, she joined NASA in 1978, and in 1983 became the first American woman and the third woman to fly in space, after cosmonauts V ...
, and
Nancy Grace Roman. The set was initially proposed by
Maia Weinstock as a tribute to the women's contributions to NASA history, and Hamilton's section of the set features a recreation of her famous 1969 photo posing with a stack of her software listings.
In 2019, to celebrate 50 years after the Apollo landing, Google decided to make a tribute to Hamilton. The mirrors at the
Ivanpah Solar Power Facility
The Ivanpah Solar Electric Generating System is a concentrated solar thermal plant located in the Mojave Desert located at the base of Clark Mountain in California, across the state line from Primm, Nevada. It is slated to close in 2026.
The ...
were configured to create a picture of Hamilton and the Apollo 11 by moonlight.
Margo Madison, a fictional NASA engineer in the alternate history series ''
For All Mankind'', was inspired by Hamilton.
Awards

* In 1986, Hamilton received the
Augusta Ada Lovelace Award by the
Association for Women in Computing.
* In 2003, she was given the NASA Exceptional Space Act Award for scientific and technical contributions. The award included $37,200, the largest amount awarded to any individual in NASA's history.
[''Michael Braukus'' NASA New]
"NASA Honors Apollo Engineer"
(September 3, 2003)
* In 2009, she received the Outstanding Alumni Award from
Earlham College
Earlham College is a Private college, private Liberal arts colleges in the United States, liberal arts college in Richmond, Indiana. The college was established in 1847 by the Religious Society of Friends (Quakers) and has a strong focus on Quake ...
.
* In 2016, she received the
Presidential Medal of Freedom
The Presidential Medal of Freedom is the highest civilian award of the United States, alongside the Congressional Gold Medal. It is an award bestowed by decision of the president of the United States to "any person recommended to the President ...
from Barack Obama, the highest civilian honor in the United States.
* On April 28, 2017, she received the Computer History Museum Fellow Award, which honors exceptional men and women whose computing ideas have changed the world.
* In 2018, she was awarded an
honorary doctorate
An honorary degree is an academic degree for which a university (or other degree-awarding institution) has waived all of the usual requirements. It is also known by the Latin phrases ''honoris causa'' ("for the sake of the honour") or '' ad hon ...
degree by the
Polytechnic University of Catalonia.
* In 2019, she was awarded The Washington Award.
* In 2019, she was awarded an honorary doctorate degree by
Bard College
Bard College is a private college, private Liberal arts colleges in the United States, liberal arts college in Annandale-on-Hudson, New York. The campus overlooks the Hudson River and Catskill Mountains within the Hudson River Historic District ...
.
* In 2019, she was awarded the Intrepid Lifetime Achievement Award.
* In 2022, she was inducted into the
National Aviation Hall of Fame
The National Aviation Hall of Fame (NAHF) is a museum, annual awards ceremony and learning and research center that was founded in 1962 as an Ohio non-profit corporation in Dayton, Ohio, United States, known as the "Birthplace of Aviation" with ...
in Dayton, Ohio.
Publications
*
*
*Hamilton, M. (April 1994)
"Inside Development Before the Fact" (Cover story). Special Editorial Supplement. 8ES-24ES. ''Electronic Design''.
* Hamilton, M. (June 1994)
"001: A Full Life Cycle Systems Engineering and Software Development Environment" (Cover story). Special Editorial Supplement. 22ES-30ES. ''Electronic Design''.
* Hamilton, M.; Hackler, W. R. (2004). "Deeply Integrated Guidance Navigation Unit (DI-GNU) Common Software Architecture Principles". (Revised December 29, 2004). DAAAE30-02-D-1020 and DAAB07-98-D-H502/0180, Picatinny Arsenal, NJ, 2003–2004.
* Hamilton, M.; Hackler, W. R. (2007).
Universal Systems Language for Preventative Systems Engineering, ''Proc. 5th Ann. Conf. Systems Eng. Res.'' (CSER), Stevens Institute of Technology, Mar. 2007, paper #36.
*
*
*
Personal life
Hamilton has a sister, Kathryn Heafield.
She met her first husband, James Cox Hamilton,
in the mid-1950s while attending college. They were married on June 15, 1958, the summer after she graduated from Earlham.
She briefly taught high school mathematics and French at a public school in
Boston, Indiana.
The couple then moved to
Boston
Boston is the capital and most populous city in the Commonwealth (U.S. state), Commonwealth of Massachusetts in the United States. The city serves as the cultural and Financial centre, financial center of New England, a region of the Northeas ...
,
Massachusetts
Massachusetts ( ; ), officially the Commonwealth of Massachusetts, is a U.S. state, state in the New England region of the Northeastern United States. It borders the Atlantic Ocean and the Gulf of Maine to its east, Connecticut and Rhode ...
,
where they had a daughter, Lauren, born on November 10, 1959.
They divorced in 1967 and Margaret married Dan Lickly two years later.
See also
*
List of pioneers in computer science
This is a list of people who made transformative breakthroughs in the creation, development and imagining of what computers could do.
Pioneers
~ Items marked with a tilde are circa dates.
See also
* Computer Pioneer Award
* IEEE John von ...
References
Further reading
*
External links
Hamilton Technologies, Inc.
MIT NewsMargaret Hamilton Video produced by ''
Makers: Women Who Make America''
Margaret Hamilton ’58 – Presidential Medal of Freedom Recipient: Earlham College profile
{{DEFAULTSORT:Hamilton, Margaret
1936 births
Living people
People from Paoli, Indiana
American computer scientists
American women computer scientists
Apollo program
Earlham College alumni
University of Michigan College of Literature, Science, and the Arts alumni
Massachusetts Institute of Technology faculty
NASA people
Presidential Medal of Freedom recipients
MIT Lincoln Laboratory people
Computer programmers
American software engineers
Scientists from Indiana
20th-century American women scientists
American women academics
21st-century American women
Women rocket scientists
Apollo 11
National Aviation Hall of Fame inductees