Data

Income inequality: Gini coefficient (before tax)

WID
See all data and research on:

What you should know about this indicator

  • Income is pre-tax — measured before taxes have been paid and most government benefits have been received. It is, however, measured after the operation of pension schemes, both private and public.
  • The data is estimated from a combination of household surveys, tax records and national accounts data. This combination can provide a more accurate picture of the incomes of the richest, which tend to be captured poorly in household survey data alone.
  • These underlying data sources are not always available. For some countries, observations are extrapolated from data relating to other years, or are sometimes modeled based on data observed in other countries. For more information on this methodology, see this related technical note.
Income inequality: Gini coefficient (before tax)
WID
The measures inequality on a scale from 0 to 1. Higher values indicate higher inequality. Inequality is measured here in terms of income before taxes and benefits.
Source
World Inequality Database (WID.world) (2026)with major processing by Our World in Data
Last updated
February 10, 2026
Next expected update
February 2027
Date range
1820–2024

Sources and processing

World Inequality Database (WID.world) – World Inequality Database (WID)

The World Inequality Database (WID.world) aims to provide open and convenient access to the most extensive available database on the historical evolution of the world distribution of income and wealth, both within countries and between countries.

Retrieved on
March 17, 2026
Retrieved from
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.
World Inequality Database (WID), https://wid.world

The World Inequality Database (WID.world) aims to provide open and convenient access to the most extensive available database on the historical evolution of the world distribution of income and wealth, both within countries and between countries.

Retrieved on
March 17, 2026
Retrieved from
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.
World Inequality Database (WID), https://wid.world

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

We extract estimations of Gini, mean, percentile thresholds, averages, and shares via the wid Stata command. We calculate threshold and share ratios by dividing different thresholds and shares, respectively.

Interpolations and extrapolations are excluded by using the option exclude in the Stata command.

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: Income inequality: Gini coefficient (before tax)”, part of the following publication: Joe Hasell, Bertha Rohenkohl, Pablo Arriagada, Esteban Ortiz-Ospina, and Max Roser (2023) - “Economic Inequality”. Data adapted from World Inequality Database (WID.world). Retrieved from https://archive.ourworldindata.org/20260317-123427/grapher/gini-coefficient-before-tax-wid.html [online resource] (archived on March 17, 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:

World Inequality Database (WID.world) (2026) – with major processing by Our World in Data

Full citation

World Inequality Database (WID.world) (2026) – with major processing by Our World in Data. “Income inequality: Gini coefficient (before tax) – WID” [dataset]. World Inequality Database (WID.world), “World Inequality Database (WID)” [original data]. Retrieved March 31, 2026 from https://archive.ourworldindata.org/20260317-123427/grapher/gini-coefficient-before-tax-wid.html (archived on March 17, 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/gini-coefficient-before-tax-wid.csv?v=1&csvType=full&useColumnShortNames=false
Metadata URL (JSON format)
https://ourworldindata.org/grapher/gini-coefficient-before-tax-wid.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/gini-coefficient-before-tax-wid.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/gini-coefficient-before-tax-wid.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/gini-coefficient-before-tax-wid.metadata.json?v=1&csvType=full&useColumnShortNames=false").json()
R
library(jsonlite)

# Fetch the data
df <- read.csv("https://ourworldindata.org/grapher/gini-coefficient-before-tax-wid.csv?v=1&csvType=full&useColumnShortNames=false")

# Fetch the metadata
metadata <- fromJSON("https://ourworldindata.org/grapher/gini-coefficient-before-tax-wid.metadata.json?v=1&csvType=full&useColumnShortNames=false")
Stata
import delimited "https://ourworldindata.org/grapher/gini-coefficient-before-tax-wid.csv?v=1&csvType=full&useColumnShortNames=false", encoding("utf-8") clear