Two villages each have five households, and in both the average household income is 40 thousand a year. In the first, incomes are 30, 35, 40, 45 and 50 thousand. In the second they are 10, 15, 25, 50 and 100 thousand. The averages are identical; the villages are not. The Gini coefficient of the first is 0.10. The Gini coefficient of the second is 0.43. Same mean, a factor of more than four in measured inequality — and the computation behind each number fits on an index card.

So what is the Gini coefficient? It is a single number between 0 and 1 that summarises how unevenly a total is shared: 0 means everyone has exactly the same, and values approaching 1 mean one person has nearly everything. It is defined geometrically from the Lorenz curve, the graph of the cumulative share of income held by the poorest fraction pp of the population. If AA is the area between the line of perfect equality and the Lorenz curve L(p)L(p), and BB the area under the curve, then

G=AA+B=1−2∫01L(p) dp,G = \frac{A}{A+B} = 1 - 2\int_0^1 L(p)\,dp,

since A+B=12A + B = \tfrac12 is the area of the triangle under the diagonal. Equivalently — and this is the reading that makes it intuitive — GG is the average absolute income gap between two randomly chosen people, divided by twice the mean. In the second village that average gap is 34.4 thousand, twice the mean is 80 thousand, and 34.4/80=0.4334.4/80 = 0.43. What follows derives those claims and then turns to what the number cannot tell you.

The answer in one formula

Everything rests on a change of perspective. Instead of describing a distribution by its density or its moments, line the population up from poorest to richest and ask: what fraction of the total does the bottom fraction pp hold? For a continuous distribution with cumulative distribution function FF, quantile function F−1F^{-1} and finite mean μ\mu, the answer is

L(p)=1μ∫0pF−1(t) dt,0≤p≤1.L(p) = \frac{1}{\mu}\int_0^p F^{-1}(t)\,dt, \qquad 0 \le p \le 1.

This is the Lorenz curve. The integral accumulates the incomes of everyone up to quantile pp, and dividing by μ\mu turns the running total into a share, so L(1)=1L(1) = 1.

If everyone had the same income, the bottom 30 percent would hold 30 percent of the total and L(p)=pL(p) = p: the diagonal. Any spread pushes the curve below it. The Gini coefficient measures how far below, as a fraction of the most it could be: the gap AA relative to the whole triangle A+B=12A + B = \frac12, which gives G=1−2BG = 1 - 2B. Computing it is an exercise in integration, and for a finite dataset in adding up trapezoids.

Building a Lorenz curve by hand

Take the second village: incomes 10, 15, 25, 50, 100 thousand, total 200 thousand. The construction has three steps.

Sort from poorest to richest (already done here). Accumulate shares: each household is one fifth of the population, and running totals of income are 10, 25, 50, 100, 200, so

Cumulative population share pp 0 0.2 0.4 0.6 0.8 1.0
Cumulative income share L(p)L(p) 0 0.05 0.125 0.25 0.5 1.0

Plot and join the points with straight segments. The poorest 40 percent hold 12.5 percent of income; the richest household alone holds half. For the first village the same steps give L=0,0.15,0.325,0.525,0.75,1L = 0, 0.15, 0.325, 0.525, 0.75, 1, a polygon hugging the diagonal.

For a smooth distribution the polygon becomes a curve. The figure below uses a lognormal income distribution, whose Lorenz curve has the closed form L(p)=Φ ⁣(Φ−1(p)−σ)L(p) = \Phi\!\left(\Phi^{-1}(p) - \sigma\right), with Φ\Phi the standard normal distribution function and σ\sigma the log-scale standard deviation in the notation of the lognormal distribution article. The value σ=0.86\sigma = 0.86 is the one used there in the worked inversion of a mean-to-median ratio.

