Same-sex sexual acts legal
What you should know about this indicator
- This data comes from the LGBTI National Policy Dataset, compiled by Kristopher Velasco at Princeton University. It tracks the adoption, scope, and enforcement of 27 LGBTI-related policies across 197 countries, with annual data starting in 1991.
- The indicator is coded as follows: Legal (consensual same-sex sexual acts are legal under national law), Varies by region (laws differ between subnational jurisdictions), No legal provisions (no national law specifically addresses consensual same-sex sexual acts), Criminalized but not enforced (consensual same-sex sexual acts are criminalized under national law but the dataset records the criminalization as not enforced) and Criminalized (consensual same-sex sexual acts are criminalized under national law).
- We added a "but not enforced" category for country-years where the policy is on the books but the dataset records it as not enforced.
More Data on LGBT+ Rights
Sources and processing
This data is based on the following sources
How we process data at Our World in Data
All data and visualizations on Our World in Data rely on data sourced from one or several original data providers. Preparing this original data involves several processing steps. Depending on the data, this can include standardizing country names and world region definitions, converting units, calculating derived indicators such as per capita measures, as well as adding or adapting metadata such as the name or the description given to an indicator.
At the link below you can find a detailed description of the structure of our data pipeline, including links to all the code used to prepare data across Our World in Data.
Notes on our processing step for this indicator
From the original dataset, we combined the two opposing direction indicators (the progressive direction, e.g. legal, and the regressive direction, e.g. illegal) into a single categorical indicator. We bucketed each proportion into 0, partial (between 0 and 1), or 1, and then assigned a category from the bucket combination. Countries where either direction shows partial subnational implementation are classified as "Varies by region". We added a "but not enforced" category for country-years where the policy is on the books but the dataset records it as not enforced.
Reuse this work
Citations
How to cite this page
To cite this page overall, including any descriptions, FAQs or explanations of the data authored by Our World in Data, please use the following citation:
“Data Page: Same-sex sexual acts legal”, part of the following publication: Bastian Herre and Pablo Arriagada (2023) - “LGBT+ Rights”. Data adapted from Velasco. Retrieved from https://archive.ourworldindata.org/20260520-161739/grapher/same-sex-sexual-acts-legal.html [online resource] (archived on May 20, 2026).How to cite this data
In-line citationIf you have limited space (e.g. in data visualizations), you can use this abbreviated in-line citation:
Velasco (2026) – with major processing by Our World in DataFull citation
Velasco (2026) – with major processing by Our World in Data. “Same-sex sexual acts legal – Velasco” [dataset]. Velasco, “LGBTI National Policy Dataset 2.0” [original data]. Retrieved May 20, 2026 from https://archive.ourworldindata.org/20260520-161739/grapher/same-sex-sexual-acts-legal.html (archived on May 20, 2026).Download
Quick download
You can download the visualization as an image or download the chart data.