Home / Science / Social sciences / Economics / Gini and Lorenz curveTool #742

Gini coefficient calculator with Lorenz curve, Palma ratio, Theil and Atkinson indices, from incomes or income shares

Paste incomes (with optional weights such as household size or survey weights) or grouped income shares, and get the Gini coefficient, the Lorenz curve, quintile, top 10 % and top 1 % shares, the Palma ratio, Theil T and L, Atkinson indices and the P90/P10 ratio.

Keep it one tap away for everyday use.

Bookmark Gini and Lorenz curve?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Incomes
  2. Lorenz
  3. Gini
  4. Report
Nothing is uploadedWorks offline once open

Your data

Incomes must be zero or more. The example incomes are made up.

ε says how much weight the Atkinson index puts on the poorest: 0.5 is mild, 2 is strong.

Inequality

Income shares

Download

What it does

How unequal is a set of incomes, wages, wealth or any other amount shared among people? This tool draws the Lorenz curve and works out the most used inequality measures, all in your browser:

  • the Gini coefficient (0 is perfect equality, 1 is one person with everything), with the small-sample correction for unweighted data;
  • income shares of each fifth (quintile), of the bottom 40 %, the top 10 % and the top 1 %;
  • the Palma ratio, the top 10 %‘s share divided by the bottom 40 %‘s;
  • Theil T and Theil L (mean log deviation), the two “generalised entropy” indices that can be split into within-group and between-group parts;
  • the Atkinson index for any inequality aversion ε, the share of total income society would give up to have the rest shared equally;
  • the P90/P10 ratio of the incomes at the 90th and 10th percentiles.

It works well with the biodiversity indices, the publication plot maker and the sample size and power calculator.

How to use it

  1. Incomes: paste one income per row, or open a CSV or Excel file. Add a second column of weights when each row stands for several people (household size) or for a survey weight.
  2. Grouped (shares): when you only have published shares, such as the share of income going to each fifth of households, give one row per group with its population (count or %) and its income (total or %). Everyone inside a group is treated as equal, so the results are lower bounds.
  3. Set the Atkinson ε values you want, such as 0.5, 1 and 2.
  4. Download the measures, the quintile table and the Lorenz curve points as CSV, or the report as an image, PDF or Word file.

Worked example (made-up incomes)

The 18 made-up incomes (in thousands) have a Gini of 0.399 (0.422 with the sample correction). The poorest fifth gets 6.1 % of all income and the richest fifth 46.8 %. The Palma ratio is 1.803: the top 10 % earn 1.8 times as much in total as the bottom 40 %. Theil T is 0.264, and the Atkinson index with ε = 1 is 0.233: the same welfare could be had with 23.3 % less income shared equally.

With the made-up quintile shares (6.5, 11, 15.5, 22 and 45 %), the Gini is 0.352 and the Palma ratio 1.286.

Tips

  • Use the same income concept when comparing (before or after tax, per household or per person, with or without an equivalence scale).
  • The Gini is most sensitive to the middle of the distribution, the Palma and top shares to the top, and the Atkinson index with high ε to the bottom.
  • Zero incomes are fine for the Gini, Theil T and Palma, but Theil L is not defined and the Atkinson index for ε ≥ 1 becomes 1.

FAQ

Why is the corrected Gini higher? For a sample of n people the largest possible Gini is (n − 1)/n, so multiplying by n/(n − 1) lets small samples reach 1 and removes the downward bias.

Can I use wealth or other amounts? Yes, any amount that is zero or more: wealth, land, sales by firm, or citations by author.

Where the numbers come from

  • Standard definitions: Lorenz (1905) curve, Gini (1912) coefficient, Theil (1967) indices, Atkinson (1970) index, Palma ratio as in Cobham and Sumner (2013). No tables copied.
  • Written by fibub. Checked in the tests against an independent NumPy calculation (Gini from the weighted mean absolute difference over all pairs, shares by interpolation, Theil and Atkinson from their definitions) on made-up, random weighted and grouped data.
  • The example incomes and shares are made up.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Biodiversity indices #39 Paste species counts for one or more sites and get Shannon, Simpson, evenness, Chao1 richness, rarefaction curves and Bray-Curtis similarity in one table. Runs in your browser. Sample size and power calculator #32 How many subjects, samples or survey responses do you need? Sample size for comparing two means, paired data, two proportions, or a survey's margin of error, with power curves. Matches R and G*Power. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Supply and demand #738 Enter a demand and a supply curve (straight lines or constant elasticity) and see the market price and quantity, price elasticities, consumer and producer surplus, and what a per-unit tax, subsidy, price ceiling or price floor does: who pays, the shortage or surplus and the deadweight loss, with a chart. Inflation calculator #739 Turn money from one date into money of another with the price index (CPI) numbers you enter, or with a steady yearly rate. Paste a whole index series to rebase it, see inflation each period and year on year, and convert wages or sales into real values. Includes the Fisher equation for real interest rates, exact and approximate. Nash equilibrium solver #740 Type in a two-player game of up to 6 × 6 strategies and get every Nash equilibrium, pure and mixed, with each player's payoff. Best replies are marked in the payoff table, dominated strategies are removed step by step, and zero-sum games get their value and the safest mixes. Matches nashpy.