Gini Coefficient Calculator

Enter a list of income or wealth values to calculate the Gini coefficient and plot the Lorenz curve.

Income / Wealth Values

Load sample data

Lorenz Curve

Enter values and click Calculate to see the Lorenz curve.

Gini Coefficient Reference

Range Inequality Level Examples
0.00 – 0.25 Very Low Nordic countries (~0.25–0.28)
0.25 – 0.35 Low Germany (~0.31), France (~0.32)
0.35 – 0.45 Moderate USA (~0.39), China (~0.38)
0.45 – 0.55 High Mexico (~0.45), Turkey (~0.41)
0.55 – 1.00 Very High South Africa (~0.63), Namibia (~0.59)

Summary

Enter a list of income or wealth values to calculate the Gini coefficient and plot the Lorenz curve.

How it works

  1. Enter income or wealth values in the text area, one value per line.
  2. Click "Calculate" to sort the values in ascending order.
  3. The tool computes the Gini coefficient using the standard formula: G = (2 * sum of rank-weighted values) / (n * total) - (n + 1) / n.
  4. The Lorenz curve is plotted by mapping cumulative population share (x-axis) against cumulative income share (y-axis).
  5. The 45-degree line of perfect equality is drawn for comparison — the farther the Lorenz curve bows below it, the higher the inequality.
  6. Read the Gini coefficient (0–1 scale) and interpret it using the reference table shown.

Use cases

  • Analyze income distribution data for a country, region, or organization.
  • Compare inequality across different groups or time periods.
  • Visualize how evenly or unevenly wealth is distributed among households.
  • Economics coursework and homework on inequality and welfare economics.
  • Policy research to assess the impact of tax or transfer programs on income distribution.
  • Business analytics to understand revenue concentration across customers or products.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu