Free Gini Coefficient Calculator

Calculate the Gini coefficient to measure inequality in a distribution, ranging from 0 (perfect equality) to 1 (maximum inequality).

Gini Coefficient

0.400000

Mean Value40.0000
Total200.0000

Gini Coefficient vs Income/Value 1 (lowest)

How to Calculate the Gini Coefficient

Formula

Gini = Sum of all xi - xj / (2 * n^2 * mean)

The Gini coefficient sums all pairwise absolute differences and normalizes. A value of 0 means perfect equality (everyone has the same). A value approaching 1 means extreme inequality (one person has everything). It is the most widely used measure of income inequality.

Example Calculation

Five incomes: 10, 20, 30, 40, 100.

  1. 01Mean = (10+20+30+40+100)/5 = 200/5 = 40
  2. 02Sum of all 25 pairwise |xi - xj| = 440
  3. 03Gini = 440 / (2 * 25 * 40) = 440 / 2000 = 0.22
  4. 04This indicates moderate inequality

Frequently Asked Questions

Learn More

Understanding the Normal Distribution

Learn what the normal distribution is, why it matters in statistics, and how to use the bell curve for probability calculations, z-scores, and real-world data analysis.

Related Calculators