Gini Coefficient Income Inequality Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Understanding Gini Coefficient Income Inequality: Why This Calculator Is Useful

The Gini coefficient is a compact way to describe income inequality when you have a list of incomes and want to know whether they are spread evenly or concentrated near the top. This calculator turns that list into one score so you can compare one group with another, or the same group at different points in time, without having to inspect every value by hand. On the usual interpretation, a result near zero means the incomes are very similar, while a result closer to one means a small number of entries account for much more of the total. A few analysts multiply the score by 100 for a percentage-style presentation, but the underlying index still runs on the same 0-to-1 scale. That makes the Gini coefficient especially useful when you need a quick, consistent summary of a household survey, wage list, regional income file, or any other like-for-like income dataset.

Because the calculator works from the full list rather than from an average alone, the Gini coefficient captures shape as well as size. Two datasets can have the same mean income and still produce very different inequality readings if one has a broad middle and the other has a few extreme values. That is why the score is best read as a distribution measure, not just a wealth or income total. In a practical sense, the Gini tells you how far the actual distribution is from a perfectly even split among the same number of entries. When the gap is small, the result stays low; when the gap is large, the result rises. If you are comparing two groups, try to keep the definition of income consistent so the score reflects inequality rather than a change in measurement.

For a quick orientation, you can think of 0G1 as the useful range for this calculator when the inputs are non-negative income values. The lower end of that range corresponds to a very even list, while the upper end reflects a strongly concentrated list with a long tail toward high values. The exact meaning always depends on the population you entered, but the direction is simple: higher Gini means more income concentration, and lower Gini means a flatter distribution.

The Gini Coefficient Formula for Income Lists

The Gini coefficient formula used by this calculator starts by sorting the income list from lowest to highest, because the position of each value matters once the distribution is arranged from the bottom up. In the notation below, the sorted list is shown first, then the mean income and the indexed sum used in the calculation. That sequence mirrors the way the calculator processes your input, even though you can paste the values in any order.

Formula: x_1 ≤ x_2 ≤ … ≤ x_n

x1x2xn

Once the incomes are sorted, the calculator computes the mean income of the list and uses that average as the scale for the final result. If every valid entry is zero, the mean is zero and the coefficient cannot be defined, which is why the page warns you about all-zero inputs. The average is shown here in MathML so the role of the total list length is clear.

Formula: μ = (∑ i = 1 n x_i) / n

μ=i=1nxin

The calculator then builds a weighted sum where each sorted income is multiplied by its position in the list. This is the step that makes the Gini coefficient sensitive to the shape of the distribution, because higher-ranked values contribute more to the total than lower-ranked values. If the top of the list is much larger than the rest, that weighted sum grows faster and the inequality score rises.

Formula: S = ∑ i = 1 n i × x_i

S=i=1ni×xi

With the weighted sum and the mean in hand, the calculator applies the discrete Gini formula. The expression below is the same one used by the JavaScript on the page, and it produces the output shown in the result box after you enter a valid income list. The score rises when the larger incomes dominate the ordered list and falls when the incomes cluster more tightly together.

Formula: G = (2 S) / (n(n + 1) μ) - (n + 1) / n

G=2Sn(n+1)μ-n+1n

The Lorenz Curve Behind Gini Coefficient Readings

The Lorenz curve is the visual idea behind every Gini coefficient reading in this calculator, because it shows how the cumulative income share grows as you move through the sorted list. The x-axis of the curve represents cumulative population share, while the y-axis represents cumulative income share. If the lower portion of the list controls only a small fraction of the total income, the curve bends farther away from the diagonal equality line. The bigger that bend, the larger the Gini coefficient becomes. You do not need to draw the curve yourself to use the calculator, but the picture helps explain why a few large incomes have so much influence on the final score.

At each step, the calculator can be thought of as tracking a point on the Lorenz curve with a cumulative population fraction and a cumulative income fraction. That relationship is shown below in compact form. When the cumulative income fraction stays close to the cumulative population fraction, the list is relatively even; when the cumulative income fraction lags behind until the upper end of the list, the distribution is more concentrated.

Formula: p_k = k / n, L_k = (∑ i = 1 k x_i) / (∑ i = 1 n x_i)

pk=kn,Lk=i=1kxii=1nxi

Worked example: one very large income in a six-household list

This income inequality calculator responds most strongly when one entry is far larger than the rest, which is why a single outlier can move the Gini coefficient noticeably. Imagine six households with annual incomes of $50,000, $60,000, $75,000, $120,000, $250,000, and $1,500,000. The list is fairly compact through the middle, but the final income is much larger than the others, so the inequality score rises even though most of the values are not especially far apart. Using the calculator's formula, the result comes out to about 0.3806. That is not a statement about whether the households are rich or poor in absolute terms; it is a statement about how unevenly the total income is divided across the six entries.

