Alan Turing and the Turing test: the man who asked 'Can machines think?'
The story of Alan Turing, the British mathematician and codebreaker who imagined thinking machines in 1950, invented the Turing test, and laid the foundations of computing and AI.
First published · AI Digested
Long before there were computers in every home, before the phrase "artificial intelligence" existed, a British mathematician asked the question that still drives the field: can machines think? His name was Alan Turing.
The universal machine
Turing was born in London in 1912 and studied mathematics at King's College, Cambridge. In 1936, aged just 24, he published a paper that tackled an abstract problem in logic. To solve it, he imagined a simple device that read and wrote symbols on an endless strip of tape, following a table of instructions.
His key insight was that one machine of this kind, a universal machine, could imitate any other, as long as you gave it the right instructions. Change the instructions, and the same machine does a completely different job.
That is exactly what a modern computer is: one machine that can run any program. Turing described it a decade before the first electronic computers were built.
Bletchley Park
During the Second World War, Turing worked at Bletchley Park, Britain's secret codebreaking centre. Building on work by Polish mathematicians, he designed the bombe, an electromechanical machine that dramatically sped up finding the daily settings of Germany's Enigma cipher. He also led work on naval Enigma, vital to the Battle of the Atlantic.
Bletchley's work is widely credited with shortening the war. It was a team of thousands, but Turing's contribution was central, and it stayed secret for decades.
"Computing Machinery and Intelligence"
After the war, Turing worked on early computer designs in London and Manchester. In 1950, he published a paper in the philosophy journal Mind that begins:
"I propose to consider the question, 'Can machines think?'"
Turing thought "think" was too vague to argue about. So he replaced the question with a game.
The imitation game
In Turing's imitation game, a human judge has text conversations with two hidden players: one a person, one a machine. The judge asks anything they like and must decide which is which. If the machine can regularly fool the judge, Turing argued, we have as much reason to say it thinks as we do for other people.
This became known as the Turing test.
Turing also made a prediction: that in about fifty years, computers would play the game well enough that an average judge would have no more than a 70% chance of making the right identification after five minutes.
He also anticipated, and answered, many objections still raised today: that machines can't be creative, can't have feelings, or can only do what they're programmed to do. He even suggested the best route to a thinking machine might be to build a "child machine" and teach it, an early glimpse of machine learning.
A tragic end
In 1952, Turing was prosecuted for "gross indecency" because of a relationship with a man, as homosexuality was then illegal in Britain. To avoid prison, he accepted hormone treatment, a form of chemical castration. He lost his security clearance.
He died in June 1954, aged 41, from cyanide poisoning. The inquest ruled it suicide, although some have questioned that conclusion.
In 2009, Prime Minister Gordon Brown issued a public apology for "the appalling way he was treated". Turing received a posthumous royal pardon in 2013, and in 2017 the "Turing law" pardoned thousands of other men convicted under the same laws. Since 2021, his portrait has appeared on the Bank of England £50 note.
Has the Turing test been passed?
For decades, chatbots competed in Turing test contests, mostly fooling judges with tricks such as pretending to be a teenager who doesn't speak English well.
Large language models changed that. In a 2025 study at the University of California San Diego, participants chatted for five minutes with a human and an AI at the same time. When instructed to adopt a particular persona, GPT-4.5 was judged to be the human 73% of the time, more often than the real humans.
Yet few experts think that settles Turing's question. Modern chatbots can imitate human conversation brilliantly while still making basic mistakes no thoughtful person would. Many now see the Turing test less as a measure of intelligence and more as a test of how easily we are persuaded.
Turing's legacy
The idea of a programmable computer. A test for machine intelligence. The suggestion that machines might learn like children. The highest award in computer science, the ACM A.M. Turing Award, is named after him. Every chatbot you use today is, in a sense, an answer to the question he asked in 1950.
Read on
Common questions
Has any AI passed the Turing test?
It depends on the version. In a 2025 study at the University of California San Diego, people judged OpenAI's GPT-4.5 to be the human 73% of the time in five-minute conversations when it was told to adopt a persona. Many researchers argue this says more about how people judge conversation than about machine intelligence.
What was the 'universal machine'?
In 1936, Turing described an imaginary machine that could carry out any calculation if given the right instructions. This idea of a single machine that runs any program is the basis of every modern computer.
Did Turing break the Enigma code alone?
No. Codebreaking at Bletchley Park was a team effort involving thousands of people, building on earlier Polish work. Turing's ideas, especially for the 'bombe' machines that sped up finding Enigma settings, were crucial.
Sources and further reading
Spotted a mistake or something out of date? Tell us and we will fix it. Read how we research and write our articles.
Read next
Dartmouth 1956: the summer artificial intelligence got its name
How a small 1956 summer workshop at Dartmouth College named the field of artificial intelligence, who was there, what they hoped to achieve, and why their optimism was so wrong about timing.
Updated 22 November 2026
The AI winters: when the hype collapsed and the money ran out
Twice, in the 1970s and late 1980s, artificial intelligence failed to live up to its promises and funding collapsed. What happened, why, and what the AI winters can teach us about today's boom.
Updated 22 November 2026
Deep Blue beats Kasparov: the day a computer became chess champion
In May 1997, IBM's Deep Blue defeated world chess champion Garry Kasparov. The story of the match, how Deep Blue worked, the controversy, and what it did and didn't prove about AI.
Updated 22 November 2026