City Calculator
Please enter a city name, a population greater than 0, and a land area greater than 0.
Two cities can each have a million residents and feel like completely different planets. One is a sprawling grid of single-family homes where everyone drives; the other is a vertical maze of apartment towers where nobody owns a car. The difference between them is captured by a single number: population density — how many people live in each square mile or square kilometer of land.
Density quietly shapes almost everything about urban life: how expensive housing is, whether public transit can survive, how far you drive to buy groceries, even how cities handle emergencies. Yet most people have never actually calculated it for the place they live. The City Calculator above changes that. Enter any city's name, population, and land area, and it instantly reports the density per square mile, the density per square kilometer, and a plain-English classification from "Rural / small town" to "Dense metro" — plus a New York City benchmark for perspective.
What Population Density Actually Measures
Population density is the simplest ratio in urban geography: people ÷ land area. A city of 100,000 people spread across 50 square miles has a density of 2,000 people per square mile. The same 100,000 people squeezed into 5 square miles would have a density of 20,000 per square mile — ten times denser, and a profoundly different place to live.
The two standard units are people per square mile, common in the United States, and people per square kilometer, used almost everywhere else. Converting between them is a fixed ratio: one square mile equals approximately 2.58999 square kilometers. So a density of 2,000 per square mile equals about 772.2 per square kilometer (2,000 ÷ 2.58999). The calculator performs this conversion automatically whichever unit you enter, so you always see both.
One critical detail: density is calculated on land area, not total area. A coastal city whose official boundaries include a huge bay would look artificially sparse if you divided by total area including water. Always use the land-area figure from census data or city statistics, and the result will reflect how tightly people actually live together.
Why Density Matters: Housing, Transit, and Daily Life
Density is not just trivia for geography quizzes — it is one of the strongest predictors of how a place functions. Start with housing. Where land is scarce relative to people, prices per square foot climb and builders go vertical; where land is abundant, the detached single-family home dominates. This is why a two-bedroom apartment costs multiples more in a dense coastal city than the same square footage in a spread-out inland one.
Then there is transportation. Public transit needs a minimum density to survive: buses and trains only make sense when enough riders live within walking distance of each stop. Below roughly 3,000 to 4,000 people per square mile, transit agencies struggle to fill vehicles; above 8,000 or so, subways and frequent bus networks start to thrive. Density explains why car ownership feels mandatory in some suburbs and pointless in dense cores.
Density also shapes public services and the environment. Dense cities can deliver water, power, emergency response, and internet more cheaply per person because the infrastructure serves more people per mile of pipe and cable. Environmentally, dense living typically means smaller homes, shorter trips, and lower per-capita energy use — though it also concentrates challenges like traffic congestion, noise, and pressure on parks and schools. Understanding your city's density is the first step to understanding which of these forces are at work where you live.
How Density Is Measured: Square Miles vs. Square Kilometers
The math is identical in both systems; only the unit changes. If your area is in square miles, density = population ÷ square miles. If your area is in square kilometers, first convert to square miles (square km ÷ 2.58999) and then divide, or compute per-km² density directly as population ÷ square kilometers.
The classification bands used by this calculator are practical rather than official — demographers use many competing thresholds — but they map well to lived experience. Under 500 people per square mile feels rural: farms, forests, and small towns where neighbors are distant. From 500 to 2,000 reads as suburban: subdivisions, strip malls, and car-dependent routines. From 2,000 to 8,000 is urban: apartment buildings, walkable commercial streets, and viable bus service. Above 8,000 is dense metro territory: high-rises, crowded sidewalks, and transit as a way of life. New York City, at roughly 27,000 people per square mile, sits far beyond even that top band — which is why the calculator shows it as a reference point.
How to Use This Calculator
- Enter the city name. Type any name, for example Springfield. It appears on your results for easy reference.
- Enter the population. Use the most recent census or official estimate — for example 100000. It must be greater than zero.
- Enter the land area. Use land area only, excluding large bodies of water — for example 50.
- Choose the area unit. Pick Square miles or Square km to match your area figure. The calculator converts internally, so both densities are always shown.
- Press Calculate. You will see the city name, density per square mile, density per square kilometer, and the classification band your city falls into, alongside the New York City reference.
- Compare places. Run the calculator for several cities — your hometown, a city you are considering moving to, a famous metropolis — and the density differences will explain a lot about how each one feels.
Worked Example 1: A Mid-Size American Town
Let us calculate the density of a fictional mid-size town: Springfield, population 100,000, land area 50 square miles.
Step 1 — Divide population by area. Density per square mile = 100,000 ÷ 50 = 2,000 people per square mile.
Step 2 — Convert to per square kilometer. One square mile equals 2.58999 square kilometers, so 50 square miles = 50 × 2.58999 ≈ 129.50 square kilometers. Then 100,000 ÷ 129.50 ≈ 772.20 people per square kilometer. Equivalently, 2,000 ÷ 2.58999 ≈ 772.20 — both routes agree.
Step 3 — Classify. A density of 2,000 per square mile sits right at the top of the 500–2,000 band, so Springfield classifies as Suburban — right on the boundary where a place starts feeling urban. This matches the lived reality of many mid-size American towns: mostly car-dependent, but with a walkable downtown core and bus routes that can just about sustain themselves.
Worked Example 2: A Large City Measured in Square Kilometers
Now a bigger, denser case using metric units: Metroville, population 1,600,000, land area 780 square kilometers.
Step 1 — Convert the area to square miles. 780 ÷ 2.58999 ≈ 301.16 square miles. Metroville's footprint is roughly six times Springfield's.
Step 2 — Divide population by square miles. 1,600,000 ÷ 301.16 ≈ 5,312.80 people per square mile.
Step 3 — Get the per-km² density. 1,600,000 ÷ 780 ≈ 2,051.28 people per square kilometer. (Check: 5,312.80 ÷ 2.58999 ≈ 2,051.28 — consistent.)
Step 4 — Classify. At 5,312.80 per square mile, Metroville falls squarely in the 2,000–8,000 band: Urban. Expect mid-rise apartment districts, busy commercial corridors, and a transit system with real ridership — a fundamentally different daily experience from Springfield's, driven almost entirely by that one density number.
Famous City Densities Around the World
To calibrate your intuition, here are approximate densities for well-known cities. Treat every figure as rounded and illustrative — official boundaries differ between sources, and a city's "proper" density can look very different from its metro-area density. Still, the ordering tells a real story:
New York City — ≈ 27,000 per square mile. The densest major American city by a wide margin; Manhattan alone is several times denser than the city average.
San Francisco — ≈ 17,500 per square mile. Second-densest major US city, with a compact peninsula forcing vertical growth.
Chicago — ≈ 12,000 per square mile. Dense lakefront neighborhoods, sprawling outer wards.
London — ≈ 14,500 per square mile. Dense by European standards, yet far below Paris or Barcelona.
Los Angeles — ≈ 8,300 per square mile. Famous for sprawl, yet its sheer population keeps the average surprisingly high.
Houston — ≈ 3,600 per square mile. The archetypal car city: huge land area, low average density.
Notice what the numbers reveal: Los Angeles, the symbol of sprawl, is more than twice as dense as Houston on average, because LA's sprawl is continuous while Houston's includes vast undeveloped tracts inside its enormous city limits. Averages hide internal variety — every city contains neighborhoods far denser and far sparser than its headline number.
What Density Cannot Tell You: Honest Limitations
Density is a powerful summary, but a single number per city inevitably hides as much as it reveals. The biggest limitation is uneven distribution: a city averaging 4,000 per square mile might contain a downtown at 30,000 and suburbs at 800. The average describes neither place accurately. Researchers sometimes use population-weighted density — averaging the density of each resident's own neighborhood — to fix this, but it requires block-level data the simple calculator does not need.
Boundaries distort comparisons too. Some cities (like Houston) have annexed enormous areas, diluting their density; others (like San Francisco) are hemmed in by water and look denser than their metro areas really are. Comparing "city proper" densities across countries is especially treacherous because municipal boundaries follow different traditions. For fair comparisons, use metro-area figures from the same source.
Finally, density says nothing about quality. A dense neighborhood of well-designed apartments with parks and transit is delightful; a dense neighborhood of overcrowded tenements without services is miserable. The same number can describe both. Use density as a starting lens for understanding a place — housing markets, transit viability, infrastructure costs — not as a verdict on whether it is a good place to live.
8 Tips for Working With Density Numbers
- Always use land area, not total area. Including lakes, bays, or rivers in the area figure artificially lowers density. Census land-area tables are the reliable source.
- Match the year of your population and area figures. Populations change yearly while boundaries rarely do; mixing a 2020 population with a 2010 area still works, but mixing in an annexation-era boundary does not.
- Compare like with like. City-proper to city-proper, or metro to metro. Never compare one city's downtown-core density with another's whole-metro average.
- Remember the per-km² shortcut. Density per square kilometer is always the per-square-mile figure divided by 2.58999 — roughly 2.6. A quick mental divide gets you close.
- Use density to sanity-check housing claims. If someone calls a city "super dense" but the calculator says 1,200 per square mile, you are looking at a suburb with good marketing, not a metropolis.
- Pair density with a map. Numbers come alive when you see where the people actually cluster — downtown cores, transit corridors, and waterfronts usually carry the average.
- Track density over time for growing cities. A city whose population grows 20 percent while its area stays fixed is densifying fast — expect housing pressure, transit debates, and zoning fights to follow.
- Do not confuse density with crowding. Crowding is about people per room; density is about people per square mile. A city can be dense and spacious indoors, or sparse and cramped indoors.
Frequently Asked Questions
1. What is population density?
Population density is the number of people living per unit of land area — typically expressed as people per square mile or people per square kilometer. It is calculated by dividing a city's population by its land area.
2. How do I calculate population density?
Divide the population by the land area in your chosen unit. For example, 100,000 people ÷ 50 square miles = 2,000 people per square mile. The calculator above does this automatically and converts between square miles and square kilometers.
3. What is the difference between density per square mile and per square kilometer?
Only the unit. One square mile equals about 2.58999 square kilometers, so divide a per-square-mile density by 2.58999 to get the per-square-kilometer figure. A density of 2,000 per square mile equals about 772.2 per square kilometer.
4. What counts as a high population density?
There is no single official cutoff, but this calculator treats above 8,000 people per square mile as dense metro territory. For context, New York City averages roughly 27,000 per square mile, while a typical American suburb sits between 500 and 2,000.
5. Should I use land area or total area?
Always land area. Total area includes water bodies like bays and lakes, which makes waterfront cities look emptier than they are. Census bureaus publish land-area figures separately — use those.
6. Why does density matter for public transit?
Transit needs enough potential riders within walking distance of each stop. Below roughly 3,000 to 4,000 people per square mile, buses and trains struggle to fill seats; above about 8,000, frequent service becomes economically viable. Density is the main reason transit thrives in some cities and withers in others.
7. Does higher density mean higher housing prices?
Often, but not always. High density usually reflects strong demand for limited land, which pushes prices up. However, density also allows more homes per acre, which can moderate prices if building is permitted. Zoning rules matter as much as the density number itself.
8. What is the densest city in the world?
It depends on boundaries, but cities like Manila in the Philippines and parts of Dhaka, Mumbai, and Paris rank among the densest large cities on earth, with some districts exceeding 100,000 people per square mile. Rankings shift with each census and with how city limits are drawn.
9. How does density affect the environment?
Per person, dense living usually means smaller homes, shorter commutes, and lower energy use. But density also concentrates traffic, noise, and pressure on green space. The net environmental effect depends heavily on building quality and transit availability.
10. Can two cities with the same density feel different?
Absolutely. A city of uniform mid-rise blocks and a city with a dense downtown surrounded by sprawling suburbs can share the same average density while feeling nothing alike. Averages hide distribution, so look at neighborhood-level figures for the full picture.
11. What is population-weighted density?
It is the average density experienced by the average resident — computed by averaging each neighborhood's density weighted by its population — rather than the simple citywide average. It better reflects lived experience in cities with uneven settlement patterns.
12. How often should density figures be updated?
Population estimates are typically updated yearly by census agencies, while land area changes only when boundaries change. For fast-growing cities, refreshing the population figure each year keeps the density number meaningful.
13. Is a rural area's density ever misleading?
Yes. A county averaging 100 people per square mile might contain a compact town of 10,000 surrounded by empty farmland. The low average correctly describes the county but misdescribes the town — another case where the geographic unit you choose shapes the answer.
14. What density supports walkable neighborhoods?
Urban planners often cite roughly 5,000 to 10,000 people per square mile as the range where walkable main streets, corner shops, and frequent transit start to work well. Below that, destinations spread too far apart for walking to be practical for most trips.
15. Where can I find official population and land area data?
In the United States, the Census Bureau's QuickFacts and Gazetteer files publish both. Most countries have a national statistics office with equivalent tables, and city governments usually report land area on their official websites. Always prefer these primary sources over third-party estimates.
CONCLUSION
Population density is one of those rare statistics that is both trivially easy to compute and surprisingly deep in what it explains. One division — people by land area — unlocks insight into housing prices, transit viability, infrastructure costs, and the everyday texture of a place. The City Calculator puts that insight one click away: type in a name, a population, and a land area, and you get both unit systems plus a classification that translates the raw number into something you can picture.
Use it to understand your own city, to compare places you might move to, or simply to settle debates about which city is "really" dense. Just remember the honest limits: use land area, compare like boundaries with like, and never let the average blind you to the neighborhoods inside it. Numbers describe a city — walking its streets is still the only way to know one.