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: Self-declaration is enough (legal change of the gender marker is possible based on self-declaration), Diagnosis required (legal change requires a medical or psychological diagnosis), Surgery required (legal change requires gender-affirming surgery), Surgery and sterilization required (legal change requires both gender-affirming surgery and sterilization), Legally possible, requirement unknown (legal change is in effect but the procedural requirement is not recorded in the source), Varies by region (rules differ between subnational jurisdictions, or legal change is only partially in effect) and Not legally possible (no legal procedure exists to change the gender marker on official identity documents).
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 gender-marker-change proportion (the legal direction) with the recorded legal-pathway requirement to produce a single categorical indicator. When legal change of the gender marker is fully in effect, we classify countries by their procedural requirement ("Self-declaration is enough", "Diagnosis required", "Surgery required", "Surgery and sterilization required", or "Legally possible, requirement unknown" when the requirement is not recorded). Otherwise the country is classified as "Varies by region" (legal change is only partially in effect across subnational jurisdictions) or "Not legally possible" (no legal procedure exists).
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: Gender marker can be legally changed”, part of the following publication: Bastian Herre and Pablo Arriagada (2023) - “LGBT+ Rights”. Data adapted from Velasco. Retrieved from https://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changed [online resource]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. “Gender marker can be legally changed – Velasco” [dataset]. Velasco, “LGBTI National Policy Dataset 2.0” [original data]. Retrieved June 12, 2026 from https://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changedDownload
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://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changed.csv?v=1&csvType=full&useColumnShortNames=falseMetadata URL (JSON format)
https://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changed.metadata.json?v=1&csvType=full&useColumnShortNames=falseExcel / Google Sheets
=IMPORTDATA("https://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changed.csv?v=1&csvType=full&useColumnShortNames=false")Python with Pandas
import pandas as pd
import requests
# Fetch the data.
df = pd.read_csv("https://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changed.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://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changed.metadata.json?v=1&csvType=full&useColumnShortNames=false").json()R
library(jsonlite)
# Fetch the data
df <- read.csv("https://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changed.csv?v=1&csvType=full&useColumnShortNames=false")
# Fetch the metadata
metadata <- fromJSON("https://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changed.metadata.json?v=1&csvType=full&useColumnShortNames=false")Stata
import delimited "https://claude-cms-base.owid.pages.dev/grapher/gender-marker-can-be-legally-changed.csv?v=1&csvType=full&useColumnShortNames=false", encoding("utf-8") clear