Lorenz curve with the Gini areas A and B0.00.00.20.20.40.40.60.60.80.81.01.0A = 0.228B = 0.272line of perfect equalityLorenz curveG = A / (A + B) = 1 − 2Blognormal, σ = 0.86G = 2Φ(σ/√2) − 1 = 0.457cumulative share of populationcumulative share of income

Figure 1 — The Lorenz curve of a lognormal distribution with σ=0.86\sigma = 0.86, computed numerically from L(p)=Φ(Φ−1(p)−0.86)L(p) = \Phi(\Phi^{-1}(p) - 0.86). The shaded gap A has area 0.228 and the region B under the curve 0.272, so G=A/(A+B)=0.457G = A/(A+B) = 0.457, matching the closed form 2Φ(0.86/2)−1=0.456892\Phi(0.86/\sqrt2) - 1 = 0.45689. Integrating the plotted 48-point polygon by trapezoids gives 0.4565, slightly low because chords lie above a convex curve.

The properties of every Lorenz curve can be read off the integral definition.

  • Endpoints. L(0)=0L(0) = 0 and L(1)=1L(1) = 1.
  • Slope. By the fundamental theorem of calculus, L′(p)=F−1(p)/μL'(p) = F^{-1}(p)/\mu: the income of the person at quantile pp, divided by the mean. The curve is flat near the origin, where incomes are small, and nearly vertical at the right edge.
  • Convexity. The quantile function is non-decreasing, so L′L' is too and LL is convex. A convex function through (0,0)(0,0) and (1,1)(1,1) lies below the chord between them, so L(p)≤pL(p) \le p, with equality throughout only when all incomes are equal.
  • The widest gap. The vertical distance p−L(p)p - L(p) is greatest where L′(p)=1L'(p) = 1, at the person earning exactly the mean. For the lognormal with σ=0.86\sigma = 0.86 that is quantile Φ(σ/2)=0.666\Phi(\sigma/2) = 0.666 — two thirds of people earn less than the mean — and the gap is 2Φ(σ/2)−1=0.3332\Phi(\sigma/2) - 1 = 0.333. This maximal gap is the Hoover (or Pietra) index: the share of total income that would have to be moved to equalise everyone.

Three formulas, one number

Of the many equivalent formulas, three are worth knowing, because each says something different. All three are applied here to the village incomes x=(10,15,25,50,100)x = (10, 15, 25, 50, 100), with n=5n = 5 and xˉ=40\bar x = 40.

(a) Area by trapezoids. Between consecutive points of the Lorenz polygon the region under the curve is a trapezoid of width 1/n1/n and mean height 12(Lk−1+Lk)\tfrac12(L_{k-1} + L_k):

Segment Heights Area
0 to 0.2 0, 0.05 0.0050
0.2 to 0.4 0.05, 0.125 0.0175
0.4 to 0.6 0.125, 0.25 0.0375
0.6 to 0.8 0.25, 0.5 0.0750
0.8 to 1.0 0.5, 1.0 0.1500

The total is B=0.285B = 0.285, so G=1−2(0.285)=0.43G = 1 - 2(0.285) = 0.43. For grouped data, such as published quintile shares, this is the only formula available, and it gives a lower bound on the true Gini, because chords run above a convex curve.

(b) Relative mean absolute difference.

G=∑i=1n∑j=1n∣xi−xj∣2n2xˉ.G = \frac{\sum_{i=1}^n\sum_{j=1}^n \lvert x_i - x_j \rvert}{2n^2\bar x}.

The double sum runs over all ordered pairs, including each person with themselves (contributing zero). For the village, the ten distinct pairs have absolute differences 5, 15, 40, 90, 10, 35, 85, 25, 75, 50, summing to 430; over ordered pairs that doubles to 860. The denominator is 2⋅25⋅40=20002 \cdot 25 \cdot 40 = 2000, and G=860/2000=0.43G = 860/2000 = 0.43.

This formula explains what the number means. Pick two people independently at random, with replacement. The expected absolute difference between their incomes is the double sum divided by n2n^2:

