Lorenz Curve Calculator Formula
Understand the math behind the lorenz curve calculator. Each variable explained with a worked example.
Formulas Used
Bottom 20% Share (%)
cum_20 = (v1 / total) * 100Bottom 40% Share (%)
cum_40 = ((v1 + v2) / total) * 100Bottom 60% Share (%)
cum_60 = ((v1 + v2 + v3) / total) * 100Bottom 80% Share (%)
cum_80 = ((v1 + v2 + v3 + v4) / total) * 100Top 20% Share (%)
top_20_share = (v5 / total) * 100Variables
| Variable | Description | Default |
|---|---|---|
v1 | Income 1 (lowest) | 10 |
v2 | Income 2 | 20 |
v3 | Income 3 | 30 |
v4 | Income 4 | 40 |
v5 | Income 5 (highest) | 100 |
total | Derived value= v1 + v2 + v3 + v4 + v5 | calculated |
How It Works
How to Calculate the Lorenz Curve
Method
1. Sort incomes from lowest to highest 2. Calculate cumulative population share: 20%, 40%, 60%, 80%, 100% 3. Calculate cumulative income share at each point 4. Plot cumulative income share (y) vs. cumulative population share (x)
The 45-degree diagonal represents perfect equality. The Lorenz curve bows below; the area between the diagonal and the curve (relative to the total area below the diagonal) is the Gini coefficient.
Worked Example
Five people earn 10, 20, 30, 40, 100.
v1 = 10v2 = 20v3 = 30v4 = 40v5 = 100
- 01Total income = 200
- 02Bottom 20%: 10/200 = 5%
- 03Bottom 40%: 30/200 = 15%
- 04Bottom 60%: 60/200 = 30%
- 05Bottom 80%: 100/200 = 50%
- 06Top 20% earns 100/200 = 50% of total income
Ready to run the numbers?
Open Lorenz Curve Calculator