Articles · Historical Lives

Why Was Alan Turing Prosecuted for Homosexuality?

Alan Turing helped change the course of modern history, but in 1952 the British state prosecuted him because of a private, consensual relationship with another man.

By Adrian Solen · Published July 15, 2026 · Approximately 10 minutes

Alan Turing portrayed with an Enigma machine, wartime London, court documents, and a rainbow flag representing his codebreaking legacy and persecution for being gay.
Alan Turing helped break Nazi codes during World War II, yet Britain later prosecuted him for being gay—an enduring story of brilliance, injustice, and LGBTQ+ history.

Alan Turing was prosecuted in 1952 because Section 11 of the Criminal Law Amendment Act 1885 criminalized sexual acts between men, including consensual acts in private. In 2009, Gordon Brown’s government apologized because that discriminatory conviction led to probation conditioned on oestrogen treatment intended to suppress Turing’s sexuality.

The direct answer

 

Alan Turing was prosecuted in 1952 because British law criminalized sexual acts between men. After Turing acknowledged a consensual relationship with another man during a police investigation, he was charged with “gross indecency.”

The court offered him probation on the condition that he undergo hormonal treatment intended to suppress his sexuality. The treatment involved oestrogen and is now commonly described as chemical castration.

Who was Alan Turing?

 

Alan Turing was a British mathematician, logician, codebreaker, and one of the foundational figures in modern computer science. His work explored a question that was still extraordinary in the 1930s: what does it mean for a machine to perform a calculation?

During the Second World War, Turing worked at Bletchley Park, Britain’s secret codebreaking centre. He became closely involved in efforts to understand encrypted German communications, particularly messages protected by the Enigma system.

Turing contributed to the development of the Bombe, an electromechanical machine used to help codebreakers identify possible Enigma settings. His work formed part of a much larger operation involving mathematicians, linguists, engineers, intelligence analysts, radio operators, clerks, and thousands of other workers.

After the war, Turing continued working on computing, mathematics, and artificial intelligence. Today, his name is associated with computer science, artificial intelligence, cryptography, and the question of whether machines can appear to think.

Why was Alan Turing prosecuted?

Turing was not prosecuted because of his wartime activities, scientific work, or any accusation that he had harmed another person. He was prosecuted because he acknowledged a consensual sexual relationship with another man.

The relationship came to the attention of police during an investigation into a burglary at Turing’s home. Turing spoke openly about the relationship. At the time, however, honesty placed him in legal danger because sexual activity between men remained a criminal offence.

Turing and the other man were charged with gross indecency. Turing was convicted in 1952.

What was the gross indecency law?

The charge used against Turing came from Section 11 of the Criminal Law Amendment Act 1885. This provision became widely known as the Labouchere Amendment.

The law made acts of “gross indecency” between men criminal, whether they happened in public or private. The wording was broad and allowed the state to prosecute relationships and behaviour even when the more narrowly defined offence of sodomy could not be proved.

The law did not merely regulate public conduct. It allowed police, courts, and government institutions to reach into private relationships between consenting adults.

Oscar Wilde had been convicted under the same legal provision in 1895. More than half a century later, the law remained available for use against Turing and many other men.

What punishment did the court impose?

Turing was given a choice between imprisonment and probation subject to hormonal treatment. He accepted probation and underwent a course of oestrogen treatment.

The treatment was intended to reduce sexual desire. It also caused physical changes to his body. The state treated his sexuality not only as a crime but as something medicine should attempt to suppress.

This combination of criminal law and medical intervention was not unique to Turing. During the twentieth century, many gay, lesbian, bisexual, and gender-diverse people were subjected to treatments intended to change or eliminate parts of their identities.

Turing died in 1954, only two years after his conviction. He was 41 years old.

Was Alan Turing chemically castrated?

Yes, in the common modern sense of the phrase. Turing’s 1952 probation was conditional on hormonal treatment intended to suppress libido, and his biographer Andrew Hodges describes a year of oestrogen injections. “Chemical castration” is a later descriptive term, not the formal title of the court’s sentence.

The distinction matters. Turing was sentenced to probation and accepted the treatment instead of imprisonment. The phrase used today describes the intended effect of the hormones; it should not be presented as wording from the offence or as the official name of the sentence.

When was Alan Turing pardoned?

Public understanding of Turing’s scientific work and the injustice of his prosecution grew gradually. In 2009, the British government issued a formal apology for the way he had been treated.

On December 24, 2013, Turing received a posthumous royal pardon. The pardon recognized the exceptional injustice associated with his conviction, but it arrived almost sixty years after his death.

Turing’s pardon also raised a larger question: what about the thousands of other men who had been convicted under laws criminalizing consensual same-sex activity?

Later legislation created pardons for many people convicted under historical offences that would no longer be crimes. These measures became popularly associated with the name “Turing’s Law.”

Why did the British government officially apologize to Alan Turing in 2009?

The British government officially apologized on 10 September 2009 because Turing had been convicted under a law criminalizing sex between men and subjected to hormonal treatment as a condition of probation. Prime Minister Gordon Brown described the treatment as “utterly unfair” after a public petition asked the government to acknowledge the injustice.

The petition did not itself change Turing’s conviction. Brown’s statement was an official expression of regret on behalf of the government:

We’re sorry, you deserved so much better.

The apology was not a pardon and did not alter the conviction or amend the law. Turing’s separate royal pardon followed on 24 December 2013.

What is Turing’s Law?

“Turing’s Law” is the informal name for statutory pardon and disregard provisions concerning certain historical convictions for same-sex sexual activity. It is not Turing’s personal royal pardon. For living applicants, a pardon follows when the Home Office grants a disregard; qualifying deceased people receive statutory posthumous pardons without an individual application.

