Bordering states
Maryland vs Pennsylvania
Short answer
- MD
- 6,263,220
- PA
- 13,078,751
The two states, county by county
Both maps share one density scale, so the same shade means the same number of people per square mile on either side of the border. Darker counties are denser. Select a county to open its page.
Maryland
Pennsylvania
- < 61
- < 121
- < 246
- < 513
- ≥ 513
Residents, 2024
- 01Maryland6,263,220
- 02Pennsylvania13,078,751
Land, square miles
- 01Maryland9,711
- 02Pennsylvania44,742
People per square mile
- 01Maryland645.0
- 02Pennsylvania292.3
Median county household income
- 01Maryland$87,200
- 02Pennsylvania$62,918
Side by side
| Measure | Maryland | Pennsylvania |
|---|---|---|
| Residents, 2024 | 6,263,220 | 13,078,751 |
| Rank by population | 18th | 5th |
| Land, sq mi | 9,711 | 44,742 |
| People per sq mi | 645.0 | 292.3 |
| County-equivalents | 24 | 67 |
| Median county residents | 111,399 | 82,953 |
| Median county income | $87,200 | $62,918 |
| Most populous county | Montgomery County | Philadelphia County |
| Largest county by land | Frederick County | Lycoming County |
| Capital | Annapolis | Harrisburg |
| Daylight at capital, June 21 | 14 h 54 min | 15 h 03 min |
| Census division | South Atlantic | Middle Atlantic |
Population and density
Pennsylvania has 13,078,751 residents, 2.1 times Maryland's 6,263,220. Maryland ranks 18th and Pennsylvania 5th of the 50 states and DC. Maryland is the more crowded, with 645.0 people per square mile against 292.3, 2.2 times.
Land area
Pennsylvania has 44,742 square miles of land, 4.6 times Maryland's 9,711. The largest county-equivalent in Maryland is Frederick County at 661 square miles; in Pennsylvania it is Lycoming County at 1,229.
Counties
Pennsylvania is divided into 67 county-equivalents and Maryland into 24, so an average Pennsylvania county covers 668 square miles against 405. The typical county in Maryland has 111,399 residents, against 82,953 in Pennsylvania. The most populous are Montgomery County (1,082,273) and Philadelphia County (1,573,916).
3 county names appear on both sides of the border: Montgomery, Somerset, Washington. Use the FIPS code, not the name, when joining data across the two states.
Household income
The median county in Maryland has a household income of $87,200, 39% above Pennsylvania's $62,918. The highest county incomes are Howard County ($140,113) in Maryland and Chester County ($120,925) in Pennsylvania, from SAIPE 2023.
Capitals and daylight
Annapolis and Harrisburg are 91 miles apart in a straight line; from Annapolis the initial bearing is 347°, NNW. On June 21, 2026, Annapolis gets 14 h 54 min of daylight and Harrisburg 15 h 03 min; on December 21 the figures are 9 h 26 min and 9 h 18 min. Month by month tables are on the Annapolis and Harrisburg daylight pages.
Where they sit
The border between them is also a Census region boundary: Maryland is in the South and Pennsylvania in the Northeast. By county internal points, Maryland spans 2 UTM zones and Pennsylvania 2.
Questions people ask
Which is bigger, Maryland or Pennsylvania?
Pennsylvania, with 44,742 square miles of land against 9,711, 4.61 times as large.
Which has more people, Maryland or Pennsylvania?
Pennsylvania has 13,078,751 residents, 2.1 times Maryland's 6,263,220.
How far is Annapolis from Harrisburg?
91 miles in a straight line, heading NNW (347°) from Annapolis.
Do Maryland and Pennsylvania have counties with the same name?
Yes, 3: Montgomery, Somerset, Washington.
Sources and data as of
Data as of: Census Vintage 2024 population estimates, 2024 Gazetteer land area and internal points, SAIPE 2023 median household income.
- 01Census Vintage 2024 county population estimates
- 02Census 2024 Gazetteer, counties
- 03Census SAIPE 2023 state and county estimates
- 04Census Bureau regions and divisions of the United States (last verified 2026-09-30)
How every number is computed: methodology. Spotted a wrong figure? Report an error.