E ∣X−Y∣=86025=34.4 thousand.\mathbb{E}\,\lvert X - Y \rvert = \frac{860}{25} = 34.4 \text{ thousand}.

The Gini coefficient is that expected gap divided by twice the mean: 34.4/80=0.4334.4/80 = 0.43. In population terms, G=E∣X−Y∣/(2μ)G = \mathbb{E}\lvert X - Y\rvert / (2\mu) for independent copies X,YX, Y of the income distribution. A Gini of 0.43 says that two randomly chosen people differ, on average, by 86 percent of mean income. For the first village the expected gap is 200/25=8200/25 = 8 thousand and G=8/80=0.10G = 8/80 = 0.10. The division by two makes the maximum approach 1.

(c) The sorted-rank formula. With the incomes sorted, x(1)≤x(2)≤⋯≤x(n)x_{(1)} \le x_{(2)} \le \dots \le x_{(n)},

G=2∑i=1ni x(i)n∑i=1nxi−n+1n.G = \frac{2\sum_{i=1}^n i\,x_{(i)}}{n\sum_{i=1}^n x_i} - \frac{n+1}{n}.

The rank-weighted sum is 1(10)+2(15)+3(25)+4(50)+5(100)=8151(10) + 2(15) + 3(25) + 4(50) + 5(100) = 815, so G=1630/1000−6/5=1.63−1.20=0.43G = 1630/1000 - 6/5 = 1.63 - 1.20 = 0.43. This is the formula to program — one sort, O(nlog⁡n)O(n\log n), against O(n2)O(n^2) for the double sum — and it exposes the structure behind the Gini’s behaviour later on: each income enters with a weight proportional to its rank.

A short script computing (a), (b) and (c) returns identical values to machine precision for every dataset in this article. That they must agree is a matter of rearranging sums: (c) is (b) after sorting, since ∑j∣x(i)−x(j)∣\sum_j \lvert x_{(i)} - x_{(j)}\rvert splits into the terms below rank ii and above it, and (a) is (c) after summing the trapezoids.

The small-sample ceiling

The Gini coefficient “runs from 0 to 1” only in the limit of a large population. With nn people, the most unequal possible distribution gives one person the entire total TT and everyone else nothing. Then the nonzero terms in the double sum are the 2(n−1)2(n-1) ordered pairs involving the one rich person, each contributing TT, and

Gmax⁡=2(n−1)T2n2⋅T/n=n−1n.G_{\max} = \frac{2(n-1)T}{2n^2 \cdot T/n} = \frac{n-1}{n}.

With two people the maximum is 0.5; with five, 0.8; with a hundred, 0.99. Geometrically, the Lorenz polygon runs along the axis to p=(n−1)/np = (n-1)/n and then rises to (1,1)(1,1), leaving a sliver of area 1/(2n)1/(2n) under it however unequal things get.

The usual correction multiplies by n/(n−1)n/(n-1), which maps the maximum back to exactly 1 — the script confirms it for nn = 2, 5, 10 and 100. It also turns the numerator into an average over pairs of distinct people only, which is an unbiased estimator of the population mean difference E∣X−Y∣\mathbb{E}\lvert X-Y\rvert; the self-pairs, which always contribute zero, no longer drag it down. For the village, 0.43×5/4=0.53750.43 \times 5/4 = 0.5375. The uncorrected figure describes the five households as a whole population; the corrected one estimates the Gini of a larger population they were drawn from. With census-scale data the difference is negligible; with five households it is a quarter of the value.

Closed forms for standard distributions

Using G=E∣X−Y∣/(2μ)G = \mathbb{E}\lvert X - Y\rvert/(2\mu) or G=1−2∫01L(p) dpG = 1 - 2\int_0^1 L(p)\,dp, the Gini coefficient of most textbook distributions comes out in closed form. Each value below was also checked by numerical integration of the Lorenz curve and, for the exponential and Pareto, by simulation with two million draws.

