Gini Coefficient Calculator

Author: Henrick Yau

Calculators

Calculate the Gini coefficient to measure income inequality in a population. The Gini coefficient ranges from 0 (perfect equality) to 1 (perfect inequality). This tool helps economists, researchers, and policy makers understand wealth distribution patterns.

Income Distribution Data

Enter income values separated by commas or new lines

Analysis Options

people
Total population represented (optional)

Advanced Settings

What Is the Gini Coefficient?

The Gini coefficient is a statistical measure used to assess income inequality within a population. It helps to quantify how evenly or unevenly income is distributed. A Gini value of 0 indicates perfect equality—everyone earns the same amount—while a value of 1 represents perfect inequality—one person earns everything, and everyone else earns nothing.

Gini Coefficient Formula:
G = (Σ |xi - xj|) / (2n²μ)
Where:
  • xi, xj: individual income values
  • n: number of income entries
  • μ: mean income

Purpose of this inequality calculator

This tool is a statistics calculator designed to help with data analysis and reveal patterns in income distribution. Whether you are an economist, researcher, policymaker, or student, this calculator offers a convenient way to carry out statistical analysis and generate insights into inequality levels using real-world or sample data.

Benefits of computing the Gini coefficient

  • Quickly compute the Gini coefficient for individual, grouped, or percentile-based income data
  • Visualise inequality using a Lorenz curve
  • Compare results to international benchmarks
  • Gain insights into mean and median, income range, and standard deviation
  • Useful as a statistical computation resource for economic reports and social studies

Steps to calculate the Gini coefficient

  1. Select the Calculation Method: Choose from individual income values, grouped income brackets, or income percentiles.
  2. Input Your Data: Enter the income figures in the format shown. Use commas, new lines, or follow the specified structure for groups or percentiles.
  3. Choose Currency Unit: Select your preferred currency for meaningful interpretation.
  4. Optional Settings: Adjust sample size, choose whether to include zero incomes, and select whether to generate the Lorenz curve and international comparisons.
  5. Click “Calculate Gini Coefficient”: The tool will display results, including the Gini value, inequality assessment, charts, and comparative tables.

Who uses income distribution analysis

  • Economists analysing national income data
  • Students and educators studying probability and stats or data insights
  • Policy analysts reviewing economic inequality
  • Social researchers working with income distributions

Questions about Gini coefficient data input

Q: What types of data can I input?
You can input raw individual income values, grouped ranges with counts, or percentile-income pairs. Make sure your data follows the format shown in the input area.

Q: What does the Lorenz curve show?
The Lorenz curve visualises income distribution. The closer the curve is to the line of equality, the more equal the distribution.

Q: Can I use this for wealth data?
No. The Gini coefficient specifically measures income inequality. It does not account for wealth or asset distribution.

Q: Is there a recommended sample size?
Larger datasets provide more accurate results. A minimum of 10 income entries is required, but 100+ is ideal for statistical reliability.

How this tool reveals income disparities

This Gini Coefficient Calculator supports data distribution analysis and highlights disparities that may not be obvious at first glance. As a descriptive statistics guide, it complements other tools like a standard deviation calculator or percentile calculator in understanding how income varies within a population. Use it alongside other data analysis helpers to build a full picture of social and economic conditions.