Gini Coefficient from the Mean Absolute Difference

Also known as Gini index · Gini coefficient · Gini mean difference · inequality coefficient · income inequality measure · G equals delta over two mean · relative mean absolute difference · Gini from mean difference · Gini ratio · concentration of income

G=Δ2μ,Δ=1n2∑i∑j∣xi−xj∣G = \frac{\Delta}{2\mu}, \quad \Delta = \frac{1}{n^{2}}\sum_{i}\sum_{j}\left|x_i - x_j\right|

Units aren’t used in this calculation: every value is a plain number.

sig figs

Worked example: G 0.45 with a mean of 32 000 → mean difference 28 800. Press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value.

Where Gini Coefficient from the Mean Absolute Difference fits

Missing an input?

See also

Gini Coefficient from Quintile Shares (Lorenz Curve by Trapezoids): The same index worked from a table of shares by fifths of the population, which is how agencies usually publish it.Coefficient of Variation: Another way to put a spread relative to the mean, using the standard deviation instead of the mean pairwise difference.Simpson's Index of Diversity (1 − D): A different measure of how evenly a total is shared among groups, used for species and for market shares.
Learning zone

Gini Coefficient from the Mean Absolute Difference explained

μ|xi − xj|xixjevery pair, averagedG2μΔshare of 2μ

The Gini coefficient is one number for how unevenly something is shared out: 0 when everyone has the same, close to 1 when one holder has everything. This page defines it through the mean absolute difference. Pick two members at random and take how far apart their amounts are; averaging that over every possible pair gives Δ\Delta, and dividing by twice the mean μ\mu gives GG. It is a definition, not a law or a fit, and it is the same coefficient that is defined from the Lorenz curve. Gini introduced the mean difference in 1912, in Variabilità e mutabilità.

The double sum in Δ\Delta runs over every ordered pair of members, n2n^2 terms in all, so each pair is counted both ways and each member is paired with itself. That is why the sum has 36 terms for six people. Because Δ\Delta and μ\mu are in the same unit (dollars, hectares, kWh), the ratio has no unit. Reach for this form when you have the individual values; when you have only a table of shares by fifths of the population, the quintile-share form of the index is the one to use. It works for income, wealth, land, energy use or the catch per boat, and 0.3 to 0.5 is typical for incomes.

Take the six-person population 1, 2, 3, 4, 5, 15. The mean is 5, and the sum of ∣xi−xj∣|x_i - x_j| over all 36 ordered pairs is 160, so Δ=160/36=4.444444\Delta = 160/36 = 4.444444 and G=4.444444/(2×5)=0.444444G = 4.444444/(2 \times 5) = 0.444444. Two other routes agree: the sorted-values form and the Lorenz trapezoids both give 0.444444. The relation also rearranges. With G=0.45G = 0.45 and a mean of 32 000, Δ=2μG=28 800\Delta = 2\mu G = 28\,800. With Δ=18\Delta = 18 and G=0.36G = 0.36, μ=Δ/(2G)=25\mu = \Delta/(2G) = 25.

The condition to remember is that no amount may be negative. Like any single summary, the number says how unequal the sharing is but not where in the population the gap lies.

Gini Coefficient from the Mean Absolute Difference formula

G=Δ2μ,Δ=1n2∑i∑j∣xi−xj∣G = \frac{\Delta}{2\mu}, \quad \Delta = \frac{1}{n^{2}}\sum_{i}\sum_{j}\left|x_i - x_j\right|
Where
  • GG= Gini coefficient (0 to 1)
  • Δ\Delta= Mean absolute difference
  • μ\mu= Mean
Where this comes from
  • Gini, C. (1912). Variabilità e mutabilità. Bologna: Tipografia di Paolo Cuppini (where the mean difference is introduced).
Revised 30 October 2026
Cite this page

formula.expert. (2026, October 30). Gini Coefficient from the Mean Absolute Difference Calculator. https://formula.expert/solvers/gini-coefficient-mean-difference