Uniform on [0,a][0, a]. The quantile function is F−1(t)=atF^{-1}(t) = at and μ=a/2\mu = a/2, so L(p)=2a∫0pat dt=p2L(p) = \frac{2}{a}\int_0^p at\,dt = p^2. Then ∫01p2 dp=13\int_0^1 p^2\,dp = \frac13 and G=1−23=13G = 1 - \frac23 = \frac13, whatever aa is.

Exponential. Derived both ways. With rate λ\lambda, F−1(t)=−ln⁡(1−t)/λF^{-1}(t) = -\ln(1-t)/\lambda and μ=1/λ\mu = 1/\lambda. Integrating,

∫0p−ln⁡(1−t) dt=p+(1−p)ln⁡(1−p),\int_0^p -\ln(1-t)\,dt = p + (1-p)\ln(1-p),

so L(p)=p+(1−p)ln⁡(1−p)L(p) = p + (1-p)\ln(1-p). Substituting u=1−pu = 1-p,

∫01L(p) dp=12+∫01uln⁡u du=12−14=14,\int_0^1 L(p)\,dp = \frac12 + \int_0^1 u\ln u\,du = \frac12 - \frac14 = \frac14,

and G=1−2⋅14=12G = 1 - 2\cdot\frac14 = \frac12. The probabilistic route is shorter. For two independent exponentials, ∣X−Y∣\lvert X - Y\rvert is the amount by which the larger exceeds the smaller; by memorylessness, once the smaller has occurred the larger’s remaining wait is again exponential with rate λ\lambda. So E∣X−Y∣=1/λ\mathbb{E}\lvert X - Y\rvert = 1/\lambda and G=(1/λ)/(2/λ)=12G = (1/\lambda)/(2/\lambda) = \frac12. The simulation gives 0.50009. An exponential income distribution — the maximum-entropy distribution on the positive reals for a given mean — has a Gini of exactly one half.

Pareto. Following the power laws and Pareto distributions article, write the tail as P(X>x)=(x/xmin⁡)−γP(X > x) = (x/x_{\min})^{-\gamma}, with γ\gamma the tail exponent; the density exponent is α=γ+1\alpha = \gamma + 1. Economists usually call γ\gamma the Pareto index and write it α\alpha, which is the convention trap that article warns about. For γ>1\gamma > 1 the Lorenz curve is L(p)=1−(1−p)1−1/γL(p) = 1 - (1-p)^{1 - 1/\gamma}, whose integral is 1−γ/(2γ−1)1 - \gamma/(2\gamma - 1), giving

G=12γ−1.G = \frac{1}{2\gamma - 1}.

At γ=2\gamma = 2, G=13G = \frac13; at γ=1.5\gamma = 1.5, roughly the exponent Pareto himself fitted, G=12G = \frac12; as γ→1\gamma \to 1, where the mean ceases to exist, G→1G \to 1. Note that xmin⁡x_{\min} drops out — scale invariance again. The power-law article shows that the 80-20 rule corresponds to exactly one tail exponent, γ=1.1610\gamma = 1.1610. Its Gini is

G=12(1.1610)−1=11.3220=0.756.G = \frac{1}{2(1.1610) - 1} = \frac{1}{1.3220} = 0.756.

A population obeying the 80-20 rule at every scale would have a Gini of about 0.76 — higher than any national income Gini in the table below.

Lognormal. For X=eYX = e^{Y} with Y∼N(μ,σ2)Y \sim \mathcal{N}(\mu, \sigma^2),

G=2Φ ⁣(σ2)−1.G = 2\Phi\!\left(\frac{\sigma}{\sqrt2}\right) - 1.

The 2\sqrt2 comes from the difference of two independent log-incomes, which is normal with variance 2σ22\sigma^2. Like the coefficient of variation in the lognormal article, the Gini depends on σ\sigma alone. Numerically:

