Gini Coefficient Formula: How Inequality Is Measured and Why It Matters

M
·

Each year, central banks and global policy institutions track economic inequality to understand how consumer purchasing power changes across populations. At the center of these calculations sits a simple mathematical ratio designed to summarize distribution across an entire economy.

Whether analyzing post-tax disposable income or total household assets, economists rely on a standardized statistical metric known as the Gini coefficient.

This guide breaks down the Gini coefficient formula, demonstrates how it is derived geometrically and mathematically, and explains how distribution shifts transmit directly into consumer spending, price pressure, and central bank policy.

Quick Takeaways4 takeaways
  • The Gini coefficient measures income or wealth inequality on a scale from 0 (perfect equality) to 1 (perfect inequality).
  • Geometrically, the formula is expressed as G = A / (A + B), where A represents the area between the line of perfect equality and the Lorenz curve.
  • Discrete population calculations use absolute mean differences across pairs to compute inequality from individual data points.
  • Income distribution directly influences aggregate marginal propensity to consume, affecting consumer surplus and macroeconomic demand.

What Is the Gini Coefficient Formula?

The Gini coefficient formula measures the relative dispersion of income or wealth across a population. Developed by Italian statistician Corrado Gini in 1912, the metric outputs a single value between 0 and 1 (or 0% to 100% when expressed as the Gini Index).

A score of 0 represents perfect equality, where every individual receives an identical share of total income. A score of 1 represents perfect inequality, where a single individual holds 100% of the total income while everyone else receives zero.

Gini ValueInequality LevelEconomic Interpretation
0.00Perfect EqualityEveryone receives identical income
0.35Moderate InequalityTypical developed economy average
0.50+High InequalitySignificant wealth concentration
1.00Perfect InequalityOne individual holds all income

In macroeconomic reporting, the Gini formula is applied separately to income (flow of money over a period) and wealth (stock of assets owned). Because assets accumulate over time, wealth Gini scores globally are consistently higher than income Gini scores.

Geometric Derivation: The Lorenz Curve

The foundational way to visualize and calculate the Gini coefficient is through the Lorenz curve, a cumulative graph plotting the percentage of total population against the cumulative percentage of total income earned.

The Area Ratio Method

When plotting the Lorenz curve within a unit square box (ranging from 0 to 1 on both axes):

  1. A 45-degree diagonal line represents the Line of Perfect Equality (e.g., 20% of the population earns 20% of the income).
  2. The actual income distribution curves below this line.
  3. The space between the Line of Perfect Equality and the Lorenz curve is designated as Area A.
  4. The space beneath the Lorenz curve down to the horizontal axis is designated as Area B.

Because the total area under the 45-degree diagonal equals half of the total unit square (Area A + Area B = 0.5), the geometric formula is expressed as:

Gini Coefficient = Area A / (Area A + Area B)

Since Area A + Area B = 0.5, the formula simplifies in plain-text computation to:

Gini Coefficient = 2 × Area A = 1 - (2 × Area B)

Mathematical Formula for Discrete Population Data

While the geometric method works well for graphical continuous models, economists working with household survey data use discrete statistical formulas to sum individual earnings.

Discrete Summation Formula

For a population of n individuals with ordered incomes y_1 ≤ y_2 ≤ ... ≤ y_n and mean income μ, the plain-text discrete Gini formula is written as:

Gini = (Sum for i=1 to n of Sum for j=1 to n of |y_i - y_j|) / (2 × n^2 × μ)

Where:

  • y_i and y_j represent the income values of individual pairs.
  • n represents the total population size.
  • μ represents the mean income of the population.
  • |y_i - y_j| measures the absolute difference between every pair of individuals.

Simplified Computation Formula for Ranked Data

When data is sorted in ascending order (y_1 ≤ y_2 ≤ ... ≤ y_n), the calculation can be simplified to avoid double summation loops:

Gini = ((2 × Sum for i=1 to n of (i × y_i)) / (n × Sum for i=1 to n of y_i)) - ((n + 1) / n)

This version ranks each income by its position i, making it the standard formula executed in financial modeling and database queries.

Diagram demonstrating discrete Lorenz curve segments used in calculating the Gini coefficient formula.
Diagram demonstrating discrete Lorenz curve segments used in calculating the Gini coefficient formula.

Step-by-Step Numerical Example

To see how the formula functions in practice, consider a hypothetical micro-economy consisting of 5 individuals with the following ordered annual incomes:

  • Person 1: $10,000
  • Person 2: $20,000
  • Person 3: $30,000
  • Person 4: $40,000
  • Person 5: $100,000

Step 1: Calculate Total and Mean Income

  • Total Income = 10,000 + 20,000 + 30,000 + 40,000 + 100,000 = $200,000
  • Population (n) = 5
  • Mean Income (μ) = $200,000 / 5 = $40,000

Step 2: Calculate the Weighted Rank Sum

Multiply each income by its ascending rank position i (1 through 5):

  • Rank 1: 1 × 10,000 = 10,000
  • Rank 2: 2 × 20,000 = 40,000
  • Rank 3: 3 × 30,000 = 90,000
  • Rank 4: 4 × 40,000 = 160,000
  • Rank 5: 5 × 100,000 = 500,000
  • Sum of Weighted Incomes = 10,000 + 40,000 + 90,000 + 160,000 + 500,000 = 800,000

