FactOTD

Ada Lovelace: The Mathematician Who Invented Computer Programming in 1843

March 28, 2026 ยท 4 min read

The Fact

Ada Lovelace is considered the world's first computer programmer, writing an algorithm for Charles Babbage's Analytical Engine in 1843.

Augusta Ada King, Countess of Lovelace, was born in 1815 as the only legitimate child of the poet Lord Byron and his mathematician wife Annabella Milbanke. Her mother, intent on steering Ada away from what she feared was her father's dangerous romantic temperament, ensured that Ada received an unusually rigorous education in mathematics and science for a woman of her era. It proved to be one of the more consequential parenting decisions in the history of technology.

The Analytical Engine and the Paper That Changed Everything

In 1833, Ada met Charles Babbage, an inventor and mathematician who had been working since 1822 on a series of mechanical computing devices. His Difference Engine was designed to automatically calculate mathematical tables. By the early 1830s he had conceived an even more ambitious machine: the Analytical Engine, a general-purpose mechanical computer that would use punched cards for input, have a separate store (memory) and mill (processing unit), and be capable of branching and looping operations โ€” in other words, a design functionally equivalent to a modern computer's basic architecture, realized entirely in brass gears and levers.

The Analytical Engine was never built โ€” it far exceeded the manufacturing capabilities of 19th-century Britain โ€” but Babbage lectured extensively about it. In 1842, the Italian mathematician Luigi Menabrea wrote a paper in French describing the machine based on Babbage's lectures in Turin. Babbage asked Ada to translate it into English. She did so โ€” and then, at Babbage's encouragement, added her own notes. Those notes were roughly three times the length of the original paper.

The Algorithm for Bernoulli Numbers

Ada's seventh and most extensive note, Note G, contains what is now recognized as the first published algorithm intended to be executed by a machine. The algorithm describes a method for computing Bernoulli numbers โ€” a sequence of rational numbers with applications in number theory โ€” using the Analytical Engine. It is a genuine computer program: a step-by-step sequence of operations, with explicit handling of looping and variable management, designed to be executed mechanically.

What makes Ada's contribution significant beyond the algorithm itself is the conceptual framework she built around it. She recognized โ€” more clearly than Babbage himself had articulated โ€” that the Analytical Engine was not merely a calculator but a general symbol manipulator. She wrote that the Engine "might act upon other things besides number, were objects found whose mutual fundamental relations could be expressed by those of the abstract science of operations." She described it operating on musical notes, on letters, on any domain that could be reduced to formal symbolic relations. She was describing, in essence, the modern stored-program computer โ€” a century before it existed.

What She Got Right, and What She Got Wrong

Ada was also clear about the limits of what such a machine could do. In what might be called the first articulation of what later became known as the "AI problem," she wrote: "The Analytical Engine has no power of originating anything. It can only do what we order it to perform." This observation โ€” that computers execute instructions but do not originate thought โ€” would be debated by Alan Turing exactly a century later in his 1950 paper on machine intelligence.

Her algorithm for Bernoulli numbers has been analyzed by computer historians and found to be substantially correct, though it contains at least one error that she likely would have caught if she had been able to test it on an actual machine. The error is small and correctable โ€” more like a typo than a conceptual mistake โ€” and does not diminish the achievement of writing an algorithm for a machine that did not exist, in a programming paradigm that would not be formalized for another hundred years.

Ada Lovelace died in 1852 at the age of 36, from cancer. She was buried, at her request, beside the father she had never known. The programming language Ada, developed in the 1980s for the U.S. Department of Defense, was named in her honor.

F

FactOTD Editorial Team

Published March 28, 2026 ยท 4 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