Every ZIP code in the United States, with weather, radar, trivia and the numbers behind it. Five digits since 1963!

ZIP stands for Zone Improvement Plan. The codes went live on July 1, 1963.The lowest ZIP code is 00501 — the IRS in Holtsville, New York.The highest ZIP code is 99950, in Ketchikan, Alaska.Type 07734 into a calculator and turn it upside down: hELLO. It is Keansburg, New Jersey.12345 belongs to one company: General Electric in Schenectady, New York.The first digit is a region: 0 is New England and New Jersey, 9 is the West Coast, Alaska and Hawaii.Mr. ZIP, the cartoon mailman, was the mascot that sold the idea to America.ZIP+4 arrived in 1983 and can narrow a ZIP down to one side of one block.A ZIP code is a mail route, not a place: plenty of them cross county and even state lines.Play ZIP Hunt: guess the secret ZIP code of the day in six tries.
zipcodes.pro — AREA-CODE/540

540 area code

Area code 540 is in Virginia. It covers Roanoke, Stafford, Harrisonburg and 289 other places: 315 ZIP codes in Stafford County, Spotsylvania County, Rockingham County and 39 others. Local time there is , Eastern Time. In service since 1995; 826 (2022) overlays it, so a number from there can have either code.

Time zone
Eastern
Largest city
Fredericksburg
Overlays
826
In service since
1995
Rate centres
117
Prefixes assigned
786 (7,860,000 numbers)

Who calls from a 540 number

NANPA records the carrier each block of 540 numbers is assigned to. Of the 7.5 million 540 numbers assigned, 37% are with cable, internet-calling, business and other carriers (Onvoy and Bandwidth); 35% with mobile carriers (T-Mobile, Verizon Wireless and AT&T Mobility); 28% with local phone companies (Verizon).

That is who the numbers were assigned to: people keep their number when they change carrier, so any one number may have moved since.

Carriers holding the most 540 numbers
CarrierKindShare
VerizonLandline18%
T-MobileMobile13%
Verizon WirelessMobile12%
OnvoyCable, VoIP, other12%
AT&T MobilityMobile8%
BandwidthCable, VoIP, other5%

An area code says where a number was issued, not where the caller is: people keep their numbers when they move, and caller ID can be set to show any number, which the FCC calls spoofing. If a call you did not expect asks for money or personal details, the FCC advises hanging up and calling the company back on a number you look up yourself. Unwanted calls can be reported to the FTC at ReportFraud.ftc.gov.

Places in area code 540

The 100 places with a telephone rate centre of their own using 540, largest first. Each links to its ZIP codes.

