Gini Coefficient Calculator
Measure how unevenly values are distributed with MiniWebtool’s Gini Coefficient Calculator. It calculates the coefficient from your dataset and draws its Lorenz curve, with quintile analysis and calculation steps to explain the distribution behind the number.
For Gemini, paste the copied question into the chat. You can also copy it below.Need help using this tool? Ask AI
View the question
Enter a list of incomes or values below to get the Gini coefficient, the Lorenz curve, quintile shares and the steps.
About Gini Coefficient Calculator
Welcome to the Gini Coefficient Calculator, a comprehensive tool for measuring inequality in any distribution of values. Whether you are analyzing income disparity, wealth concentration, market share distribution, or any other dataset, this calculator provides the Gini coefficient, an interactive Lorenz curve, quintile analysis, and step-by-step calculations to help you fully understand the inequality in your data.
At a Glance
The Gini Coefficient Calculator measures how unevenly values are distributed in a dataset, on a scale from 0 (equal) to 1 (one entity has everything). It draws the Lorenz curve and shows quintile shares and calculation steps.
| Feature | What you get | Good for |
|---|---|---|
| Flexible data entry | Paste non-negative numbers separated by commas, spaces or line breaks, such as incomes, wealth or market shares. | Income, salary and market-share datasets |
| Decimal precision | Choose 2 to 15 decimal places for the results. | Matching the precision a report or paper requires |
| Lorenz curve | An interactive chart plots the cumulative population share against the cumulative value share, with the line of perfect equality for comparison. | Seeing where in a distribution the inequality sits |
| Quintile shares | Splits the data into five groups with each group's percentage share, plus a Top 10% versus Bottom 50% ratio. | Comparing the share held by the top and bottom groups |
| Trapezoidal method | Sorts the values, builds the Lorenz curve, finds the area under it with the trapezoidal rule and applies G = 1 - 2B, with each step shown. | Following or checking the calculation by hand |
| Inequality level | Classifies the result from Very Low (0.00 to 0.20) to Very High (0.50 to 1.00) and shows a gauge. | Reading what a Gini value means |
What is the Gini Coefficient?
The Gini coefficient (also called the Gini index or Gini ratio) is a measure of statistical dispersion developed by the Italian statistician Corrado Gini in 1912. It quantifies inequality in a distribution on a scale from 0 (perfect equality — everyone has the same) to 1 (maximum inequality — one entity has everything).
It is the most widely used single number summary of inequality and is a standard tool in economics, sociology, public policy, and data science.
Gini Coefficient Formula
Where A is the area between the line of perfect equality and the Lorenz curve, and B is the area under the Lorenz curve. Since A + B = 0.5 (the area of the triangle above the Lorenz curve):
What is a Lorenz Curve?
The Lorenz curve is a graphical representation of a distribution's inequality. Developed by economist Max O. Lorenz in 1905, it plots:
- X-axis: Cumulative share of the population (from lowest to highest value)
- Y-axis: Cumulative share of the total value held by that population share
The line of perfect equality is a 45-degree diagonal where every population share holds the corresponding value share (e.g., the bottom 50% holds 50% of the total). The further the Lorenz curve bows below this line, the greater the inequality — and the larger the Gini coefficient.
How to Use This Calculator
- Enter your data: Input numerical values (e.g., incomes, salaries, wealth levels, market shares) in the text area. Values can be separated by commas, spaces, or line breaks.
- Set decimal precision: Choose the number of decimal places (2–15) for your results.
- Calculate and analyze: Click "Calculate Gini Coefficient" to see the Gini value, Lorenz curve visualization, quintile breakdown, inequality gauge, and step-by-step calculations.
Understanding Your Results
Gini Coefficient Scale
| Gini Range | Inequality Level | Interpretation |
|---|---|---|
| 0.00 – 0.20 | Very Low | Highly equal distribution |
| 0.20 – 0.30 | Low | Relatively equal, modest differences |
| 0.30 – 0.40 | Moderate | Typical of many developed nations |
| 0.40 – 0.50 | High | Significant concentration of resources |
| 0.50 – 1.00 | Very High | Extreme inequality |
World Gini Coefficients (Income)
| Country / Region | Gini (approx.) | Category |
|---|---|---|
| Slovakia, Slovenia | 0.24 – 0.25 | Very Low |
| Denmark, Norway, Sweden | 0.26 – 0.28 | Low |
| Germany, France, Canada | 0.30 – 0.33 | Moderate |
| United States, China | 0.39 – 0.41 | High |
| Brazil, Colombia | 0.49 – 0.54 | Very High |
| South Africa | 0.63 | Extreme |
Applications of the Gini Coefficient
Economics & Public Policy
Governments and international organizations (World Bank, OECD, UN) use the Gini coefficient to track income and wealth inequality over time, compare inequality across countries, and evaluate the effectiveness of tax and redistribution policies.
Business & Market Analysis
In business, the Gini coefficient can measure market concentration (how revenue is distributed among companies), customer concentration (dependence on a few large clients), and salary inequality within an organization.
Health & Education
Researchers apply the Gini coefficient to measure disparities in healthcare access, health outcomes, educational attainment, and resource allocation across populations.
Ecology & Biodiversity
Ecologists use Gini-like measures to assess species abundance distributions and resource partitioning in ecosystems.
Calculation Method
This calculator uses the trapezoidal rule on the Lorenz curve to compute the Gini coefficient:
- Sort all values in ascending order.
- Compute cumulative shares of both population and value to construct the Lorenz curve.
- Calculate B (area under the Lorenz curve) using the trapezoidal rule: \(B = \sum_{i=0}^{n-1} \frac{y_i + y_{i+1}}{2} \cdot \Delta x\)
- Compute the Gini coefficient: \(G = \frac{0.5 - B}{0.5} = 1 - 2B\)
Limitations of the Gini Coefficient
- Same Gini, different shapes: Different Lorenz curves can produce the same Gini value, so it cannot tell you where in the distribution inequality occurs.
- Non-negative values only: The Gini coefficient requires all values to be zero or positive.
- Absolute levels ignored: A wealthy country and a poor country can have the same Gini coefficient — it measures relative, not absolute, distribution.
- Sample size sensitivity: For very small datasets, the Gini coefficient may not be reliable.
- No transfer sensitivity: A transfer from a richer to a poorer person always reduces the Gini, regardless of how close their incomes are.
Frequently Asked Questions
What is the Gini coefficient?
The Gini coefficient is a statistical measure of inequality in a distribution, ranging from 0 (perfect equality, where everyone has the same) to 1 (maximum inequality, where one person has everything). It is commonly used to measure income or wealth inequality within a country or group.
How is the Gini coefficient calculated?
The Gini coefficient is calculated using the Lorenz curve. First, sort values in ascending order and compute cumulative population and value shares. The area between the line of perfect equality (45-degree line) and the Lorenz curve is area A, while the area under the Lorenz curve is area B. The Gini coefficient equals A / (A + B), or equivalently (0.5 - B) / 0.5, where B is computed using the trapezoidal rule.
What is a Lorenz curve?
A Lorenz curve is a graphical representation of inequality. The x-axis shows the cumulative share of the population (from poorest to richest) and the y-axis shows the cumulative share of income or wealth. A perfectly equal distribution would be a straight 45-degree line. The further the Lorenz curve bows below this line, the greater the inequality.
What is a good Gini coefficient value?
A Gini coefficient below 0.3 generally indicates low inequality. Values between 0.3 and 0.4 represent moderate inequality typical of many developed nations. Values above 0.4 indicate high inequality, and above 0.5 represents very high inequality. For reference, Scandinavian countries typically have values around 0.25-0.30, while some developing nations exceed 0.60.
Can the Gini coefficient be used for things other than income?
Yes. While most commonly used for income and wealth inequality, the Gini coefficient can measure inequality in any non-negative distribution — health outcomes, education access, land ownership, market concentration, resource allocation, biodiversity, and even pixel intensity distributions in image analysis.
What are the limitations of the Gini coefficient?
The Gini coefficient has several limitations: it cannot distinguish between different types of inequality (e.g., different Lorenz curves can produce the same Gini value), it requires non-negative values, it does not account for absolute levels (a rich and poor country can have the same Gini), and it is sensitive to sample size for small datasets. It also does not capture where in the distribution inequality occurs.
Additional Resources
Reference this content, page, or tool as:
"Gini Coefficient Calculator" at https://MiniWebtool.com/gini-coefficient-calculator/ from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: Feb 20, 2026
Chat with your favorite AI
For Gemini, paste the copied question into the chat. You can also copy it below.
View the question
Statistics And Data Analysis:
- A/B Test Sample Size Calculator New
- A/B Test Significance Calculator New
- ANOVA Calculator
- Arithmetic Mean Calculator
- Average Calculator
- Average Deviation Calculator
- 📊 Bar Graph Maker New
- Bayes' Theorem Calculator New
- Beta Distribution Calculator New
- Box and Whisker Plot Maker
- Chi-Square Test Calculator
- Coefficient of Variation Calculator
- Cohen's d Calculator
- Compound Growth Calculator Popular
- Confidence Interval Calculator
- Confidence Interval for Proportion Calculator
- Contingency Table Calculator New
- Conversion Rate Calculator New
- Correlation Coefficient Calculator
- Effect Size Calculator New
- Exponential Distribution Calculator New
- F-Test / F-Distribution Calculator New
- Fisher's Exact Test Calculator New
- Five Number Summary Calculator New
- Geometric Distribution Calculator New
- Geometric Mean Calculator
- Gini Coefficient Calculator
- Harmonic Mean Calculator
- Histogram Maker
- Hypergeometric Distribution Calculator New
- Interquartile Range Calculator
- Kruskal-Wallis Test Calculator
- 📈 Line Graph Maker New
- Linear Regression Calculator
- Logarithmic Growth Calculator
- Mann-Whitney U Test Calculator
- Mean Absolute Deviation (MAD) Calculator
- Mean Calculator
- Mean Median Mode Calculator
- Median Absolute Deviation Calculator
- Median Calculator Popular
- Midrange Calculator
- Mode Calculator
- Normal Distribution Calculator New
- Odds Ratio Calculator New
- Outlier Calculator Popular
- p-Value Calculator New
- Pareto Chart Generator New
- Percentile Calculator New
- 🥧 Pie Chart Maker New
- Population Standard Deviation Calculator
- Quartile Calculator
- Quartile Deviation Calculator
- Range Calculator
- RSD Calculator - Relative Standard Deviation Popular
- Root Mean Square Calculator
- Sample Mean Calculator
- Sample Size Calculator
- Sample Standard Deviation Calculator
- Scatter Plot Maker
- Six Sigma Process Capability Calculator New
- Spearman Rank Correlation Calculator New
- Standard Deviation Calculator
- Standard Error Calculator Popular
- Statistics Calculator
- t-Test Calculator
- Variance Calculator
- Weibull Distribution Calculator New
- Z-Score Calculator