FactOTD

Ada Lovelace Wrote the First Computer Program in 1843 — For a Machine That Wasn't Built

March 28, 2026 · 3 min read

The Fact

The first computer programmer was a woman named Ada Lovelace, who wrote an algorithm for the Analytical Engine in 1843.

The Mathematician's Daughter Who Saw the Future

Augusta Ada King, Countess of Lovelace, was born in 1815 as the only legitimate child of the poet Lord Byron. Her mother, terrified that Ada might inherit her father's volatile temperament, arranged for her to receive an unusually rigorous education in mathematics — a discipline considered deeply unsuitable for women of the era and therefore an effective inoculation against poetic excess. The plan did not produce the intended effect. What it produced instead was the world's first computer programmer.

Ada Lovelace met Charles Babbage in 1833, when she was seventeen and he was a middle-aged mathematician and inventor obsessed with building a mechanical computing machine. Babbage had already designed the Difference Engine, a mechanical calculator intended to compute mathematical tables. By the time he met Lovelace, he had begun conceiving a far more ambitious successor: the Analytical Engine, a general-purpose mechanical computer that could, in principle, perform any calculation it was instructed to perform through punched cards.

The Algorithm for a Machine That Didn't Exist

In 1842, the Italian mathematician Luigi Menabrea published a paper in French describing the Analytical Engine based on a lecture by Babbage. Lovelace was asked to translate the paper into English. She did — and then added her own notes, which ended up being three times longer than the original paper.

Note G, as it has come to be known, contains what is now recognized as the first computer algorithm: a step-by-step procedure for calculating Bernoulli numbers using the Analytical Engine. It is a complete, detailed program that anticipates the logical structure of modern software — conditional branching, loops, variable assignment — in a form that would be recognizable to any contemporary programmer, despite being written in 1843 for a machine built from brass and steel.

More remarkably, Lovelace's notes contain passages of extraordinary theoretical vision. She recognized that the Analytical Engine was not merely a calculator but a general symbol-processing machine — that it could operate on any symbols with defined relationships, not just numbers. "The Analytical Engine might act upon other things besides number," she wrote, citing the possibility of musical notation as one example. This insight — that computation is fundamentally about symbol manipulation, not arithmetic — is the conceptual foundation of modern computing, articulated a century before the first electronic computer was built.

Why Her Vision Wasn't Recognized Immediately

The Analytical Engine was never completed. Babbage spent decades trying to secure funding and build the machine, but the technology of the era could not meet the precision requirements his design demanded. Lovelace died in 1852 at age 36, from cancer. Her notes were not widely read or discussed for nearly a century.

When Alan Turing and others began laying the theoretical and physical foundations for electronic computing in the 1930s and 1940s, they developed independently the same conceptual framework that Lovelace had articulated in 1843 — general-purpose symbol manipulation, algorithmic specification, the separation of program and data. Whether Turing read Lovelace's notes is unclear; what is clear is that she had arrived at the same destination nearly 100 years earlier.

The U.S. Department of Defense named a programming language "Ada" in her honor in 1980. The choice was apt: the language was intended for safety-critical applications requiring rigorous specification — exactly the kind of precise, systematic thinking that Lovelace had demonstrated in that translation, and those notes, written for a brass machine that never ran.

F

FactOTD Editorial Team

Published March 28, 2026 · 3 min read

The FactOTD editorial team researches and verifies every fact before publication. Our mission is to make learning effortless and accurate. Learn about our process →

Related Articles

technologyAda Lovelace: The Mathematician Who Invented Computer Programming in 1843In 1843, a woman translated an Italian paper about a machine that had never been built, then added notes three times as long as the original — including the first algorithm ever designed to be executed by a computer. The machine was never completed. The algorithm was correct.historyNintendo Was Founded in 1889 to Make Playing Cards — 130 Years Before MarioNintendo is one of the world's most recognizable video game companies, but it existed for over 90 years before it made a single video game. Its story begins in 1889 in Kyoto, where a craftsman named Fusajiro Yamauchi began hand-painting playing cards — and from that modest origin grew one of the most consequential entertainment companies in history.spaceBefore Copy-Paste Existed: How the Apollo Moon Landing Code Was Written by HandLong before integrated development environments or version control systems existed, the software that guided astronauts to the Moon was drafted on paper by teams of engineers working under extraordinary pressure. The story of Apollo's software is one of human ingenuity operating at the very edge of what was technically possible.technologyIBM's 1980 Hard Drive: 500 Pounds, $40,000, and One Gigabyte of StorageIn 1980, IBM shipped the world's first gigabyte-capacity hard drive. The IBM 3380 weighed more than 500 pounds, required a refrigerator-sized cabinet, and carried a price tag of $40,000. Today, the same capacity fits on a chip smaller than a fingernail.