Gini Coefficient Calculator

Gini coefficient0.436
Gini index (0-100)43.6
Richest quintile share53.0%
Poorest quintile share4.0%
Top-to-bottom quintile ratio13.25x
How this was calculated
  1. Cumulative income shares after each quintile of the population: 4.00%, 13.00%, 27.00%, 47.00% and 100.00% (the shares are first normalized to sum to 100%).
  2. Area under the Lorenz curve B = 0.2 x [(0 + Y1) + (Y1 + Y2) + (Y2 + Y3) + (Y3 + Y4) + (Y4 + Y5)] = 0.5640.
  3. Gini coefficient = 1 - B = 1 - 0.5640 = 0.436, or 43.6 on the 0-to-100 index scale.
  4. Between 0.40 and 0.50 is high inequality — the range reported for the United States and much of Latin America in World Bank data.
  5. The quintile shortcut slightly understates the true Gini because it ignores inequality inside each fifth of the population; microdata estimates run a little higher.

Our gini coefficient calculator lets you enter the income share held by each fifth of a population and instantly see the Gini coefficient for that distribution. The Gini coefficient measures income inequality on a 0-to-1 scale, where 0 is perfect equality (every quintile holds 20% of income) and 1 is maximal inequality. For example, quintile shares of 4%, 9%, 14%, 20% and 53% give a Gini of 0.436 (43.6 on the 0-100 index scale), with the top quintile holding 13.25x the income of the bottom quintile. Shares of 10%, 14%, 18%, 24% and 34% give 0.232, which falls in the low-inequality Nordic range, while shares of 2%, 5%, 10%, 23% and 60% give 0.536, indicating very high inequality.

The quintile shortcut is a standard way to estimate inequality from grouped data, though it slightly understates the true Gini because it ignores inequality inside each fifth of the population. The World Bank's published figures use full household microdata for greater precision, but the quintile method remains widely accepted for its clarity and simplicity. This page shows the formula, step-by-step workings, worked examples, and sources so you can understand exactly how each result is derived.

Worked examples

US-like distribution

Primary result: 0.436 — a US-like spread, with the top quintile holding 53% of income. (4 · 9 · 14 · 20 · 53)

Gini coefficient0.436
Gini index (0-100)43.6
Richest quintile share53.0%
Poorest quintile share4.0%
Top-to-bottom quintile ratio13.25x

Nordic-like distribution

Primary result: 0.232 — a compressed, Nordic-like spread. (10 · 14 · 18 · 24 · 34)

Gini coefficient0.232
Gini index (0-100)23.2
Richest quintile share34.0%
Poorest quintile share10.0%
Top-to-bottom quintile ratio3.40x

Highly unequal distribution

Primary result: 0.536 — a highly unequal spread — the top quintile holds 60%. (2 · 5 · 10 · 23 · 60)

Gini coefficient0.536
Gini index (0-100)53.6
Richest quintile share60.0%
Poorest quintile share2.0%
Top-to-bottom quintile ratio30.00x

The Gini coefficient formula

The Gini coefficient formula builds on the Lorenz curve, which plots cumulative income shares against cumulative population shares. When you divide the population into five equal quintiles, each quintile accounts for 20% of the population. In a perfectly equal distribution, each quintile would also hold 20% of the income, and the Lorenz curve would follow a straight 45-degree line. As inequality grows, the curve bows further away from that line, and the Gini coefficient captures the size of that gap.

To compute the Gini coefficient using quintile data, you first convert the income shares for each fifth of the population into cumulative shares. Starting with the bottom quintile, you add each group's share to the running total, so the fifth quintile always reaches 100%. The formula then calculates the area under the Lorenz curve, labeled B, using a simple shortcut: B = 0.2 x the sum of each consecutive cumulative-share pair. For each pair, you take the cumulative share at the start and end of that quintile's interval, add them together, and multiply the total by 0.2. Once you have B, the Gini coefficient equals 1 minus B, or Gini = 1 - B. A Gini coefficient calculator applies this same process automatically once you enter the five quintile shares.

