Skip to content

Area code 540

Area code 540 covers Roanoke, Fredericksburg and 23 more places in Virginia.

Virginia, the United States

Area code
540
Region
Virginia
Country
the United States
Main cities
Roanoke, Fredericksburg, Harrisonburg, Winchester, Culpeper, Staunton
Time zones
America/New_York
In service since
July 15, 1995
Overlays
826
Prefixes assigned
786
Pooled prefixes
628 (80%)
Carriers holding prefixes
52

About area code 540

Area code 540 serves Virginia in the United States. The exchanges in this code are mostly assigned to Roanoke, Fredericksburg, Winchester, Harrisonburg, Blacksburg. It has been in service since July 15, 1995.

Phone numbers in this area code follow the America/New York time zone.

It shares its territory with the overlay code 826: new numbers in the same area can get either code, so a ten-digit number is needed even for local calls.

A number in this area code is written (540) NXX-XXXX in the United States and Canada, and +1 540 NXX XXXX in international format, where NXX is a three-digit exchange that starts with 2 to 9.

An area code tells you where a number was first assigned, not where its owner is: mobile numbers keep their area code when people move, and numbers can be ported between carriers.

Roanoke holds 13% of the phone prefixes in area code 540.

A prefix is the three digits after the area code. NANPA assigns each one to a carrier for a rate center, and the place below is the one that rate center belongs to. Most numbers in a prefix were first handed out in that place, but mobile numbers stay with their owners when they move.

PlacePrefixesShare
Roanoke104
13.2%
Fredericksburg80
10.2%
Harrisonburg43
5.5%
Winchester38
4.8%
Culpeper33
4.2%
Staunton28
3.6%
Blacksburg21
2.7%
Christiansburg18
2.3%
Radford18
2.3%
Stafford18
2.3%
Warrenton18
2.3%
Waynesboro16
2%
Rocky Mount13
1.7%
Front Royal12
1.5%
Edinburg11
1.4%
King George11
1.4%
Lexington11
1.4%
Salem11
1.4%
Bedford10
1.3%
Luray9
1.1%
Covington8
1%
Louisa7
0.9%
Orange7
0.9%
Pearisburg7
0.9%
Pulaski7
0.9%

Verizon Virginia, Inc. holds the most prefixes in area code 540: 155 of 786.

These counts are prefixes, not phone numbers or customers. A pooled prefix is split between carriers in blocks of 1,000 numbers, and any number can be ported to another carrier after it is assigned, so check the carrier of a given number with the lookup.

628 of the 786 prefixes (80%) are pooled: their numbers are handed to carriers in blocks of 1,000.

40 prefixes in area code 540 were assigned since 2021.

NANPA's public file dates 330 of the 786 prefixes in this area code. The others carry no assignment date in the file.

NANPA's public file dates 330 of the 786 prefixes in this area code. The others carry no assignment date in the file.
  1. 2001: 42
  2. 2002: 26
  3. 2003: 9
  4. 2004: 10
  5. 2005: 5
  6. 2006: 7
  7. 2007: 6
  8. 2008: 18
  9. 2009: 17
  10. 2010: 11
  11. 2011: 12
  12. 2012: 5
  13. 2013: 7
  14. 2014: 7
  15. 2015: 8
  16. 2016: 8
  17. 2017: 15
  18. 2018: 38
  19. 2019: 15
  20. 2020: 24
  21. 2021: 23
  22. 2022: 9
  23. 2023: 8
20012023

Each of the 786 prefixes in area code 540 has its own page.

Prefixes are grouped by place. Open one to see the carrier it was assigned to, its rate center, its assignment date and whether it is pooled.

Clifton Forge 3

Boones Mill 2

Buchanan 2

Fincastle 2

Grottoes 2

Hot Springs 2

McGaheysville 2

Monterey 2

New Castle 2

Sperryville 2

Weyers Cave 2

Woodstock 2

Dayton 1

Fishersville 1

Locust Grove 1

Mineral 1

Mount Jackson 1

New Market 1

Pembroke 1

Strasburg 1

Verona 1

Vinton 1

Frequently asked questions

Where is area code 540?
Area code 540 is in Virginia, the United States. Most of its prefixes belong to Roanoke, Fredericksburg, Harrisonburg, and Winchester.
What time zone is area code 540 in?
Phone numbers with area code 540 follow America/New York. The area code shows where a number was first assigned, so the person you call may be somewhere else.
Which phone carriers use area code 540?
Verizon Virginia, Inc., Omnipoint Communications Cap Operations, LLC, and Cellco Partnership DBA Verizon Wireless hold the most prefixes in area code 540, according to NANPA's assignment file of November 23, 2026. A number may have been ported to another carrier since, and the free lookup reads the number itself.
Is a call from area code 540 a scam?
Not because of the area code. Caller ID can be spoofed to show any number, so a 540 number on your screen may not come from Virginia. Look the number up, and do not share codes, passwords or payment details with a caller you did not expect.

Prefix assignments from the NANPA central office code assignment file of November 23, 2026; places from Google's libphonenumber geocoding data.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time