If every household in that same list had the same income, the Gini coefficient would drop to zero because there would be no spread at all. If the highest income were replaced with a smaller number closer to the rest of the list, the coefficient would move downward as well, because the weighted sum would lose some of its top-heavy shape. This is why the calculator is useful for sanity-checking a set of incomes before you compare it with another group. The score is driven more by the relative spacing between values than by the size of any one number in isolation.

The worked example also shows why it helps to think in terms of the full distribution instead of a single average. Two lists can share the same mean and still tell very different stories if one list is tightly packed and the other has a long upper tail. The Gini coefficient is designed to capture that difference directly, which is what makes it useful for quick inequality comparisons.

Interpreting Gini Coefficient Ranges for Income Inequality

These Gini coefficient ranges are best treated as rough reading bands for income inequality rather than hard cutoffs. A score below about 0.25 usually suggests a relatively even income list, with most entries sitting in a narrow range and only a small amount of spread. A score between about 0.25 and 0.40 often points to moderate inequality, where the distribution is still fairly balanced but the differences are large enough to notice. A score from about 0.40 to 0.60 usually means the income list is becoming clearly concentrated toward the top, and a score above about 0.60 indicates a very uneven set of values where a small number of incomes dominate the total. Those ranges are useful for orientation, but the meaning always depends on whether the numbers represent households, individuals, wages, or something else.

Score band Typical reading What it suggests about the income list
0.00–0.25 Low inequality Most values are clustered together, so the Lorenz curve stays close to the equality line.
0.25–0.40 Moderate inequality There is a visible spread, but the list still has a broad middle and no single value completely dominates.
0.40–0.60 High inequality Higher incomes begin to take a larger share of the total, and the lower half contributes less.
Above 0.60 Very high inequality A small number of large values carry much of the total income, so check whether the input definitions really match.

Those bands are only a guide, not a verdict. The same score can mean something different in a low-income household survey, a city salary dataset, or a national tax file because the underlying context changes the interpretation. That is why this calculator is most useful when you already know what the list represents and you simply want a concise way to describe how uneven it is.

Income Inequality, Policy, and Social Outcomes

Income inequality becomes more meaningful when you connect the Gini coefficient to policy questions, which is why analysts often use this calculator as a starting point rather than a final answer. A higher score may sit alongside concerns about mobility, access to services, wage bargaining, or the concentration of top-end pay, but the coefficient by itself does not explain which of those forces is responsible. A lower score may reflect broad-based wage growth, more equal household incomes, or a dataset that excludes the highest earners. The calculator can show that the distribution changed, but it cannot tell you why it changed. That distinction matters when the score is being used in a report, a policy memo, or a class discussion.

Because the Gini coefficient compresses a full list into a single value, it is best treated as a summary signal. If the score moves up after a tax change, a labor-market shift, or a change in executive compensation, that movement is worth a closer look. If the score moves down, it may indicate a broader spread of income or simply a change in the mix of entries. Either way, the calculator helps you notice the direction of change quickly so you can ask better questions about the source data.

Limitations of the Gini Coefficient for Income Distributions

Like any single-number summary, the Gini coefficient leaves out important details about an income distribution. Two lists can produce the same score while having very different shapes, such as one with a broad middle and another with a cluster of extremely low values at one end. The calculator is also sensitive to outliers, so a handful of very large incomes can raise the result even if most entries are close together. That sensitivity is useful when you want to see top-heavy concentration, but it can also hide useful distinctions between different kinds of inequality.

The calculator does not adjust for household size, taxes, regional price differences, or whether the incomes are before or after transfers. It also treats each entry as one observation, so a family with five people and a single-person household each count the same unless you prepare the data differently before entering it. In other words, the result measures inequality in the list you provide, not living standards in a broader social sense. If you need to evaluate purchasing power, debt pressure, or poverty, the Gini coefficient should be paired with other measures.

Another limitation is that the Gini coefficient is designed for comparison, not explanation. It can tell you that one distribution is more uneven than another, but it cannot tell you whether that difference came from wages, capital income, business ownership, or demographic composition. That is why this calculator works best when it is one part of a larger analysis rather than the only number you report.

Alternatives and Complementary Inequality Metrics

Other inequality metrics can complement the Gini coefficient when you want a fuller view of income inequality. The Palma ratio emphasizes the contrast between the top and bottom of the distribution, which can be helpful when the extreme ends matter most. The Theil index is useful when you want to break inequality into subgroups, and the Atkinson index lets you choose how strongly to weight inequality at the lower end of the distribution. Percentile ratios can also be useful if your main question is how the top 10% compares with the bottom 40%, or how the top 1% behaves relative to the rest.