σ\sigma 0.5 0.75 0.86 1.0
G=2Φ(σ/2)−1G = 2\Phi(\sigma/\sqrt2) - 1 0.2763 0.4041 0.4569 0.5205
1−2∫01L(p) dp1 - 2\int_0^1 L(p)\,dp, numerical 0.2763 0.4041 0.4569 0.5205

The two rows agree to at least nine decimal places in every column. Because the map from σ\sigma to GG is increasing, a reported Gini can be inverted into an implied log-scale spread: a Gini of 0.40 corresponds to σ≈0.74\sigma \approx 0.74 under a lognormal assumption. Whether that assumption holds — it is usually decent in the bulk and poor in the upper tail — is a separate question.

The properties that made it the default

Four properties, each precisely statable, explain why the Gini coefficient became the standard summary. Write G(x)G(x) for the Gini of an income vector x=(x1,…,xn)x = (x_1, \dots, x_n) with positive mean.

Scale invariance. G(cx)=G(x)G(cx) = G(x) for every c>0c > 0. Numerator and denominator of formula (b) are both homogeneous of degree one, so the choice of currency or units changes nothing. Adding a constant is different: G(x+c)<G(x)G(x + c) < G(x) for c>0c > 0, since the differences stay fixed and the mean grows. Doubling everyone’s income leaves the Gini unchanged; giving everyone the same raise lowers it.

Anonymity. G(xπ(1),…,xπ(n))=G(x)G(x_{\pi(1)}, \dots, x_{\pi(n)}) = G(x) for every permutation π\pi. Only the multiset of incomes matters, not who holds which.

Population-replication invariance. If each person is cloned kk times, the Gini is unchanged. In formula (b), every pairwise difference appears k2k^2 times as often, n2n^2 becomes k2n2k^2n^2, and the mean is unchanged — which is what lets populations of very different sizes be compared. The small-sample correction breaks it: tripling the village leaves the uncorrected Gini at 0.43 but moves the corrected one from 0.5375 to 0.4607, because the factor n/(n−1)n/(n-1) falls from 5/45/4 to 15/1415/14.

The Pigou–Dalton transfer principle. If an amount δ>0\delta > 0 is transferred from a richer person to a poorer one, with δ\delta small enough that their ranks do not reverse, the Gini strictly decreases. The rank formula gives the exact amount. Transferring δ\delta from the person of rank jj to the person of rank k<jk < j leaves the total unchanged and changes ∑ii x(i)\sum_i i\,x_{(i)} by kδ−jδk\delta - j\delta, so

ΔG=−2δ (j−k)n2 xˉ.\Delta G = -\frac{2\delta\,(j - k)}{n^2\,\bar x}.

In the village, moving 5 thousand from the richest household to the poorest (j−k=4j - k = 4) lowers GG by 2⋅5⋅4/1000=0.042 \cdot 5 \cdot 4/1000 = 0.04, from 0.43 to 0.39. Moving 5 thousand from the household on 25 to the one on 15 (j−k=1j - k = 1) lowers it by 0.01, to 0.42. So does moving 5 thousand from the household on 50 to the one on 25 — although that pair’s incomes differ by 25 thousand rather than 10. The Gini registers the transfer through the rank gap between donor and recipient, and nothing else about their incomes. That fact is the root of the next section.

What the Gini cannot tell you

Crossing Lorenz curves. If one Lorenz curve lies everywhere on or above another (with equal means), the first can be reached from the second by rich-to-poor transfers, and every index satisfying the Pigou–Dalton principle agrees on the ranking. When curves cross, reasonable measures can disagree, and the Gini picks one answer without saying it had a choice. An explicit pair, both with mean 25 thousand:

  • Population X: 10, 30, 30, 30 — one person far behind, the rest equal.
  • Population Y: 20, 20, 20, 40 — one person far ahead, the rest equal.

