Gini index
Real data: World Bank, World Development Indicators, indicator SI.POV.GINI, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Gini index measures the extent to which the distribution of income (or, in some cases, consumption expenditure) among individuals or households within an economy deviates from a perfectly equal distribution. A Lorenz curve plots the cumulative percentages of total income received against the cumulative number of recipients, starting with the poorest individual or household. The Gini index measures the area between the Lorenz curve and a hypothetical line of absolute equality, expressed as a percentage of the maximum area under the line. Thus a Gini index of 0 represents perfect equality, while an index of 100 implies perfect inequality.
Limits and exceptions (World Bank note)
Gini coefficients are not unique. It is possible for two different Lorenz curves to give rise to the same Gini coefficient. Furthermore it is possible for the Gini coefficient of a developing country to rise (due to increasing inequality of income) while the number of people in absolute poverty decreases. This is because the Gini coefficient measures relative, not absolute, wealth. Another limitation of the Gini coefficient is that it is not additive across groups, i.e. the total Gini of a society is not equal to the sum of the Gini's for its sub-groups. Thus, country-level Gini coefficients cannot be aggregated into regional or global Gini's, although a Gini coefficient can be computed for the aggregate. Because the underlying household surveys differ in methods and types of welfare measures collected, data are not strictly comparable across countries or even across years within a country. Two sources of non-comparability should be noted for distributions of income in particular. First, the surveys can differ in many respects, including whether they use income or consumption expenditure as the living standard indicator. The distribution of income is typically more un
The numbers in 2023
In 2023, 60 countries have a value. The highest is Colombia (54.6); the lowest is India (23). The median country value is 33.75.
Top 10 countries, 2023
value
Highest, 2023
| # | Country | Value |
|---|---|---|
| 1 | Colombia | 54.6 |
| 2 | Brazil | 51.5 |
| 3 | Panama | 48.9 |
| 4 | Honduras | 46.8 |
| 5 | Costa Rica | 46.7 |
| 6 | Guatemala | 45.2 |
| 7 | Ecuador | 44.6 |
| 8 | Paraguay | 44.2 |
| 9 | Turkiye | 43.7 |
| 10 | Argentina | 42.4 |
Lowest, 2023
| # | Country | Value |
|---|---|---|
| 1 | India | 23 |
| 2 | Slovak Republic | 23.8 |
| 3 | Slovenia | 24.7 |
| 4 | Kiribati | 24.7 |
| 5 | Czechia | 25.7 |
| 6 | Norway | 26.5 |
| 7 | Moldova | 26.8 |
| 8 | Belgium | 26.8 |
| 9 | Kyrgyz Republic | 27.2 |
| 10 | Armenia | 27.2 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1960s | 2 |
| 1970s | 8 |
| 1980s | 27 |
| 1990s | 54 |
| 2000s | 83 |
| 2010s | 93 |
| 2020s | 81 |
First rows
gini-index.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Albania | ALB | Europe & Central Asia | Upper middle income | 1996 | 27 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2002 | 31.7 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2005 | 30.6 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2008 | 30 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2012 | 29 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2014 | 34.6 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2015 | 32.8 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2016 | 33.7 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Gini index, exactly as the World Bank API returns it (not rounded) |
Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.
Practice questions
answers computed from the file
Which country has the highest value in 2023?
Colombia, with 54.6.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2023)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2023)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2023
AND value = (SELECT MAX(value) FROM wb WHERE year = 2023);pandas (df = pd.read_csv("gini-index.csv"))
y = df[df.year == 2023]
y[y.value == y.value.max()][["country", "value"]]File: gini-index.csv
How many countries report a value for 2023?
60 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2023)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2023;pandas (df = pd.read_csv("gini-index.csv"))
(df.year == 2023).sum()File: gini-index.csv
What is the median across countries in 2023?
33.75 (median of the 60 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2023))SQL (table wb = the CSV)
-- SQLite has no MEDIAN(); this picks the middle value(s)
SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2023 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2023) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2023));pandas (df = pd.read_csv("gini-index.csv"))
df[df.year == 2023]["value"].median()File: gini-index.csv
Which country rose the most between 2013 and 2023?
Turkiye: from 40.2 to 43.7, a rise of 3.5 (out of 51 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (gini-index-wide.csv): add a column = [2023] - [2013], then sort it largest to smallest.SQL (table wb = the CSV)
SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
WHERE a.year = 2013 AND b.year = 2023 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("gini-index.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2023] - w[2013]).dropna().nlargest(1)File: gini-index.csv
Which year has the most countries reporting?
2018, with 93 countries. (Later years are still filling in as countries report.)
Excel (on the long CSV: E = year, F = value)
Make a pivot table: year in Rows, Count of value in Values, then sort by the count.SQL (table wb = the CSV)
SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;pandas (df = pd.read_csv("gini-index.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: gini-index.csv