The advantage of the Gini coefficient is that it is easy to compare across datasets and easy to explain in plain language. The tradeoff is that it hides some of the shape details that other metrics can expose. For that reason, people often use the Gini coefficient together with a few percentile comparisons or a Lorenz curve view so readers can understand both the overall pattern and the extremes. In a report, that combination usually tells a more complete story than any one measure on its own.

Tracking Gini Over Time for Policy Analysis

Tracking the Gini coefficient over time can reveal whether a population's income distribution is becoming more or less concentrated. If the score rises after a wage shock, a shift in tax treatment, or a change in top-end compensation, that does not prove causation, but it does show that the distribution moved in a measurable way. Likewise, a falling score can reflect wider wage growth, a smaller gap between the top and bottom, or a change in which entries are included in the file. This calculator makes that kind of before-and-after check straightforward.

When you compare multiple time periods, keep the measurement rules consistent. Use the same unit, the same time window, and the same income definition if you want the difference in scores to mean something real. If one file contains household income and another contains individual wages, the Gini values may both be correct yet still not be comparable. The score is most informative when the only thing that changes is the distribution itself.

Calculating Gini from Household or Individual Income Lists

This calculator accepts a simple income list, but the Gini coefficient depends heavily on what each entry represents. Household incomes, individual wages, annual profits, regional incomes, or other like-for-like measures can all be used if you keep the definition consistent from one comparison to the next. The page sorts the values internally, so you can paste them in any order and still get the same result. The order you type is not important; the meaning of each input is.

That point matters because two lists may look similar on the surface while representing different economic units. A household dataset can include more than one earner, while an individual wage list focuses on a single person at a time. The resulting Gini coefficient can therefore change even if the numbers appear to be in the same range. When you compare groups, make sure you are comparing the same kind of income observation rather than mixing categories that answer different questions.

Assumptions and Limitations for Gini Input Data

To get a meaningful result from this income inequality calculator, the input list should contain at least two valid non-negative numbers. Non-numeric text is ignored, and negative values are filtered out before the Gini calculation runs, so it is worth checking the source data if your file can include refunds, losses, or other entries that are not standard income values. Zero incomes are allowed, but if every valid value is zero, the mean is zero and the coefficient cannot be defined. That is why the calculator asks for a list that contains real income variation rather than a series of placeholders.

The calculator also assumes that every entry carries equal weight unless you adjust the data before pasting it in. That is fine for many quick comparisons, but it means the result is only as representative as the list you provide. If one row stands for a household and another stands for a person, the coefficient may still be computed correctly while still describing a mixed dataset. In short, the math is straightforward, but the data definition deserves as much attention as the number it produces.

For best results, double-check the units before you compare outputs. A set of monthly wages should be compared with monthly wages, and a set of annual incomes should be compared with annual incomes. If you want to compare two regions or two companies, make sure both files reflect the same time period and the same accounting treatment so the Gini coefficient reflects inequality rather than a bookkeeping difference.

Practical Use Case: Comparing Pay Gaps Across Regions or Companies

In practice, people use a Gini coefficient calculator to compare salary structures across teams, departments, cities, or entire organizations. An HR team might check whether one business unit has a more concentrated pay structure than another, while a policy analyst might compare regional income lists before and after a program change. The number is especially useful when the question is not "How much does the average person earn?" but "How evenly is the total income divided?" A higher score suggests a wider pay gap, while a lower score suggests a more even spread of incomes.

The value becomes more informative when you compare similar groups and keep the definition of income consistent. For example, a company-wide salary list and a contractor-only list may produce different Gini scores, but that comparison only makes sense if both groups are meant to be analyzed the same way. The calculator helps you see whether the distribution itself is changing, which is often the first clue that a deeper review is needed. It works well as a quick screen before a more detailed compensation or inequality analysis.

Conclusion: What This Income Inequality Calculator Tells You

This income inequality calculator turns a plain list of incomes into a Gini coefficient you can compare across groups or over time. That single number gives you a concise view of whether income is spread broadly or concentrated among a smaller set of entries, and it fits naturally with the Lorenz curve intuition behind the formula. Used carefully, the result can help you frame questions about pay equity, regional inequality, or policy change. Used carelessly, it can hide important differences in the underlying data, so the best practice is to treat the score as a starting point for analysis rather than the whole story.

When you need a quick inequality snapshot, the Gini coefficient is a useful first pass. When you need the full picture, it is the beginning of the conversation, not the end. This calculator is designed to give you that first pass clearly, using the exact list of income values you provide, so you can focus on the interpretation rather than on the arithmetic.

Arcade Mini-Game: Spot the Assumptions Behind a Gini Calculation

Use this quick arcade round to practice spotting which income-list details matter for a Gini coefficient and which distractions do not.

Score: 0 Timer: 30s Best: 0

Start the game, then use your pointer or arrow keys to catch useful income-data checks and avoid bad inputs.

Enter at least two income values, separated by commas, to calculate the Gini coefficient.