In X there are three pairs with an absolute difference of 20 and three with 0, so the ordered-pair sum is 120 and G=120/(2⋅16⋅25)=0.15G = 120/(2 \cdot 16 \cdot 25) = 0.15. In Y, exactly the same: three pairs differing by 20, three by 0, G=0.15G = 0.15. Identical Gini coefficients. The Lorenz curves are not identical:

pp 0.25 0.50 0.75
LX(p)L_X(p) 0.10 0.40 0.70
LY(p)L_Y(p) 0.20 0.40 0.60

They cross at p=0.5p = 0.5. The poorest quarter is worse off in X (10 percent of income against 20); the richest quarter takes more in Y (40 percent against 30). The construction is a mirror: Y is X reflected about 25, since 50−10=4050 - 10 = 40 and 50−30=2050 - 30 = 20, and any measure built from absolute or squared deviations — the Gini, the variance, the coefficient of variation — cannot tell a distribution from its reflection. Both have variance 75. Only the third central moment separates them, −750-750 for X against +750+750 for Y. Measures that weight the bottom of the distribution do separate them:

Index X (unequal at bottom) Y (unequal at top)
Gini 0.150 0.150
Coefficient of variation 0.346 0.346
Theil index TT 0.0725 0.0541
Atkinson, ε=0.5\varepsilon = 0.5 0.0402 0.0257
Atkinson, ε=1\varepsilon = 1 0.0882 0.0486
Atkinson, ε=2\varepsilon = 2 0.2000 0.0857

The Theil index, T=1n∑ixixˉln⁡xixˉT = \frac1n\sum_i \frac{x_i}{\bar x}\ln\frac{x_i}{\bar x}, is the entropy-based measure Henri Theil proposed in Economics and Information Theory (1967): the maximum possible entropy of income shares, ln⁡n\ln n, minus their actual entropy. The Atkinson index, from Anthony Atkinson’s “On the Measurement of Inequality” (Journal of Economic Theory, 1970), is 1−(1n∑ixi1−ε)1/(1−ε) ⁣/xˉ1 - \left(\frac1n\sum_i x_i^{1-\varepsilon}\right)^{1/(1-\varepsilon)}\!/\bar x, with the geometric mean replacing the power mean at ε=1\varepsilon = 1; the parameter ε\varepsilon states openly how much extra weight is placed on low incomes. At ε=2\varepsilon = 2 it rates X more than twice as unequal as Y. The Gini rates them the same — not because they are the same, but because it is one fixed weighting among many.

Where the Gini is sensitive. The transfer formula says the change in GG depends on the rank gap. In a large population, a transfer between incomes xx and x+hx + h spans a rank gap of roughly nf(x)hn f(x) h, where ff is the density. So the Gini responds most strongly to transfers where people are most densely packed — near the mode — and weakly in the sparse tails. By contrast, the Theil index weights a transfer by roughly h/xh/x, and the Atkinson index by roughly x−εx^{-\varepsilon}, explicitly favouring the bottom.

To check, take ten thousand incomes at the quantiles of a lognormal with median 40 thousand and σ=0.86\sigma = 0.86 (mean 57.9, mode 19.1, Gini 0.457), and transfer a small fixed amount from a person to someone 10 thousand poorer, starting at different points of the distribution. The changes in each index, relative to the same transfer made at the median:

Recipient’s income (quantile) Gini Theil Atkinson ε=1\varepsilon = 1 Atkinson ε=2\varepsilon = 2
9.7 (5th percentile) 1.52 3.17 10.4 35.5
13.3 (10th) 1.61 2.51 6.46 16.9
22.4 (25th) 1.50 1.65 2.76 4.62
40.0 (median) 1.00 1.00 1.00 1.00
71.5 (75th) 0.45 0.59 0.34 0.20
120.5 (90th) 0.15 0.36 0.13 0.045
296.2 (99th) 0.010 0.152 0.023 0.003