Turing’s own pardon was granted under the Royal Prerogative of Mercy on 24 December 2013. The provisions commonly called Turing’s Law came later through the Policing and Crime Act 2017 and built upon a disregard process established under earlier legislation.

Under the current England and Wales scheme, a disregard may be granted only if the offence has been repealed or abolished, any other person involved was 16 or older, and the conduct would not be criminal in the same circumstances today. Not every historical conviction therefore qualifies, and living applicants go through a case-by-case process.

Since 13 June 2023, the scheme has covered any repealed or abolished offence used to criminalize same-sex sexual activity, along with eligible UK service-law convictions. Scotland and Northern Ireland operate separate civilian schemes. A successful disregard removes or annotates official records and means the conviction need not be disclosed.

Why does Alan Turing’s story still matter?

Turing’s story is often presented as a contradiction: a nation depended on his intelligence during war and later punished him for a private part of his life.

But the deeper lesson is not only about contradiction. It is about the power of law, medicine, public morality, and social shame to define a person as unacceptable.

Intelligence, service, professional success, and public usefulness did not protect Turing. His accomplishments may have eventually made his name famous, but many less famous people experienced similar laws without receiving public recognition, an official apology, or a royal pardon.

His story demonstrates why historical discussions of sexuality cannot be reduced to abstract political arguments. Behind every law were individual lives, relationships, families, careers, fears, and losses.

Turing’s place in LGBTQ+ history comes from the documented collision between his private life and the criminal law, and from the later campaigns for apology and pardon. It should not reduce him to the injustice done to him. His work in mathematical logic, wartime cryptanalysis, computing, artificial intelligence and mathematical biology remains central to his place in history.

For the legal background, see the history of LGBTQ+ criminalization. Readers looking for a broader reading path can also use this guide to LGBTQ+ history books for adults.

From criminalization to partial reform

The law did not change immediately after Turing’s conviction. The 1957 Wolfenden Report recommended that consensual sexual activity between adult men in private should no longer be a criminal offence.

Partial decriminalization in England and Wales did not arrive until the Sexual Offences Act 1967. Even then, restrictions and inequalities remained, and legal reform continued over several decades.

Turing’s prosecution therefore belongs to a wider history. It shows how governments can maintain laws long after their human costs have become visible—and how recognition of injustice often arrives much later than justice itself.

What happened to Alan Turing? A dated timeline

Alan Turing’s 1952 conviction followed a burglary investigation in Wilmslow, Cheshire, during which he acknowledged a consensual sexual relationship with Arnold Murray. He received probation conditional on a year of oestrogen treatment. He died from cyanide poisoning on 7 June 1954; the inquest ruled suicide, although accidental poisoning has remained an alternative interpretation.

Established facts are that Turing died from cyanide poisoning at his home and that the coroner returned a verdict of suicide. His mother believed the poisoning was accidental, and later writers have disputed how certain that conclusion should be. The conviction and treatment belong in the context, but they should not be presented as a medically proven single cause of his death.

Key dates in Alan Turing’s prosecution, death, apology and pardon
DatePlaceWhat happened
January 1952Wilmslow, CheshireA burglary at Turing’s home led to a police investigation in which he acknowledged a sexual relationship with Arnold Murray.
31 March 1952Knutsford, CheshireTuring and Murray were convicted of gross indecency. Turing received 12 months’ probation conditional on hormonal treatment.
1952–1953ManchesterTuring underwent a year of oestrogen injections intended to reduce his libido.
7–8 June 1954Wilmslow, CheshireTuring died on 7 June and was found the following day. The medical cause was cyanide poisoning, and the inquest recorded suicide.
10 September 2009United KingdomPrime Minister Gordon Brown apologized on behalf of the government after a public petition.
24 December 2013United KingdomQueen Elizabeth II granted Turing a posthumous royal pardon under the Royal Prerogative of Mercy.
31 January 2017England and WalesThe Policing and Crime Act 2017 received Royal Assent, creating statutory pardons linked to the disregard scheme.
13 June 2023England and Wales; UK service lawThe scheme was widened to cover any repealed or abolished offence used to criminalize same-sex sexual activity.

Sources and further reading

The historical information in this article was checked against the following institutional sources.

  1. The National Archives: LGBTQ+ Rights in Britain
  2. The National Archives: Records of Gay, Lesbian and Bisexual History
  3. Bletchley Park: 10 Things to Know About Alan Turing
  4. Bletchley Park: Six Facts About the Bombe
  5. UK Ministry of Justice: Royal Pardon for Dr Alan Turing
  6. Treatment of Alan Turing was “appalling” – PM, archived Number 10 statement
  7. Alan Turing: A Short Biography — Andrew Hodges
  8. Alan Mathison Turing (1912–1954) — King’s College, Cambridge
  9. Royal Pardon for WW2 Code-breaker Dr Alan Turing — Ministry of Justice
  10. Disregards and Pardons Scheme: Caseworker Guidance — Home Office
  11. Alan Turing: The Enigma, The Centenary Edition — Princeton University Press
  12. Turing: Pioneer of the Information Age — WorldCat
  13. Alan Turing Decoded: The Man They Called Prof — The History Press

Books about Alan Turing: verified further reading

Readers looking for an Alan Turing biography book can begin with Andrew Hodges’s detailed account, then use the shorter Copeland biography or Dermot Turing’s family-informed study for another perspective.

For books that place Turing within a wider history, see LGBTQ+ history books for adults and books about gender identity and sexuality.

Reader Reflections

Share a suggestion, review, question, or personal response. Comments are reviewed before they appear publicly.

Please accept cookies before sending a comment. This lets us limit spam without storing your raw IP address publicly.

No public comments yet

Be the first to share a thoughtful note. Approved comments will appear here.