Where Is Sodomy Illegal? Laws by State, Country, and Military

Sodomy is illegal in roughly 60 to 65 countries, concentrated in Sub-Saharan Africa, the Middle East, Southeast Asia, and parts of the Caribbean, with penalties running from fines to life imprisonment to execution. In the United States, every sodomy law was rendered unenforceable by the Supreme Court’s 2003 decision in Lawrence v. Texas, though 12 states still keep the old statutes on their books. The direction of global travel is toward decriminalization, but several countries have moved the other way in recent years, including Uganda’s 2023 law carrying the death penalty for some offenses.

Countries Where Sodomy Is Still a Crime

The International Lesbian, Gay, Bisexual, Trans and Intersex Association counted 62 UN member states criminalizing consensual same-sex conduct in its 2024 report. The Human Dignity Trust put the figure at 65 when non-UN territories are included. The methodologies differ; the picture does not.

Sub-Saharan Africa holds the largest concentration, with more than 30 countries maintaining some form of criminalization. Uganda’s Anti-Homosexuality Act, passed in 2023, imposes life imprisonment for consensual same-sex acts and the death penalty for “aggravated homosexuality,” a category that includes transmitting HIV through same-sex contact and repeat offenses.1Parliament of the Republic of Uganda. The Anti-Homosexuality Act, 2023 Nigeria criminalizes same-sex conduct under both its federal penal code and its Same-Sex Marriage (Prohibition) Act of 2013, with up to 10 years in prison for anyone who registers, operates, or participates in organizations supporting same-sex relationships.

In the Middle East, Iran and Saudi Arabia impose some of the harshest penalties worldwide, up to and including execution. Yemen, Qatar, and the United Arab Emirates also keep the death penalty as a legal possibility. In Southeast Asia, Malaysia and Brunei retain “unnatural offense” provisions inherited from British colonial law. In the Caribbean and South America, Guyana still criminalizes “buggery” under an 1893 statute, with life imprisonment available for the offense and up to 10 years for an attempt.

The reach of each country’s law matters as much as its existence. Some target only male same-sex conduct. Others criminalize all oral and anal sex regardless of the participants’ genders. A few extend specifically to female same-sex conduct. Identical-sounding statutes can mean very different things once you cross a border.

What the Penalties Look Like

Written penalties span fines, short jail sentences, prison terms of two years to life, corporal punishment, and death. Uganda sets life imprisonment as the baseline under its 2023 law.1Parliament of the Republic of Uganda. The Anti-Homosexuality Act, 2023 Guyana’s colonial-era statute goes to the same maximum.

Corporal punishment is active in several jurisdictions. In Aceh, Indonesia, the provincial Islamic criminal code permits up to 100 lashes for consensual same-sex acts. In northern Nigerian states applying sharia law, penalties mirror those for adultery: an unmarried person faces 100 lashes and up to one year in prison; a married person can be sentenced to death by stoning.

The death penalty for consensual same-sex conduct is currently imposed or legally available in approximately 12 countries: Afghanistan, Brunei, Iran, Mauritania, Nigeria (northern states), Pakistan, Qatar, Saudi Arabia, Somalia, Uganda, the United Arab Emirates, and Yemen.2Death Penalty Information Center. Uganda’s Controversial Anti-Homosexuality Act Includes Possibility of Death Sentence Not every country on that list carries out executions. In some, sentences are commuted or never imposed. In Iran and Saudi Arabia, executions have been documented.

Enforcement patterns vary as much as the written law. Some governments monitor dating apps, conduct raids, and surveil digital communications. Others rarely prosecute unless the conduct becomes public, or use the statute selectively during political crackdowns and personal disputes. A dormant law can wake up suddenly.

The Law in the United States

In 2003, the Supreme Court decided Lawrence v. Texas, holding that laws criminalizing private, consensual sexual conduct between adults violate the liberty protections of the Due Process Clause of the Fourteenth Amendment.3Justia U.S. Supreme Court Center. Lawrence v. Texas The decision overturned Bowers v. Hardwick, the 1986 ruling that had upheld Georgia’s sodomy statute, and invalidated every state sodomy law in the country.

No state or local government can lawfully enforce a sodomy statute against consenting adults. A prosecutor who tried would face immediate dismissal; any conviction would be reversed on appeal. The constitutional protection applies regardless of what a state’s penal code still says.

The 12 States That Still Have Sodomy Laws on the Books

Twelve states have never repealed their sodomy statutes: Florida, Georgia, Kansas, Kentucky, Louisiana, Massachusetts, Michigan, Mississippi, North Carolina, Oklahoma, South Carolina, and Texas. These “zombie laws” persist because repeal takes an affirmative act by the state legislature: a bill introduced, moved through committee, passed by both chambers, and signed by the governor. In many of these states that political will has not materialized, either because lawmakers view repeal as risky or because they treat the statutes as dead letters.