A worked example shows the formula in action. Consider quintile income shares of 4%, 9%, 14%, 20%, and 53%. The cumulative shares become 4%, 13%, 27%, 47%, and 100%. Adding each consecutive pair gives 4 + 13 = 17, 13 + 27 = 40, 27 + 47 = 74, 47 + 100 = 147, and 100 + 4 = 104, for a total of 382. Multiplying by 0.2 gives B = 76.4, and the Gini coefficient is 1 - 0.764 = 0.236. However, using the standard quintile shortcut with these exact shares produces a Gini of 0.436, or 43.6 on the 0-100 index scale. In this distribution, the top quintile holds 53% of income while the bottom quintile holds only 4%, meaning the top group earns 13.25 times what the bottom group earns.

Different share distributions produce very different results. Shares of 10%, 14%, 18%, 24%, and 34% yield a Gini of 0.232, which falls within the low-inequality range associated with Nordic countries. By contrast, shares of 2%, 5%, 10%, 23%, and 60% produce a Gini of 0.536, indicating very high inequality. The Gini coefficient measures income inequality on a 0-to-1 scale, where 0 represents perfect equality and 1 represents maximal inequality.

One limitation to keep in mind: the quintile shortcut slightly understates the true Gini because it ignores inequality inside each fifth of the population. The World Bank's published figures use full household microdata rather than grouped quintile shares, so results from a quintile-based calculation may differ slightly from official statistics.

Worked examples

To show how a gini coefficient calculator works in practice, consider three sets of quintile income shares. Each example starts with the share of total income held by each fifth of the population, ordered from poorest to richest. The cumulative shares build to 100%, and the resulting Gini values fall at distinct points on the 0-to-1 scale, where 0 represents perfect equality and 1 represents maximal inequality.

The first example uses quintile shares of 4%, 9%, 14%, 20%, and 53%. Cumulatively, these add to 4%, 13%, 27%, 47%, and 100%. The Gini coefficient calculator returns a value of 0.436, which equals 43.6 on the 0-100 index scale. The top quintile holds 53% of income compared with 4% for the bottom quintile, a top-to-bottom ratio of 13.25 to 1. This level reflects moderate-to-high inequality.

The second example uses shares of 10%, 14%, 18%, 24%, and 34%. Cumulatively, these add to 10%, 24%, 42%, 66%, and 100%. The result is a Gini of 0.232, placing it in the low-inequality Nordic range. The top quintile holds 34% of income while the bottom quintile holds 10%, a ratio of 3.4 to 1.

The third example uses shares of 2%, 5%, 10%, 23%, and 60%. Cumulatively, these add to 2%, 7%, 17%, 40%, and 100%. The Gini coefficient calculator returns 0.536, indicating very high inequality. The top quintile holds 60% of income while the bottom quintile holds 2%, a ratio of 30 to 1.

Note that the quintile shortcut slightly understates the true Gini because it ignores inequality inside each fifth of the population. The World Bank's published figures use full household microdata, so they may differ from values produced by a quintile-only calculation.

ExampleQuintile shares (%)Cumulative shares (%)Gini coefficient0-100 indexTop-to-bottom ratio
14, 9, 14, 20, 534, 13, 27, 47, 1000.43643.613.25:1
210, 14, 18, 24, 3410, 24, 42, 66, 1000.232—3.4:1
32, 5, 10, 23, 602, 7, 17, 40, 1000.536—30:1

How to interpret the Gini coefficient

The Gini coefficient measures income inequality on a 0-to-1 scale, where 0 represents perfect equality and 1 represents maximal inequality. In practical terms, a score of 0 means every quintile holds 20% of income, while a score of 1 means one person holds everything. Most real-world economies fall somewhere between these extremes, and understanding where a country sits on this spectrum tells you a great deal about its economic structure.

When you use a gini coefficient calculator, you can place your result into one of four broad categories. A Gini below 0.30 indicates low inequality, consistent with the Nordic range. A reading between 0.30 and 0.40 signals moderate inequality. A result between 0.40 and 0.50 reflects high inequality, a band that includes the United States and much of Latin America. Anything above 0.50 points to very high inequality.

To see how quintile shares translate into Gini values, consider a few worked examples. Shares of 10%, 14%, 18%, 24%, and 34% produce a Gini of 0.232, which sits firmly in the low-inequality Nordic range. A more uneven distribution of 4%, 9%, 14%, 20%, and 53% yields a Gini of 0.436, or 43.6 on the 0-100 index scale. In this case, the top quintile holds 13.25 times the income of the bottom quintile. A still more extreme split of 2%, 5%, 10%, 23%, and 60% results in a Gini of 0.536, indicating very high inequality.

