Pennsylvania · Eastern Time

Harrisburg, PA Area Codes

Harrisburg is served by 2 area codes (223, 717). Here's which is original, which are overlays, and how to pick one for a new local number.

Last updated October 1, 2026

Area codes serving Harrisburg

Harrisburg sits in Pennsylvania, part of the Northeast region and the Eastern Time zone. Its numbers are spread across an overlay of 2 codes that all cover the same ground: 223, 717.

The original code is 717 (in service since 1947). As the area ran low on numbers, regulators added overlay codes on top instead of splitting the city, so longtime residents kept their numbers while new lines received a newer code.

CodeArea servedIn service
223South-central Pennsylvania including Harrisburg, Lancaster, York and ChambersburgSeptember 26, 2017
717South-central Pennsylvania including Harrisburg, Lancaster, York and ChambersburgJanuary 1, 1947

Nearby cities sharing these area codes

  • Lancaster
  • York
  • Chambersburg
  • Lebanon
  • Carlisle
  • Hershey
  • Mechanicsburg
  • Hanover
  • Gettysburg
  • Ephrata
  • Waynesboro
  • Lewistown

How to pick an area code for a new number

When you activate a new line in Harrisburg, the carrier assigns whichever code has numbers available — you usually can't choose. If a specific code matters to you (for example the prestige of 717), ask the carrier whether any blocks remain, or request a number transfer. All codes here dial identically and cost the same.

Dialing in Harrisburg

Because Harrisburg is an overlay area, 10-digit dialing is mandatory: always dial the area code plus the seven-digit number, even for a neighbor. See 10-digit dialing and overlay area codes for the background. For every code in Pennsylvania, visit the Pennsylvania area codes page.

Quick answers

Harrisburg area code FAQ

What area codes does Harrisburg use?

Harrisburg, PA is served by 2 area codes: 223, 717.

Which is the original Harrisburg area code?

717 is the original code for Harrisburg, in service since 1947; the others were added later for more numbers.

Do I need to dial the area code in Harrisburg?

Yes. With multiple overlapping codes, 10-digit dialing is required for every call in this area.