
Zipf's Law Calculator
Predict city population by rank using the rank-size distribution rule.
Last reviewed: June 2026Rank-Size Distribution (Top 10)
| Rank | Predicted Population | % of Largest |
|---|
How the Zipf's Law Calculator works
This calculator applies the city rank-size form of Zipf's Law. Enter the population of the largest city and a target rank, and the calculator estimates the target city's population as P(rank) = P1 / rank. It also builds a top-10 table so you can see the full benchmark distribution from the largest city through rank 10.
The model is intentionally simple. In the classic rank-size rule, the second-largest city is about half the largest, the third-largest is about one-third, the fourth-largest is about one-fourth, and so on. Real countries rarely match that perfectly, but the rule is a useful baseline for spotting unusually dominant primate cities or unusually balanced urban systems.
When the model is useful
- Urban geography: Compare actual city populations against a quick rank-size expectation.
- Market sizing: Estimate rough city tiers when only the largest-city population is known.
- Classroom checks: Demonstrate power-law distributions without a spreadsheet.
- Data QA: Flag population tables where a rank looks implausibly high or low.
Common mistakes
- Mixing definitions: Do not compare city proper, urban area, and metro area populations in the same run.
- Treating the estimate as current census data: The calculator gives a model benchmark, not an official population count.
- Ignoring primate-city effects: Some countries have one very dominant city, which can make lower ranks much smaller than the rank-size rule predicts.
- Using stale largest-city values: Update the largest-city input if you are modeling a specific year.
Example
If the largest city has 8,336,817 people, the rank-size rule estimates rank 2 at 4,168,409, rank 3 at 2,778,939, and rank 10 at 833,682. The table is not saying those are official city populations; it is showing the benchmark curve that actual city data can be compared against.