Area Code 540: Location, Time Zone and Cities

Geographic Area Code In service Checked 2026-11-19

Quick answer: Area code 540 serves Roanoke, Harrisonburg, Blacksburg and other places in Virginia. It uses Eastern Time (ET). It has been in service since 1995. It shares its area with 826 (overlay).

Sources: Wikipedia (CC BY-SA), cross-checked with a second list; time zones 49 CFR Part 71; data checked 2026-11-19.

Area code does not reveal the caller's current location or identity. Numbers can travel with people, and calls can be forwarded or spoofed.

Current local time in area code 540

Eastern Time (ET)2:34 AMObserves daylight saving time

Compare with your time in the Best Time to Call tool →

Area code 540 at a glance

State
Virginia
Main cities
Roanoke, Harrisonburg, Blacksburg
In service since
July 15, 1995
Type
Geographic Area Code
Status
In service
Overlay group
540, 826
Created from
703 (split)
Neighboring codes
304, 434, 571, 276
Time zone
Eastern Time (ET)

Cities and counties served by area code 540

Places served by area code 540, largest population first
City or placeCountyPopulation (2024 est.)
RoanokeRoanoke city97,912
HarrisonburgHarrisonburg city51,164
BlacksburgMontgomery County45,452
FredericksburgFredericksburg city29,992
WinchesterWinchester city27,800
StauntonStaunton city26,361
SalemSalem city25,908
WaynesboroWaynesboro city23,498
RadfordRadford city17,273
Front RoyalWarren County15,628
WarrentonFauquier County10,224
PulaskiPulaski County8,805
BedfordBedford County7,823
LexingtonLexington city7,802
Buena VistaBuena Vista city6,581
CovingtonCovington city5,663
OrangeOrange County5,210
Rocky MountFranklin County4,971
BerryvilleClarke County4,819
LurayPage County4,813
Clifton ForgeAlleghany County3,385
LouisaLouisa County2,201
BuchananBotetourt County1,207
FincastleBotetourt County823
MineralLouisa County523
Map of Virginia with dots for the 32 listed cities served by area code 540RoanokeHarrisonburgBlacksburgFredericksburgWinchesterStauntonSalemWaynesboroRadfordFront RoyalWarrentonPulaskiBedfordLexingtonBuena VistaCovingtonOrangeRocky MountBerryvilleLurayClifton ForgeLouisaBuchananFincastleMineralFloydMadisonWashingtonAftonCave SpringGreenvilleHot SpringsRoanokeHarrisonburgBlacksburgFredericksburg
Dots mark listed cities (Census coordinates), not the exact edge of the area code.
All 32 places listed
  • Floyd
  • Madison
  • Washington
  • Afton
  • Cave Spring
  • Greenville
  • Hot Springs

Counties named in our source: Alleghany, Augusta, Bath, Botetourt, Clarke, Craig, Culpeper, Fauquier, Floyd, Franklin, Frederick, Giles, Highland, King George, Louisa, Madison, Montgomery, Orange, Page, Pulaski, Rappahannock, Roanoke, Rockingham, Rockbridge, Shenandoah, Spotsylvania, Stafford, Warren, Bedford, Albemarle, Loudoun. Some may be served only in part.

Places as listed by the source article; population: U.S. Census Bureau Vintage 2024 estimates ("Data not available" = not an incorporated place, so no estimate). Area codes follow phone company rate centers, which do not match city or county lines exactly.

Area code 540 history: splits and overlays

Timeline for area code 540: 1995 540 in service; 2001 Split: 276 created; 2022 Overlay 826 added1995540 in service2001Split: 276 created2022Overlay 826 added
  1. 1995 540 in service
  2. 2001 Split: 276 created
  3. 2022 Overlay 826 added

How to dial area code 540

  • From elsewhere in the U.S.: 1 + 540 + the seven-digit number.
  • From outside North America: your international exit code, then +1 540 and the seven-digit number.
  • Local calls: this area has more than one area code (540, 826), so local calls need all ten digits (area code + number). The FCC explains that adding an overlay code requires ten-digit local dialing. FCC: Ten-Digit Dialing.

Got a call from 540 you don't recognize?

An area code says where a number was first assigned. It does not tell you who is calling or where they are. Caller ID can be faked to look local (FCC).

  • The FCC advises not answering calls from unknown numbers; a real caller can leave a message.
  • If a caller says they are from a company or agency, hang up and call the number on your statement, card or the official website.
  • Never share verification codes or passwords (FTC). Report scams at ReportFraud.ftc.gov.

Should I call back? Get a safer next step Phone scam guides at Scam Signals →

Related area codes

Overlays and neighbors

Other area codes in Virginia

All Virginia area codes →

Area code 540: common questions

Where is area code 540?

Area code 540 serves Roanoke, Harrisonburg, Blacksburg and other places in Virginia. Area codes show where a number was first assigned, not where the caller is right now.

What time zone is area code 540 in?

Eastern Time (ET). Clocks change for daylight saving time.

Is a call from area code 540 a scam?

An area code cannot tell you that: numbers move with people and caller ID can be faked. If you don't recognize the number, the FCC advises not answering; if the caller claims to be a company or agency, contact it through a number you look up yourself.

Source ledger