Every time you unlock a phone, ask a chatbot a question or send an encrypted message, you are using ideas that trace back to one quiet, unconventional Englishman: Alan Mathison Turing. He imagined the modern computer before anyone had built one, helped crack the Nazi Enigma cipher during the Second World War, and asked the question that still defines artificial intelligence: can machines think?
Thank you for reading this post, don't forget to subscribe!This Alan Turing biography walks through his life step by step, from a curious boy in London to a wartime codebreaker, a computer pioneer and, tragically, a man persecuted by the country he helped save. No advanced maths is needed. By the end you will understand why computer scientists call him the father of their field.
Quick Facts About Alan Turing
- Born: 23 June 1912, Maida Vale, London, England
- Died: 7 June 1954, Wilmslow, Cheshire, England (aged 41)
- Education: King’s College, Cambridge; PhD at Princeton University (1938)
- Known for: the Turing machine, breaking Enigma, the Turing test, early computer design, mathematical biology
- Honours: OBE (1946), Fellow of the Royal Society (1951), royal pardon (2013), face of the Bank of England £50 note (2021)
Early Life: A Boy Who Thought Differently
Turing’s father worked for the Indian Civil Service, so Alan and his older brother spent much of their childhood with foster families in England while their parents lived abroad. Teachers often found him untidy and stubborn, but he was obsessed with science. As a teenager at Sherborne School he worked through advanced mathematics on his own and even studied Einstein’s ideas on relativity.
A defining moment came when his close school friend Christopher Morcom died suddenly in 1930. Turing was devastated, and many biographers believe the loss pushed him to think deeply about the mind, the brain and whether thought could exist in matter. Those questions would follow him for the rest of his life.
Cambridge and the Invention of the Turing Machine
Turing studied mathematics at King’s College, Cambridge, and was elected a Fellow of the college in 1935 at just 22. A year later he published the paper that changed everything: “On Computable Numbers, with an Application to the Entscheidungsproblem” (1936).
What is a Turing machine?
Mathematicians at the time wanted to know whether there was a mechanical method that could decide the truth of any mathematical statement. To answer, Turing imagined a very simple, purely theoretical device:
- An endless tape divided into squares, each holding a symbol.
- A head that can read a symbol, write a new one and move left or right.
- A small table of rules that tells the machine what to do next.
He showed that this humble machine could carry out any calculation that can be described step by step. He then went further and described a universal Turing machine: one machine that can imitate any other machine if you feed it the right instructions on its tape. That is exactly what a modern computer does when it runs different programs on the same hardware. The idea of software was born on paper, years before electronic computers existed.
Turing also proved that some problems can never be solved by any machine, such as predicting in general whether a program will ever stop (the “halting problem”). Computer scientists still teach this result in their first theory courses. If you want to see how today’s AI builds on these foundations, read our guide on how large language models actually work.
From 1936 to 1938 Turing studied at Princeton University in the United States, earning his PhD under the logician Alonzo Church, whose own work reached similar conclusions by a different route.
Bletchley Park: Breaking the Enigma Code

When Britain declared war on Germany in September 1939, Turing reported to Bletchley Park, the top-secret home of the Government Code and Cypher School. His task: help read the messages of the German armed forces, which were scrambled by the Enigma machine.
Why Enigma seemed unbreakable
Enigma looked like a typewriter. Each time an operator pressed a key, an electrical current passed through a set of rotating wheels (rotors) and a plugboard, lighting up a different letter. Because the rotors moved with every keypress, the same letter was encrypted differently each time. The settings changed daily, and the number of possible configurations was astronomically large, far too many to test by hand.
The Bombe and the power of a good guess
Polish mathematicians, led by Marian Rejewski, had already cracked early versions of Enigma and shared their work with Britain and France in 1939. Building on it, Turing designed an electromechanical machine called the Bombe, later improved by fellow codebreaker Gordon Welchman. The key insight was to use a “crib”: a short piece of text the codebreakers guessed was in a message, such as a weather report. The Bombe then rapidly ruled out every rotor setting that contradicted the guess, leaving only a few for humans to check.
The first Bombe began working in 1940, and many more were built during the war. Turing also led Hut 8, the section that attacked German naval Enigma, which was even harder to break. Reading U-boat messages helped Allied convoys avoid submarines in the Battle of the Atlantic, keeping food and supplies flowing to Britain.
Historians widely believe the intelligence from Bletchley Park shortened the war, often estimated at around two years, saving a very large number of lives. Exact figures are debated, but the importance of the work is not. Thousands of people worked at Bletchley Park, many of them women, and Turing was one brilliant part of a large team effort.
After the War: Building Real Computers
Because of official secrecy, Turing could not talk about his wartime work. Instead he turned his ideas into hardware. At the National Physical Laboratory in London, he produced a detailed design in 1945 to 1946 for the Automatic Computing Engine (ACE), one of the first complete designs for a stored-program computer. Delays frustrated him, and a smaller version, the Pilot ACE, only ran in 1950.
In 1948 he moved to the University of Manchester, where one of the world’s earliest stored-program computers was operating. He wrote programming manuals, worked on software and even explored computer-generated music and early chess programs, designing a chess algorithm he tested by hand because no machine was powerful enough to run it.
Can Machines Think? The Turing Test