They are not entirely dead. People convicted of sodomy before 2003 may still carry those records, which can surface on background checks and affect housing or employment. Expungement procedures for a conviction under a law later declared unconstitutional vary by state. Some have streamlined processes; others require a formal petition and court hearing. If you have a pre-Lawrence conviction, a criminal defense attorney in your state can advise on whether and how to clear it.

Dobbs and the Future of Lawrence

The 2022 decision in Dobbs v. Jackson Women’s Health Organization, which overturned Roe v. Wade, included a concurring opinion by Justice Clarence Thomas arguing that the Court “should reconsider all of this Court’s substantive due process precedents, including Griswold, Lawrence, and Obergefell.”4Supreme Court of the United States. Dobbs v. Jackson Women’s Health Organization No other justice joined the concurrence, and the Dobbs majority opinion stated it was not disturbing other precedents. The concern was real enough to prompt action: lawmakers in several states have introduced bills to repeal zombie sodomy statutes so they cannot snap back into effect if Lawrence were ever overturned.

Michigan advanced a bill package that would repeal its broad “crime against nature” statute and replace it with a narrowly targeted ban on bestiality. The reasoning is simple. If the constitutional protection ever disappears, the only remaining safeguard is making sure the underlying law is gone.

Sodomy Under U.S. Military Law

Civilian and military law moved on different timelines. For decades, Article 125 of the Uniform Code of Military Justice criminalized all sodomy, consensual or not, between service members of any gender.5Office of the Law Revision Counsel. 10 USC 925 – Art. 125. Kidnapping Congress narrowed Article 125 in 2013 to forcible sodomy and bestiality, and a 2016 overhaul folded sexual offenses into Article 120 and repurposed Article 125 entirely, which now covers kidnapping. Consensual sodomy is no longer a punishable offense under military law.

Countries That Have Recently Decriminalized

The global line, while uneven, bends toward decriminalization. Significant changes since 2018 include:

  • India (2018): The Supreme Court struck down Section 377 of the Indian Penal Code in Navtej Singh Johar v. Union of India, decriminalizing consensual same-sex conduct for over a billion people.
  • Bhutan (2021): Amended its penal code to remove provisions criminalizing same-sex relations.
  • Antigua and Barbuda (2022): The High Court of Justice struck down the colonial-era sodomy law.
  • Singapore (2022): Repealed Section 377A, which had criminalized sex between men since British colonial rule.
  • St. Kitts and Nevis (2022): The Eastern Caribbean Supreme Court invalidated the country’s anti-sodomy provisions.
  • Cook Islands (2023): Parliament voted to decriminalize same-sex sexual activity between men.

Most of these changes came through court rulings on privacy and equality grounds rather than legislative action. The Caribbean has been especially active, with multiple former British colonies dismantling Section 377 variants through constitutional challenges. India’s decision carried added weight because Section 377 served as the template for the colonial provisions exported throughout the British Empire.

Travel Risks in Countries That Criminalize Sodomy

If you are traveling to a country where same-sex conduct is a crime, the legal exposure is not theoretical. Some governments monitor social media, dating apps, and digital communications. Others rely on informants or focus on foreigners specifically.

The U.S. government cannot shield you from foreign prosecution. Consular staff can visit you in detention, provide a list of local attorneys, and request updates from local authorities, but they cannot investigate your case, represent you in court, or pay your legal expenses.6U.S. Department of State – Bureau of Consular Affairs. Victims of Crime You are subject to the laws of the country you are in.

One international protection does exist. INTERPOL will not issue a Red Notice for offenses related to homosexual acts; its rules exclude “offences relating to family/private matters.”7INTERPOL. About Red Notices A country cannot use INTERPOL’s international arrest-request system to pursue someone across borders for a sodomy-related charge. Extradition from the United States is also unlikely in these cases. U.S. extradition treaties generally require “dual criminality,” meaning the offense must be a crime in both countries. Since consensual sodomy is not a crime anywhere in the U.S., that requirement blocks the request.

Asylum for People Fleeing Sodomy Laws

People who face prosecution or persecution under foreign sodomy laws may qualify for asylum in the United States. Under the Immigration and Nationality Act, a person qualifies as a refugee if they have a well-founded fear of persecution based on race, religion, nationality, political opinion, or membership in a “particular social group.”8USCIS. Nexus – Particular Social Group (PSG) LP (RAIO) U.S. immigration authorities have recognized that persecution based on sexual orientation falls within the particular social group category.

Living in a country where sodomy is illegal does not by itself qualify someone for asylum. The applicant must show an individualized risk through past harm, credible threats, or evidence that the law is actively enforced against people in their situation, and must show that the persecution is carried out by the government or by private actors the government is unwilling or unable to control. The claim must be filed within one year of arrival, with limited exceptions, and the applicant carries the burden of proof on every element.