Financial Statistics

Sample Gini Coefficient

Measure inequality within the user-supplied nonnegative sample and export its Lorenz curve.

Your numbers

Sample inputs are illustrative. Changing currency changes labels only.

Your result

Preparing the sample calculation…

Shared links include your entered amounts. Saved scenarios stay in this tab only.

How to use this calculator

  1. Enter nonnegative income or wealth observations.
  2. Choose a display currency, then select Calculate. Results also update after a brief pause while you edit.
  3. Read the result with the assumptions below. Export details or save a second scenario to compare your choices.

Formula and method

For sorted x: G = 2×sum(i×xᵢ)/(n×sum(x))−(n+1)/n, with i starting at 1.

Assumptions and limitations

Use your own matching-period observations. These descriptive calculations are not forecasts, investment advice or a national dataset. Lists accept up to 100 comma-separated numbers; do not enter thousands separators. Unweighted sample, no finite-sample correction; negative wealth is unsupported and all-zero sample has Gini zero.

Worked example

For the sample inputs shown above, sample gini coefficient produces a first result of approximately 0.6666666667. The assumptions below explain what this result represents.

What the result means

Measure inequality within the user-supplied nonnegative sample and export its Lorenz curve.

Common questions

How is the calculation performed?

For sorted x: G = 2×sum(i×xᵢ)/(n×sum(x))−(n+1)/n, with i starting at 1.

What does the model leave out?

Use your own matching-period observations. These descriptive calculations are not forecasts, investment advice or a national dataset. Lists accept up to 100 comma-separated numbers; do not enter thousands separators. Unweighted sample, no finite-sample correction; negative wealth is unsupported and all-zero sample has Gini zero.

Methodology and transparency

Calculation specification reviewed on 2026-10-14. Mathematical implementation is tested against independent reference fixtures. This does not imply review by a licensed financial professional. Read the testing and precision policy.

Background reference: www.itl.nist.gov — financial method. FinanceMath implements its own calculator.