Mathwords logoMathwords

Gini Coefficient — Definition, Formula & Example

The Gini coefficient is a single number between 0 and 1 that measures how unevenly a total, such as income, is shared across a group. A value of 0 means everyone has an equal share. A value near 1 means almost all of the total is concentrated in a small fraction of the group.

Let the Lorenz curve L(p)L(p) give the cumulative fraction of the total held by the poorest fraction pp of the population. The Gini coefficient is G=AA+BG = \frac{A}{A+B}. Here AA is the area between the line of equality y=py = p and L(p)L(p), and BB is the area under L(p)L(p) on [0,1][0,1]. Because A+B=12A + B = \tfrac{1}{2}, this is equivalent to G=1−2BG = 1 - 2B.

Key Formula

G=AA+B=1−2BG = \frac{A}{A+B} = 1 - 2B
Where:
  • GG = Gini coefficient, from 0 (perfect equality) toward 1 (maximum inequality) when no values are negative
  • AA = Area between the line of equality and the Lorenz curve
  • BB = Area under the Lorenz curve, from population share 0 to 1

Worked Example

Problem: Four households earn $10,000, $20,000, $30,000, and $40,000 per year. Find the Gini coefficient of their incomes.
Step 1: Order the incomes from lowest to highest and find the total, $100,000. Each household is 25% of the population. Find the cumulative share of income at each 25% step.
p:0.25, 0.5, 0.75, 1L(p):0.1, 0.3, 0.6, 1.0p: 0.25,\ 0.5,\ 0.75,\ 1 \qquad L(p): 0.1,\ 0.3,\ 0.6,\ 1.0
Step 2: Find the area BB under the Lorenz curve. Connect the points with straight segments and add the areas of the four trapezoids. Each trapezoid has width 0.25.
B=0.25[0+0.12+0.1+0.32+0.3+0.62+0.6+12]=0.25(1.5)=0.375B = 0.25\left[\tfrac{0+0.1}{2} + \tfrac{0.1+0.3}{2} + \tfrac{0.3+0.6}{2} + \tfrac{0.6+1}{2}\right] = 0.25(1.5) = 0.375
Step 3: The area under the line of equality is 0.5, so A=0.5−0.375=0.125A = 0.5 - 0.375 = 0.125. Divide AA by the total area of 0.5.
G=0.1250.5=1−2(0.375)=0.25G = \frac{0.125}{0.5} = 1 - 2(0.375) = 0.25
Answer: The Gini coefficient is 0.25, which shows fairly low inequality among these four households.

Why It Matters

The U.S. Census Bureau publishes a Gini index for household income every year. Economists use it to compare inequality across countries and over time. You will also meet the Lorenz curve and Gini coefficient in AP Microeconomics, where you interpret (not calculate) it when you study income distribution and the effects of tax policy.

Common Mistakes

Mistake: Reporting the area AA itself as the Gini coefficient, so the example above would give 0.125.
Correction: The Gini coefficient is a ratio. Divide AA by the whole triangle under the line of equality, which has area 0.5. That is why the shortcut is G=1−2BG = 1 - 2B, not 1−B1 - B.

Related Terms