The first computer algorithm is widely credited to Ada Lovelace, a 19th‑century English mathematician who worked with Charles Babbage on his planned Analytical Engine.

Quick Scoop: Who wrote the first computer algorithm?

  • The person most historians recognize as having written the first computer algorithm is Ada Lovelace.
  • In 1843, she created a detailed step‑by‑step method (an algorithm) to make Babbage’s hypothetical machine, the Analytical Engine, calculate Bernoulli numbers.
  • Her work is often described as the world’s first “computer program,” even though the machine itself was never built.

A tiny story to remember it

Ada Lovelace looked at Babbage’s mechanical engine and didn’t just see a fancy calculator; she imagined a general‑purpose machine that could follow symbolic instructions like a modern computer. In her famous notes, she wrote a table of operations—now known as Note G—that systematically told the Engine how to compute Bernoulli numbers, including ideas similar to loops and structured steps that programmers still use today.

In simple terms: Babbage designed the machine, but Lovelace wrote the recipe for what it should do —and that recipe is what we now call the first computer algorithm.

TL;DR: Ada Lovelace wrote the first known computer algorithm in 1843 for Charles Babbage’s Analytical Engine, earning her the title of the world’s first computer programmer.

Information gathered from public forums or data available on the internet and portrayed here.