Enter Values

Example: U.S. textbook distribution (Mankiw Ch. 20)

%
%
%
%
%
Sum: 100.0%

Enter income for each person or household (one row per entry)

# Income ($)
1
2
3
4
5
Gini Formulas
G = 1 − 2B
Quintile: B = ∑0.5 × (cumi + cumi−1) × 0.2
Individual: G = (2∑i·yi) / (n·∑yi) − (n+1)/n
Ryan O'Connell, CFA
Calculator by Ryan O'Connell, CFA

Lorenz Curve

Gini Coefficient Results

Gini Coefficient --
Gini Range --
Income Ratio (Top/Bottom 20%) --

Cumulative Income Shares by Quintile

Quintile Share (%) Cumulative (%) Equality Line (%)

Formula Breakdown

Country Comparison

Country Gini
Sweden ~0.29
Germany ~0.32
United States ~0.42
Brazil ~0.52
South Africa ~0.63

Approximate values from World Bank (SI.POV.GINI). Years and methodology vary by country.

— Illustrative comparison only
Model Assumptions
  • Income measured before or after taxes/transfers (user should note which)
  • Quintile data assumes each quintile contains exactly 20% of the population
  • Quintile method produces a grouped-data approximation (theoretical max ~0.80 with 5 groups)
  • Does not capture wealth inequality (income ≠ wealth)
  • Gini coefficient is scale-independent (proportional, not absolute measure)
  • Country comparison values are from World Bank surveys and may not match the income definition used in your calculation
  • For educational purposes. Not financial advice. Market conventions simplified.

Understanding the Gini Coefficient and Lorenz Curve

What Is the Gini Coefficient?

The Gini coefficient is the most widely used single-number measure of income inequality. It ranges from 0 (perfect equality, where everyone earns the same) to 1 (perfect inequality, where one person earns everything). The Gini is derived from the Lorenz curve — it equals twice the area between the Lorenz curve and the 45-degree line of perfect equality.

Gini from Lorenz Curve
G = A / (A + B) = 1 − 2B
Where A = area between equality line and Lorenz curve
B = area under the Lorenz curve

How to Read a Lorenz Curve

The Lorenz curve plots cumulative population share (x-axis, from poorest to richest) against cumulative income share (y-axis). The diagonal 45-degree line represents perfect equality. The further the Lorenz curve bows below this line, the more unequal the distribution. The shaded area between the two lines (Area A) directly determines the Gini coefficient.

Key Assumptions

  • The Gini measures relative inequality — it is scale-independent
  • Two different distributions can have the same Gini but different Lorenz curves
  • Quintile data provides a grouped approximation with a theoretical maximum around 0.80
  • Individual data yields an exact sample Gini via Brown's formula
  • The Gini does not distinguish income vs. wealth inequality
Income vs. Wealth: This calculator measures income inequality. Wealth inequality (distribution of accumulated assets) is typically much higher than income inequality because wealth accumulates over time and across generations. The Gini coefficient can measure either, but the interpretation differs.

Frequently Asked Questions

The Gini coefficient measures income inequality on a scale from 0 (perfect equality) to 1 (perfect inequality). It equals twice the area between the Lorenz curve and the 45-degree line of perfect equality. For quintile data, it is computed as G = 1 − 2B using the trapezoid method, where B is the area under the Lorenz curve. For individual data, Brown's formula provides an exact sample Gini.

The x-axis shows cumulative population share (poorest to richest) and the y-axis shows cumulative income share. The 45-degree diagonal represents perfect equality where each percentage of the population earns an equal percentage of income. The further the Lorenz curve bows below this line, the greater the inequality. The area between the equality line and the Lorenz curve (Area A) determines the Gini coefficient.

A Gini of 0.40 falls in the 0.30 to 0.44 reference band used by this calculator. For context, the U.S. Gini is approximately 0.42 (World Bank), while Sweden is around 0.29. The bands shown here are display ranges for quick comparison rather than universal standards.

The U.S. Gini (~0.42, World Bank) is higher than many high-income peers such as Sweden (~0.29) and Germany (~0.32), but lower than many developing countries like Brazil (~0.52) and South Africa (~0.63). Cross-country comparisons depend on income definition, survey methodology, and year of measurement.

Income inequality measures the distribution of annual earnings (wages, salaries, investment income), while wealth inequality measures the distribution of accumulated assets (savings, property, investments). Wealth inequality is typically much higher than income inequality because wealth accumulates over time and across generations. The Gini coefficient can measure either, but the interpretation differs.

The Gini coefficient has several limitations: two different income distributions can produce the same Gini value but have different Lorenz curves. It does not account for in-kind transfers (food stamps, housing vouchers), life-cycle income variation (people earn more mid-career), or differences between transitory and permanent income. The quintile method is a grouped-data approximation with a theoretical maximum around 0.80. A single number cannot capture the full complexity of income distribution.
Disclaimer

This calculator is for educational purposes only. It uses simplified models to illustrate income inequality concepts from introductory economics courses (Mankiw, Principles of Microeconomics, Chapter 20). Real-world income measurement involves complex survey methodology, tax adjustments, and transfer accounting not captured here. This tool should not be used for policy or financial decisions.