Bordering states

Maryland vs Pennsylvania

Short answer

Pennsylvania has 13,078,751 residents, 2.1 times Maryland's 6,263,220. Pennsylvania is the larger by land, 4.61 times the size of Maryland.
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.

Pennsylvania

Adams County: 208.1 per sq miPotter County: 14.8 per sq miSullivan County: 13.2 per sq miBucks County: 1,075.6 per sq miCarbon County: 172.4 per sq miMcKean County: 40.3 per sq miMontour County: 139.0 per sq miFulton County: 33.0 per sq miColumbia County: 136.6 per sq miCameron County: 11.0 per sq miElk County: 36.4 per sq miBradford County: 52.0 per sq miBedford County: 47.1 per sq miYork County: 521.1 per sq miMonroe County: 273.7 per sq miForest County: 15.4 per sq miBerks County: 512.7 per sq miCambria County: 189.1 per sq miFranklin County: 206.3 per sq miSnyder County: 120.5 per sq miSomerset County: 67.1 per sq miClarion County: 61.3 per sq miIndiana County: 100.3 per sq miLackawanna County: 472.6 per sq miWyoming County: 64.9 per sq miLawrence County: 235.7 per sq miMercer County: 160.8 per sq miLehigh County: 1,116.7 per sq miNorthampton County: 873.4 per sq miCumberland County: 505.1 per sq miFayette County: 156.7 per sq miJefferson County: 66.5 per sq miCentre County: 144.3 per sq miLebanon County: 401.6 per sq miUnion County: 133.4 per sq miClinton County: 42.6 per sq miChester County: 747.1 per sq miMontgomery County: 1,820.5 per sq miWayne County: 70.8 per sq miPike County: 114.5 per sq miSusquehanna County: 46.3 per sq miAllegheny County: 1,687.5 per sq miClearfield County: 68.2 per sq miButler County: 252.5 per sq miBeaver County: 380.8 per sq miCrawford County: 81.1 per sq miWashington County: 245.5 per sq miVenango County: 73.4 per sq miWarren County: 42.3 per sq miBlair County: 229.1 per sq miHuntingdon County: 49.6 per sq miLancaster County: 596.8 per sq miLuzerne County: 372.4 per sq miWestmoreland County: 341.5 per sq miJuniata County: 59.8 per sq miArmstrong County: 97.5 per sq miTioga County: 35.9 per sq miDelaware County: 3,182.0 per sq miNorthumberland County: 196.7 per sq miMifflin County: 111.8 per sq miLycoming County: 92.1 per sq miPerry County: 84.9 per sq miPhiladelphia County: 11,717.7 per sq miSchuylkill County: 185.6 per sq miDauphin County: 558.3 per sq miGreene County: 59.0 per sq miErie County: 335.1 per sq mi
People per sq mi
  1. < 61
  2. < 121
  3. < 246
  4. < 513
  5. ≥ 513
no data

Residents, 2024

  1. 01Maryland6,263,220
  2. 02Pennsylvania13,078,751

Land, square miles

  1. 01Maryland9,711
  2. 02Pennsylvania44,742

People per square mile

  1. 01Maryland645.0
  2. 02Pennsylvania292.3

Median county household income

  1. 01Maryland$87,200
  2. 02Pennsylvania$62,918

Side by side

MeasureMarylandPennsylvania
Residents, 20246,263,22013,078,751
Rank by population18th5th
Land, sq mi9,71144,742
People per sq mi645.0292.3
County-equivalents2467
Median county residents111,39982,953
Median county income$87,200$62,918
Most populous countyMontgomery CountyPhiladelphia County
Largest county by landFrederick CountyLycoming County
CapitalAnnapolisHarrisburg
Daylight at capital, June 2114 h 54 min15 h 03 min
Census divisionSouth AtlanticMiddle Atlantic
Census Vintage 2024 population, 2024 Gazetteer land area, SAIPE 2023 income. Daylight computed with SunCalc.

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.

  1. 01Census Vintage 2024 county population estimates
  2. 02Census 2024 Gazetteer, counties
  3. 03Census SAIPE 2023 state and county estimates
  4. 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.