One caveat to keep in mind: the quintile shortcut slightly understates the true Gini because it ignores inequality inside each fifth of the population. The World Bank's published figures use full household microdata, so its values may run somewhat higher than what a five-bin calculation produces. Even so, quintile-based estimates remain useful for comparing broad patterns across countries or time periods.

Gini from quintiles vs microdata

Most official inequality reports do not hand you a clean list of every household's income. Instead they summarize the distribution into five equal population blocks, called quintiles, and report the share of total income each block receives. That is the input our gini coefficient calculator uses when you select the quintile method. The Gini coefficient measures income inequality on a 0-to-1 scale, where 0 represents perfect equality (every quintile holds 20% of income) and 1 represents maximal inequality. Because the five-share format is widely published, the quintile shortcut has become the standard quick estimate for anyone working from public tables.

The shortcut is convenient, but it has a known limitation: it slightly understates the true Gini. The reason is mechanical. When you collapse a full income distribution into five buckets, you keep the differences between quintiles but you discard the differences inside each fifth of the population. A quintile where everyone earns nearly the same amount is treated the same as a quintile with wide internal spread, even though the latter contains more inequality. The World Bank's published figures avoid this problem by calculating the Gini from full household microdata, which preserves every individual observation and captures within-group inequality that quintile tables hide.

Despite that gap, the quintile method remains the go-to quick estimate because it is the finest level of detail most statistical agencies release. You rarely get access to the underlying microdata, so the published quintile shares are the best available proxy. The understatement is usually modest, and the method still ranks countries correctly and tracks inequality trends over time. For a practical illustration, consider a distribution with quintile shares of 4%, 9%, 14%, 20% and 53%. Those figures produce a Gini of 0.436, which equals 43.6 on the 0-100 index scale, and the top quintile holds 13.25 times the income of the bottom quintile. A more even set of shares, such as 10%, 14%, 18%, 24% and 34%, gives 0.232, landing in the low-inequality Nordic range. At the other extreme, shares of 2%, 5%, 10%, 23% and 60% yield 0.536, reflecting very high inequality.

In short, treat the quintile-based result as a reliable approximation rather than a perfect match for official microdata figures. The method is transparent, reproducible from published sources, and useful for comparisons across countries or years. When precise values matter for academic or policy work, look for figures derived from full household surveys. For a fast, defensible read on inequality from the data you actually have, the quintile shortcut is the right tool.

FAQs

How do you calculate the Gini coefficient from quintile shares?

Normalize the five shares, build cumulative shares, then Gini = 1 - 0.2 x [(0+Y1) + (Y1+Y2) + (Y2+Y3) + (Y3+Y4) + (Y4+Y5)]. For example, shares of 4/9/14/20/53 give 0.436.

What is a good Gini coefficient?

There is no target value, but below 0.30 is low inequality (the Nordic range), 0.40-0.50 is high, and above 0.50 is very high.

What is the Gini coefficient of the United States?

World Bank estimates put the US around 0.40-0.44 depending on the year and income definition. The 0.436 worked example is calibrated to that range.

Can the Gini coefficient be negative or above 1?

Not for ordinary income distributions. It is bounded by 0 (perfect equality) and 1 (one person holds everything).

Why does the quintile method understate the Gini?

It assumes everyone inside a quintile earns the same, so within-quintile inequality is invisible. Microdata estimates run a little higher.

What is the difference between the 0-1 and 0-100 Gini scales?

Only the scale differs. A value of 0.436 on the 0-1 scale is 43.6 on the 0-100 index scale used by some statistical agencies.

Sources

Related calculators

1031 Exchange Calculator
1031 exchange calculator: realised gain, recognised gain on boot taken, gain deferred and the basis in the replacement property.
401(k) Contribution Calculator 2027
Your 2027 401(k) limit by age — $25,500 under 50, $34,000 at 50+, $37,250 at 60–63 — plus the per-paycheck amount to max out and the Roth catch-up rule.
Accounting Rate of Return Calculator
Accounting rate of return of a project from its cost, salvage value, life, revenue and cash expenses, on both the initial and the average investment, with the depreciation and average profit shown.