The Gini’s response peaks around the 10th percentile, where the 13-to-23 thousand window straddles the mode. At the top it nearly vanishes: a transfer within the top one percent moves the Gini a hundredth as much as at the median, against about a seventh for the Theil index. At the bottom the Atkinson indices respond ten to thirty-five times more strongly than at the median, the Gini only half as much again. None of these weightings is the correct one; the point is that the Gini embodies a particular one — weighting by population density — that is rarely stated when the number is quoted.

Definitional choices that move the number. Before any of this mathematics applies, someone has decided what xx is, and each decision changes GG substantially:

  • The unit. Households, individuals, or households adjusted for size by an equivalence scale. Pooling within households lowers measured inequality, because a non-earning spouse counts as zero individually but shares a household income.
  • The income concept. Market income before taxes and transfers, or disposable income after them. The gap between the two Ginis for one country and year can be large.
  • Income, consumption, or wealth. Consumption is smoother than income, so consumption Ginis tend to be lower. Wealth is far more concentrated: many households have near-zero or negative net worth, so wealth Ginis are typically much higher — UBS’s global wealth report put South Africa’s at 88.8 for the end of 2022. With debts in the data, the Gini can even exceed 1.
  • The source. Household surveys under-sample the very top; tax records miss informal income.

Published figures, and why they disagree

The most widely used cross-country series is the World Bank’s Gini index (indicator SI.POV.GINI, from its Poverty and Inequality Platform), published on a 0-to-100 scale — multiply the article’s values by 100 to compare. Survey years differ by country, and past values are revised when surveys or methods are updated, so each figure is tied to its year here:

Country Survey year World Bank Gini index
Slovak Republic 2023 23.8
France 2023 31.8
United States 2023 41.8
South Africa 2014 63.0

These values are as republished from the World Bank series by FRED and other data aggregators and by a World Bank country brief; they should be checked against the current release before reuse. They illustrate the range, roughly 0.24 to 0.63, within which published national income Ginis fall, and nothing more.

Cautions apply even within this one series. It is assembled from national household surveys that measure income in some countries and consumption in others. Other sources — the OECD Income Distribution Database, Eurostat, national statistics offices — use different units, equivalence scales and income definitions, and give different values for the same country and year. Even one institution can publish different numbers by method: a 2022 World Bank regional report on Southern Africa quoted a consumption-per-capita Gini of 67 for South Africa in 2018, while the platform’s index for 2014 is 63.0. A Gini compared across sources has compared definitions at least as much as distributions.

Lorenz, Gini, and where the ideas came from

The curve came first. Max Otto Lorenz, an American economist, published “Methods of Measuring the Concentration of Wealth” in Publications of the American Statistical Association, volume 9, number 70, pages 209–219, in June 1905. The journal was the forerunner of the Journal of the American Statistical Association. His proposal was graphical rather than numerical: plot cumulative population against cumulative wealth and let the bow of the curve show the degree of concentration, so that whole distributions, not single statistics, are compared.

The number came seven years later. Corrado Gini, the Italian statistician, set out his measure of variability in Variabilità e mutabilità: contributo allo studio delle distribuzioni e delle relazioni statistiche, published in Bologna in 1912. Its central object was the mean difference — the average absolute difference over all pairs of observations, formula (b) before normalisation — which Gini contrasted with deviations from a central value such as the standard deviation. In a 1914 paper, “Sulla misura della concentrazione e della variabilità dei caratteri”, in the Atti del Reale Istituto Veneto di Scienze, Lettere ed Arti, he applied it to the concentration of income and wealth.

The transfer principle is named for Arthur Cecil Pigou (Wealth and Welfare, 1912) and Hugh Dalton, who made it a formal requirement for inequality measures in the Economic Journal in 1920. Atkinson’s 1970 paper proved the result behind the crossing-curves discussion: when Lorenz curves do not cross, every measure in a broad welfare-based class ranks the two distributions the same way; when they cross, some measure in that class reverses the ranking.

One number for a whole curve