Places in area code 540
PlaceZIP codesPopulation
Roanoke, VA 41 98,355
Stafford, VA 3 97,279
Harrisonburg, VA 4 51,392
Blacksburg, VA 4 45,446
Spotsylvania, VA 2 41,353
Fredericksburg, VA 9 28,873
Winchester, VA 4 27,913
Staunton, VA 2 25,948
Salem, VA 3 25,618
Waynesboro, VA 1 22,841
Christiansburg, VA 2 22,720
Culpeper, VA 1 20,794
Radford, VA 3 16,726
Locust Grove, VA 1 15,557
Front Royal, VA 1 15,296
Martinsville, VA 4 13,658
Warrenton, VA 3 10,176
Pulaski, VA 1 8,893
Bedford, VA 1 7,724
Lexington, VA 1 7,525
Strasburg, VA 2 7,214
Bridgewater, VA 1 6,708
Buena Vista, VA 1 6,593
Woodstock, VA 1 5,871
Covington, VA 1 5,680
Mc Gaheysville, VA 1 5,239
Orange, VA 1 5,066
Rocky Mount, VA 1 4,950
King George, VA 1 4,851
Luray, VA 1 4,827
Berryville, VA 1 4,707
Broadway, VA 1 4,273
Bluemont, VA 1 3,585
Clifton Forge, VA 1 3,447
Dahlgren, VA 1 3,350
Marshall, VA 2 3,219
Willis, VA 1 3,088
Elkton, VA 1 3,006
Grottoes, VA 1 2,961
Shenandoah, VA 1 2,888
Pearisburg, VA 1 2,860
Weyers Cave, VA 1 2,744
Mount Solon, VA 1 2,697
Dublin, VA 1 2,671
Louisa, VA 1 2,435
New Market, VA 1 2,342
Raphine, VA 1 2,176
Stanley, VA 1 2,034
Mount Jackson, VA 1 2,000
Narrows, VA 1 1,935
Dayton, VA 1 1,920
Ferrum, VA 1 1,774
Edinburg, VA 1 1,671
Fort Valley, VA 1 1,625
Basye, VA 1 1,481
Gordonsville, VA 1 1,459
Newport, VA 1 1,450
Union Hall, VA 1 1,445
Shawsville, VA 1 1,411
Buchanan, VA 1 1,367
Glasgow, VA 1 1,330
Craigsville, VA 1 1,104
Pembroke, VA 1 996
Remington, VA 1 989
New Hope, VA 1 900
Bent Mountain, VA 1 893
Boyce, VA 1 891
Fincastle, VA 1 858
Middleburg, VA 2 774
Keezletown, VA 1 706
Williamsville, VA 1 566
Mineral, VA 1 555
Hot Springs, VA 1 487
Floyd, VA 1 479
Troutville, VA 1 475
Natural Bridge, VA 1 457
Deerfield, VA 1 439
Toms Brook, VA 1 439
Greenwood, VA 1 402
Sperryville, VA 1 358
Hinton, VA 1 352
Montvale, VA 1 351
Bergton, VA 1 316
Madison, VA 1 273
Unionville, VA 1 262
Blue Grass, VA 1 251
Mc Dowell, VA 1 244
Boones Mill, VA 1 228
Monterey, VA 1 197
The Plains, VA 1 164
New Castle, VA 1 138
Brownsburg, VA 1 90
Gore, VA 1 86
Eagle Rock, VA 1 67
Upperville, VA 2 61
Washington, VA 1 45
Calverton, VA 1 26
Paint Bank, VA 1 10
Hartwood, VA 1 —
Oriskany, VA 1 —

Nearby places using 540

These places have no rate centre of their own in NANPA's records; the nearest one uses 540. Near an area-code boundary that can be wrong for part of a town.

ZIP codes in area code 540

315 ZIP codes in 239 towns, by the town each is mailed to, largest first. Each links to its own page.

Where 540 numbers are issued

NANPA's rate centres with the most 540 prefixes (each prefix is 10,000 numbers), under NANPA's own abbreviated names.

Rate centres using area code 540
Rate centrePlacePrefixes
ROANOKE Roanoke 105
FREDECKSBG Fredericksburg 63
HARRISONBG Harrisonburg 43
WINCHESTER Winchester 38
CULPEPER Culpeper 33
STAUNTON Staunton 29

Counties

The counties of its ZIP codes, most residents first, with how many of its ZIP codes each has.

Which code covers where you are now? What area code am I in? answers from your location.

Questions about area code 540

Where is area code 540?

Area code 540 is in Virginia. It covers Roanoke, Stafford, Harrisonburg and 289 other places: 315 ZIP codes in Stafford County, Spotsylvania County, Rockingham County and 39 others.

What ZIP codes are in area code 540?

315 ZIP codes, by the town each is mailed to: Roanoke (41, 24001 to 24050), Stafford (3, 22554 to 22556), Harrisonburg (4, 22801 to 22807), Blacksburg (4, 24060 to 24063) and 235 more towns. The full list is on this page.

What time zone is area code 540 in?

Eastern time.

Is a 540 number a mobile or a landline?

It can be either. 35% of 540 numbers are assigned to mobile carriers and 28% to local phone companies (NANPA, 2026-10-10); the rest are with cable, internet-calling, business and paging carriers. A number keeps its area code when it moves to another carrier.

What area codes overlay 540?

826. They cover the same area as 540, so a new number there can be given any of them.

Does a 540 number mean the caller is in Virginia?

Not necessarily. An area code says where the number was first issued. People keep their numbers when they move or switch carriers, and calling software can show any number, so a 540 call can come from anywhere.

Other area codes in Virginia

All 10 Virginia area codes, by area, with the cities each covers

Source: NANPA NPA database, central office code and thousands-block assignments, 2026-10-10. Places are matched to NANPA's rate centres by name; see sources.

Cite this page

zipcodes.pro. “Area code 540.” Data release 2026-10-12. Retrieved 2026-10-20. https://zipcodes.pro/area-code/540

Underlying data is public domain or openly licensed — sources, vintages and licences.