In 1950 Turing published “Computing Machinery and Intelligence” in the philosophy journal Mind. Rather than arguing about the vague word “think”, he proposed a practical experiment he called the imitation game, now known as the Turing test:
- A human judge chats by text with two hidden partners.
- One is a person, the other a machine.
- If the judge cannot reliably tell which is which, the machine is said to have passed.
In the same paper he answered objections that machines could never be creative or surprise us, and he suggested that instead of programming an adult mind, we might build a “child machine” and teach it, an early glimpse of what we now call machine learning. Today’s chatbots have reopened the debate about whether the Turing test is a good measure of intelligence, which shows how far ahead of his time he was. AI is now reshaping many fields; see our article on how AI is transforming modern healthcare for one striking example.
Mathematical Biology: Patterns in Nature
In 1952 Turing surprised colleagues by publishing “The Chemical Basis of Morphogenesis”. He showed mathematically how two chemicals spreading and reacting could create stripes, spots and other patterns, like those on a zebra or a leopard. These are now called Turing patterns, and biologists continue to find evidence for them, from fish skin to the spacing of fingers in developing embryos.
Persecution and a Tragic Death
Turing was gay at a time when homosexual acts were illegal in Britain. In 1952 he was convicted of “gross indecency”. To avoid prison he accepted hormone treatment, often described as chemical castration, which caused painful physical changes. His criminal record also cost him his security clearance, ending his work with government codebreakers.
On 7 June 1954 Turing was found dead at his home in Wilmslow. An inquest ruled that he died of cyanide poisoning. Some historians question the official verdict and suggest it may have been accidental, so the exact circumstances remain debated. He was just 41.
Apology, Pardon and Lasting Recognition
For decades his war work stayed secret. As records were released, public recognition grew:
- 1966: the Association for Computing Machinery created the A.M. Turing Award, often called the Nobel Prize of computing.
- 2009: UK Prime Minister Gordon Brown issued a public apology for the “appalling” way Turing was treated.
- 2013: Queen Elizabeth II granted him a posthumous royal pardon.
- 2017: a law informally known as the “Alan Turing law” pardoned thousands of other men convicted under the same historic laws.
- 2021: the Bank of England’s polymer £50 note featuring Turing entered circulation on 23 June, his birthday.
Turing joins a small group of scientists whose ideas reshaped the modern world. If you enjoy stories like his, read our biography of Marie Curie, the only person to win Nobel Prizes in two different sciences.
Why Alan Turing Still Matters Today
- Computers: the universal Turing machine is the theoretical blueprint for every programmable device.
- Limits of computing: his proof that some problems are unsolvable shapes how engineers think about software.
- Cryptography: Bletchley Park showed how mathematics and machines together can defeat secret codes, a lesson that drives modern cybersecurity.
- Artificial intelligence: the Turing test and the idea of learning machines still frame debates about AI.
- Human rights: his story has become a powerful symbol in the fight against discrimination.
For a deeper academic look at his logic and philosophy, the Stanford Encyclopedia of Philosophy entry on Alan Turing is an excellent free resource.
Frequently Asked Questions
Did Alan Turing break the Enigma code alone?
No. He built on earlier work by Polish codebreakers and worked alongside thousands of people at Bletchley Park, including Gordon Welchman, who improved the Bombe. Turing’s contributions, especially against naval Enigma, were central, but it was a team achievement.
Why is Alan Turing called the father of computer science?
His 1936 Turing machine gave the first precise definition of what it means to compute, and his universal machine described the stored-program idea that every modern computer uses.
What is the Turing test?
It is a test proposed in 1950 where a human judge chats with a hidden person and a hidden machine. If the judge cannot reliably tell them apart, the machine is said to show intelligent behaviour.
Is the film The Imitation Game historically accurate?
The 2014 film captures the drama of Bletchley Park but takes many liberties, for example by simplifying the team’s work, inventing conflicts and changing details of the Bombe’s development. Treat it as an introduction, not a history lesson.
Summary
Alan Turing imagined the universal computer in 1936, helped turn the tide of the Second World War by attacking Enigma at Bletchley Park, designed some of the first real computers, launched the debate on machine intelligence and even explained how animals get their spots. He was punished for who he was and died young, yet his ideas power the phones, laptops and AI systems we use every day. Few lives show so clearly how one curious mind can change the world.