The Lorenz curve is the data, reorganised. Given it and the mean, the entire income distribution can be recovered: its slope at each point is the income at that quantile divided by the mean. The Gini coefficient is a summary of it — one particular weighted average of the gap between the curve and the diagonal. Compressing a function on [0,1][0,1] into a single number necessarily discards information, and the only question is which information.

The crossing-curves example answers that precisely. Populations X and Y have the same mean, the same variance, the same Gini of 0.15, and Lorenz curves that cross at p=0.5p = 0.5. In one a single person is left behind; in the other a single person pulls ahead. The Gini cannot distinguish them, and no care in computing it changes that. Any single index makes some such identification, because a one-dimensional summary of a whole curve has to.

None of this makes the number useless. It is scale-free, comparable across population sizes, respects transfers, reads cleanly as a relative expected gap between two random people, and has closed forms for the standard models: 13\frac13 for the uniform, 12\frac12 for the exponential, 12γ−1\frac{1}{2\gamma - 1} for the Pareto, 2Φ(σ/2)−12\Phi(\sigma/\sqrt2) - 1 for the lognormal. The disciplined use is to quote it alongside the curve, or at least the shares of the bottom and top deciles, to state exactly what was measured and on what unit, and to remember that two Ginis can agree while the distributions behind them do not — just as a mean and a median can each be correct and each tell a different part of the story.


Related topics: What Is a Lognormal Distribution?, Power Laws and Pareto Distributions, Mean vs Median Income, Simpson’s Paradox, Information Theory and Entropy, What Is an Integral?, Normal Distribution, Central Limit Theorem, Extreme Value Theory

Frequently asked

What is the Gini coefficient?

The Gini coefficient is a number between 0 and 1 that summarises how unevenly a quantity such as income is spread across a population. It is 0 when everyone has exactly the same amount and approaches 1 when one person has everything. Geometrically it is the area between the line of perfect equality and the Lorenz curve, divided by the whole area under that line, which works out to one minus twice the area under the Lorenz curve. Equivalently, it is the expected absolute difference between two randomly chosen people, divided by twice the mean.

How do you calculate the Gini coefficient?

Sort the values from smallest to largest, number them 1 to n, and compute twice the sum of each rank times its value, divided by n times the total, minus (n + 1)/n. For incomes of 10, 15, 25, 50 and 100 thousand the rank-weighted sum is 815, the total is 200, and the Gini is 1630/1000 minus 1.2, which is 0.43. The same answer comes from summing all pairwise absolute differences (860) and dividing by 2n squared times the mean (2000), or from one minus twice the trapezoidal area under the Lorenz curve.

What is a Lorenz curve?

A Lorenz curve plots the cumulative share of the population, ordered from poorest to richest, on the horizontal axis against the cumulative share of total income they receive on the vertical axis. It always runs from (0, 0) to (1, 1), is convex, and lies on or below the diagonal. The diagonal itself is perfect equality. The slope of the curve at any point equals the income at that quantile divided by the mean income, so the curve is steepest at the top of the distribution.

What is a good Gini coefficient?

There is no mathematically correct value. The Gini coefficient describes a distribution; it does not say what a distribution ought to be. Its numerical value also depends on definitional choices: household or individual units, income before or after taxes and transfers, income or consumption or wealth, and the survey used. Published national income Ginis in the World Bank series roughly span the mid-0.2s to the mid-0.6s, while wealth Ginis are typically far higher. Comparisons are only meaningful between figures computed the same way.

What are the limitations of the Gini coefficient?

Its main limitation is that it compresses a whole Lorenz curve into one number, so two different distributions can share the same Gini. When Lorenz curves cross, for example one population unequal at the bottom and another unequal at the top, the Gini can rate them identical even though they differ substantially. It is also most sensitive to transfers between people near the most densely populated part of the distribution and much less sensitive in the tails. Measures such as the Theil index and the Atkinson index make that sensitivity explicit and adjustable.