Technology

Ada Lovelace published an algorithm for Babbage's Analytical Engine in 1843

Published November 23, 2026

In 1843, an English translation of an article about a machine that had not been built came with notes about three times as long as the article itself. The notes were signed 'A.A.L.' and written by Ada Lovelace. One of them set out a step-by-step method for computing Bernoulli numbers, which is often described as the first published computer program.

A translation that outgrew its source

Lovelace translated Luigi Menabrea's article on the Analytical Engine into English. It appeared in Taylor's Scientific Memoirs in 1843.

She added notes of her own, labelled A to G. Signed 'A.A.L.', they ran to about three times the length of the article she was translating.

What Note G contains

Note G sets out a table of operations for the Analytical Engine to calculate Bernoulli numbers. It is a sequence of steps for a machine to follow, which is why it is often called the first published computer program.

Lovelace (1815-1852) was a mathematician and the daughter of the poet Lord Byron. She worked with Charles Babbage, who designed the engine. Her 1843 notes are the best-known early description of how such a machine could be programmed.

A machine that was never finished

The Analytical Engine was a proposed general-purpose mechanical computer. Babbage designed it, but it was never completed in his lifetime.

That shapes how the notes should be read. The program was never run on a real machine, and the 1843 notes describe a design, not a modern computer.

Was she the first?

That part is debated. Babbage had written earlier programs for the engine, drafting them in the 1830s and 1840s, so some historians dispute that hers was the first.

Historians also disagree about how much of Note G was Lovelace's own work and how much was Babbage's. What is not in dispute is the publication: in 1843, Note G put a worked method for Bernoulli numbers into print.

Ada Lovelace's 1843 notes included a published method for computing Bernoulli numbers on a machine that was never built. Whether that makes her the first programmer is still argued over.

Watch this fact as a short video on YouTube