Step 3: Apply the Ranked Gini Formula

  1. First term: (2 × 800,000) / (5 × 200,000) = 1,600,000 / 1,000,000 = 1.60
  2. Second term: (5 + 1) / 5 = 6 / 5 = 1.20
  3. Final Result: 1.60 - 1.20 = 0.40

The Gini coefficient for this five-person economy is 0.40 (or 40%), indicating a moderate-to-high degree of income concentration driven by the top earner.

Macro Transmission: Why Income Distribution Matters for Markets

While inequality is frequently discussed in political contexts, macroeconomists track shifts in the Gini metric because income distribution alters the fundamental mechanics of aggregate demand.

FeatureHigh Wealth Concentration (Higher Gini)Broader Middle Class (Lower Gini)
Marginal Propensity to ConsumeLower overall aggregate MPCHigher overall aggregate MPC
Capital AllocationDirected into savings & financial assetsDirected into immediate consumption goods
Price TransmissionAsset price inflation (equities, real estate)

Marginal Propensity to Consume (MPC)

Lower-income households exhibit a significantly higher Marginal Propensity to Consume (MPC), meaning they spend a larger fraction of every additional dollar received on immediate necessities. Higher-income households have a lower MPC, directing additional funds into savings, real estate, and financial capital.

When income inequality rises (a higher Gini score), overall consumer demand across everyday goods can soften even if top-line national GDP rises, as a smaller proportion of total income flows into active circulation.

Inflation Transmission and Rates

The structural distribution of income also determines how broad-based inflation becomes across an economy.

When income distribution is decentralized across a large middle class, wage gains translate rapidly into retail consumption, driving demand-pull inflation pressure. Conversely, high concentration of wealth in higher brackets tends to drive asset price inflation (equities and real estate) rather than consumer basket price spikes.

Impact on Consumer Surplus

Income distribution shifts directly modify total aggregate consumer surplus, the cumulative economic benefit consumers receive when purchasing goods for less than the maximum price they are willing to pay.

When purchasing power consolidates, price elasticity changes across retail categories, prompting businesses to alter pricing strategies and affecting consumer surplus metrics across broad market sectors.

Limitations of the Gini Metric

Despite its global adoption by bodies like the World Bank, the Gini coefficient has several built-in mathematical limitations:

  1. Different Curves, Same Score: Two economies can produce identical Gini coefficients despite radically different internal distributions. For instance, an economy with extreme poverty at the bottom and a large middle class can net the exact same score as an economy with a stable lower class and extreme wealth concentration at the top 1%.
  2. Ignores Absolute Wealth: The formula measures relative distribution, not absolute living standards. An impoverished country and a wealthy industrial economy can share the same Gini score of 0.35.
  3. Pre-Tax vs. Post-Tax Differences: The gross market income Gini of an economy often looks high until adjusted for fiscal redistribution, taxes, and social transfers (Net Gini).

Common Beginner Pitfalls

Avoid these three common misinterpretations when analyzing distribution metrics:

  • Confusing Income Gini with Wealth Gini: Income Gini scores globally typically range between 0.28 and 0.55, whereas wealth Gini scores frequently exceed 0.70 to 0.85 due to asset compounding.
  • Treating Gini as a Direct Asset Direction Signal: A rising or falling Gini score reflects structural shifts over years, not quarterly market cycles. It helps explain long-term structural demand rather than short-term price movements.
  • Ignoring Structural Demographics: Populations with high percentages of retirees or students naturally display higher income inequality metrics without reflecting systemic economic failure.

Conclusion

The Gini coefficient formula provides a standard mathematical framework to evaluate how income and wealth are distributed across an economy. Derived geometrically as A / (A + B) from the Lorenz curve or calculated via pairwise summation of individual incomes, the metric distills complex population metrics into a usable scale from 0 to 1.

Understanding income distribution metrics gives macro analysts clearer insight into consumer spending patterns, wage dynamics, and structural inflationary pressures. Exploring broader macroeconomic concepts like what is inflation helps complete the framework of how purchasing power shifts across market cycles.

FAQ

What is the main formula for the Gini coefficient?

The Gini coefficient can be calculated geometrically as G = A / (A + B) using the Lorenz curve, where A is the area of inequality, and B is the area under the curve. For discrete population data, it is calculated as the sum of absolute pairwise income differences divided by twice the population squared times the mean income.

What does a Gini coefficient of 0 or 1 mean?

A Gini coefficient of 0 indicates perfect equality, meaning every individual in a population earns the exact same income. A score of 1 indicates perfect inequality, where a single individual holds all the income while everyone else receives zero.

How is the Gini coefficient derived from the Lorenz curve?

The Lorenz curve plots the cumulative percentage of the population against the cumulative percentage of total income earned. The 45-degree diagonal represents perfect equality. The area between this line and the Lorenz curve (Area A) divided by the total area under the equality line (Area A + Area B = 0.5) gives the Gini coefficient.

What is the difference between income Gini and wealth Gini?

Income Gini measures the inequality of money earned over a specific period (such as annual salary). Wealth Gini measures the inequality of net assets accumulated over time. Globally, wealth Gini scores are significantly higher than income Gini scores due to capital accumulation and compound returns.

What are the primary limitations of the Gini coefficient formula?

The main limitation is that two completely different income distributions can yield the identical Gini score if their overall Lorenz curve area ratios match. Additionally, the Gini coefficient measures relative dispersion rather than absolute wealth or poverty levels.

MT
Macrocove Team

The Macrocove editorial team decodes global macro and geopolitics for sophisticated investors — turning complex data and implied-volatility signals into actionable portfolio strategy.