Population density formula
Population density = total population ÷ land area. Enter the population and the matching area to calculate people per square kilometer or square mile.
Use the population count for the same city, region, or country boundary as the area below.
Enter land area in km²; keep units consistent before comparing places.
The population density formula is simple: population density = total population ÷ land area. The answer tells you how many people live in each square mile, square kilometer, or other unit of area. If a town has 50,000 people and covers 25 square miles, the calculation is 50,000 ÷ 25 = 2,000 people per square mile. The same formula works for a school district, island, county, country, wildlife reserve, or any mapped study area.
The important part is not the division itself. The important part is matching the population count to the same boundary as the area. A city population should be divided by city land area, not by metro area. A country population should be divided by the land area used by the same source. Once the boundary, year, and unit are aligned, the formula gives a clear density number that can be compared, checked, and explained.
Density = population ÷ area
people per km²
people per mi²
To calculate population density by hand, start by naming the exact place you want to measure. Then collect two numbers: the total population and the land area for that same place. Divide the population by the area and add the unit to the final answer. A result of 800 people per square kilometer means that, on average, each square kilometer contains 800 residents. The calculator follows this same process; it just handles the arithmetic and formats the result for you.
A reliable workflow keeps the source data visible. Write down whether the population is from a census, an estimate, a planning report, or a classroom problem. Write down whether the area is land area, total area, or built-up area. Those notes matter because two density figures can both be correct while answering different questions. A city can have one density when measured by legal boundary, another when measured by urbanized area, and another when only residential land is included.
Suppose a geography assignment asks for the population density of a city with 125,000 residents and a land area of 50 square kilometers. Use the formula: population density = population ÷ area. The calculation is 125,000 ÷ 50 = 2,500. The final answer is 2,500 people per square kilometer. If the same city area were listed as 19.31 square miles, the density would be 125,000 ÷ 19.31 = about 6,473 people per square mile.
Those two answers look different because the units are different, not because the city changed. One square mile is about 2.58999 square kilometers, so people per square mile is about 2.59 times the people per square kilometer result for the same place. When you compare density numbers from different websites, textbooks, or government tables, check the unit first. Many apparent disagreements come from mixing square miles and square kilometers.
| Step | Value | Result |
|---|---|---|
| Population | 125,000 people | Use as numerator |
| Area | 50 km² | Use as denominator |
| Formula | 125,000 ÷ 50 | 2,500 people/km² |
Use people per square kilometer when working with international geography, scientific sources, United Nations data, World Bank data, or countries that publish land area in metric units. Use people per square mile when working with many U.S. city, county, and state sources. The population density formula does not change; only the area unit changes. The calculator lets you choose km² or mi² so the answer matches the source you are using.
Unit choice also affects how a result feels. A density of 1,000 people per square kilometer is the same as about 2,590 people per square mile, but the second number is larger because a square mile covers more land. For fair comparisons, convert all results to one unit before ranking places. Do not mix people per square kilometer for one city with people per square mile for another.
Population density is useful because it adapts to many scales. A city example can show how crowded an urban boundary is. A country example can show how people are spread across a national land area. An ecology example can measure humans per unit of habitat, grazing animals per pasture, or visitors per park area. In every case, the structure is the same: count the people or organisms, measure the area, and divide.
Scale changes the interpretation. A dense neighborhood may have shops, transit, and apartment buildings on nearly every block. A dense country may still contain rural districts, forests, and farmland because the national average smooths different places together. An ecological density figure may focus on a habitat boundary rather than a political boundary. State what scale you are using so readers know what the number describes.
600,000 residents ÷ 300 km² = 2,000 people/km² for a municipal boundary.
10,000,000 residents ÷ 100,000 km² = 100 people/km² for national land area.
240 nesting pairs ÷ 12 km² = 20 pairs/km² inside a protected habitat.
The area choice controls what the density result means. Land area is the safest default for most geography comparisons because it avoids counting lakes, rivers, and coastal water as living space. Total area may be useful when a data source has already defined density that way, but it can understate density for places with a lot of water. Habitable area, residential area, and built-up area create higher density numbers because they remove land where people do not actually live.
For planning, the best area choice depends on the question. If you are estimating broad service coverage, land area may be enough. If you are studying housing crowding, use residential land area if available. If you are comparing settlement patterns, built-up area can be more meaningful than a large administrative boundary that includes mountains, deserts, farms, or protected land. Label the choice so the result is not mistaken for a different kind of density.
| Area choice | Best for | Caution |
|---|---|---|
| Land area | General city, county, and country comparisons | May include parks, farms, deserts, or uninhabited land |
| Total area | Matching a source that includes water area | Can make coastal or lake regions look less dense |
| Built-up area | Urban form, infrastructure, and settlement analysis | Requires a clear map or GIS source |
A high density number does not automatically mean a place is overcrowded, and a low density number does not automatically mean a place has plenty of usable space. The same density can feel different depending on building height, household size, transportation, parks, public services, climate, and income. A well-planned dense district can be walkable and efficient, while an unplanned dense district may struggle with housing, sanitation, and congestion. Density is a clue, not a full diagnosis.
Interpret density with the decision in mind. For transit planning, a higher density may support frequent service. For emergency management, density helps estimate how many people may need assistance in a small area. For environmental studies, density can show pressure on land, water, or habitat. For schoolwork, it helps compare settlement patterns. The same number can support different conclusions depending on the context, so pair the result with a plain-language note about what was measured.
Fair comparisons use the same formula, unit, and boundary type. If you compare two cities, use city population and city land area for both. If you compare metro regions, use metro population and metro area for both. Do not rank one city proper against another region's metro area unless the goal is to show how boundary choice changes the result. Boundary mismatch is one of the most common reasons density comparisons become misleading.
It also helps to keep the raw inputs beside the density number. A place with 10 million people over a huge land area can have a lower average density than a small city with 200,000 people in a compact boundary. Neither result is wrong. They tell different stories about scale and settlement. Record population, area, unit, year, and source so another person can reproduce the comparison later.
City A land-area density versus City B land-area density, both in people/km².
City proper density for one place versus metro-area density for another place.
The population density formula is population density = total population ÷ land area. If 50,000 people live in 25 square miles, the density is 50,000 ÷ 25 = 2,000 people per square mile. Use the same boundary for both inputs so the population count and area describe the same place.
First, choose the place you want to measure, such as a city, county, country, island, or study area. Second, find the population for that exact boundary. Third, find the land area in square miles or square kilometers. Fourth, divide population by area and label the answer as people per square mile or people per square kilometer.
The most common units are people per square kilometer and people per square mile. Use square kilometers when working with international data, geography classes, or metric sources. Use square miles for U.S. reports and local comparisons that publish land area in miles. The formula is the same; only the area unit changes.
Use land area for most city, county, state, and country comparisons because it avoids counting lakes and coastal water as living space. Use total area only if your source defines density that way. Use habitable, residential, or built-up area when you want to study crowding or housing pressure inside the part of a place where people actually live.
High and low density depend on scale. A rural county may be low at fewer than 50 people per square kilometer, while a compact city can exceed 5,000 people per square kilometer. Dense urban districts may reach tens of thousands per square kilometer. Always compare places with similar boundaries, units, and land-use patterns before labeling a result high or low.
Calculate both places with the same unit and boundary type. Do not compare a city proper with a metro area unless that is the point of the analysis. Record whether each result uses land area, total area, or built-up area. This keeps the comparison fair and helps explain why a smaller place may look denser than a much larger region.
The underlying place has not changed, but the unit is different. One square mile equals about 2.58999 square kilometers, so people per square mile is about 2.59 times the people per square kilometer value for the same location. Compare only results that use the same unit or convert both before drawing conclusions.
Avoid mixing boundaries, years, and units. A common error is using a city population with a county area, or a recent population estimate with an older land-area figure from another source. Also check decimals and thousands separators. A quick mental test can catch errors: population divided by area should be in the same rough range as similar places.
Embed on Your Website
Add this calculator to your website