Data

Goods and services discrimination protections based on sexual orientation or gender identity

Velasco
See all data and research on:

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: Both protected (national law prohibits goods and services discrimination on both sexual orientation and gender identity), Sexual orientation only (national law prohibits goods and services discrimination on sexual orientation but not gender identity), Gender identity only (national law prohibits goods and services discrimination on gender identity but not sexual orientation), Varies by region (protections differ between subnational jurisdictions for either ground) and No protection (national law does not prohibit goods and services discrimination on either ground).
  • "Varies by region" also covers asymmetric cases where one dimension is fully unprotected and the other is partially protected across subnational jurisdictions — e.g. a federal country where some states have hate-crime protections for sexual orientation but none for gender identity.
Goods and services discrimination protections based on sexual orientation or gender identity
Velasco
Whether national law prohibits discrimination in the provision of goods and services based on sexual orientation, gender identity, both, or neither.
Source
Velasco (2026)with major processing by Our World in Data
Last updated
May 11, 2026
Next expected update
May 2027
Date range
1991–2025

Sources and processing

Velasco – LGBTI National Policy Dataset

The LGBTI National Policy Dataset (Version 2.0) is a country-year-policy panel dataset tracking the adoption, scope, and enforcement of LGBTI-related policies across 197 countries from 1991 to 2025. The dataset is distributed in long format, where each row represents a single country in a single year for one specific policy-status combination. It is designed for use in comparative political research, policy diffusion analysis, and quantitative cross-national studies of LGBTI rights.

The dataset covers 27 distinct policy areas organized into 54 policy-status combinations (each policy paired with two mutually exclusive status directions). Of these 54 combinations, 36 contain substantive data; the remaining 18 are structural placeholders with all-zero values, included to maintain a fully balanced panel suitable for econometric methods.

Retrieved on
May 11, 2026
Citation
This is the citation of the original data obtained from the source, prior to any processing or adaptation by Our World in Data. To cite data downloaded from this page, please use the suggested citation given in Reuse This Work below.
Velasco, Kristopher. 2026. "LGBTI National Policy Dataset, Version 2.0." [Dataset].

The LGBTI National Policy Dataset (Version 2.0) is a country-year-policy panel dataset tracking the adoption, scope, and enforcement of LGBTI-related policies across 197 countries from 1991 to 2025. The dataset is distributed in long format, where each row represents a single country in a single year for one specific policy-status combination. It is designed for use in comparative political research, policy diffusion analysis, and quantitative cross-national studies of LGBTI rights.

The dataset covers 27 distinct policy areas organized into 54 policy-status combinations (each policy paired with two mutually exclusive status directions). Of these 54 combinations, 36 contain substantive data; the remaining 18 are structural placeholders with all-zero values, included to maintain a fully balanced panel suitable for econometric methods.

Retrieved on
May 11, 2026
Citation
This is the citation of the original data obtained from the source, prior to any processing or adaptation by Our World in Data. To cite data downloaded from this page, please use the suggested citation given in Reuse This Work below.
Velasco, Kristopher. 2026. "LGBTI National Policy Dataset, Version 2.0." [Dataset].

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.

Read about our data pipeline
Notes on our processing step for this indicator

From the original dataset's two separate indicators — one for sexual orientation and one for gender identity — we combined them into a single categorical indicator with five categories: both protected, sexual orientation only, gender identity only, no protection, and "Varies by region" (any partial subnational coverage in either dimension).

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: Goods and services discrimination protections based on sexual orientation or gender identity”, 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/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.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 Data

Full citation

Velasco (2026) – with major processing by Our World in Data. “Goods and services discrimination protections based on sexual orientation or gender identity – Velasco” [dataset]. Velasco, “LGBTI National Policy Dataset 2.0” [original data]. Retrieved May 20, 2026 from https://archive.ourworldindata.org/20260520-161739/grapher/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.html (archived on May 20, 2026).

Quick download

Download the data shown in this chart as a ZIP file containing a CSV file, metadata in JSON format, and a README. The CSV file can be opened in Excel, Google Sheets, and other data analysis tools.

Data API

Use these URLs to programmatically access this chart's data and configure your requests with the options below. Our documentation provides more information on how to use the API, and you can find a few code examples below.

Data URL (CSV format)
https://ourworldindata.org/grapher/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.csv?v=1&csvType=full&useColumnShortNames=false
Metadata URL (JSON format)
https://ourworldindata.org/grapher/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.metadata.json?v=1&csvType=full&useColumnShortNames=false

Code examples

Examples of how to load this data into different data analysis tools.

Excel / Google Sheets
=IMPORTDATA("https://ourworldindata.org/grapher/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.csv?v=1&csvType=full&useColumnShortNames=false")
Python with Pandas
import pandas as pd
import requests

# Fetch the data.
df = pd.read_csv("https://ourworldindata.org/grapher/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.csv?v=1&csvType=full&useColumnShortNames=false", storage_options = {'User-Agent': 'Our World In Data data fetch/1.0'})

# Fetch the metadata
metadata = requests.get("https://ourworldindata.org/grapher/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.metadata.json?v=1&csvType=full&useColumnShortNames=false").json()
R
library(jsonlite)

# Fetch the data
df <- read.csv("https://ourworldindata.org/grapher/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.csv?v=1&csvType=full&useColumnShortNames=false")

# Fetch the metadata
metadata <- fromJSON("https://ourworldindata.org/grapher/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.metadata.json?v=1&csvType=full&useColumnShortNames=false")
Stata
import delimited "https://ourworldindata.org/grapher/goods-and-services-discrimination-protections-sexual-orientation-gender-identity.csv?v=1&csvType=full&useColumnShortNames=false", encoding("utf-8") clear