540 area code
- In service since July 15, 1995.
- NANPA lists 703 as the code it came from.
The 540 area code serves parts of 38 counties in Virginia, including Roanoke, Harrisonburg, Blacksburg and Fredericksburg. 826 is an overlay on this area.
Communities
Matched from NANPA rate centers to official place names and sorted by population. A rate center is a telephone service area, not a city boundary, so nearby places can have other codes.
Luray, Broadway, Clifton Forge, Elkton, Grottoes, Pearisburg, Dublin, Shenandoah, Louisa, New Market, Stephens City, Mount Jackson, Narrows, Dayton, Stanley, Gordonsville, Edinburg, Buchanan, Pembroke, Glasgow, Craigsville, Fincastle, Boyce, Middleburg, Remington, Mineral, Troutville, Floyd, Toms Brook, The Plains, Boones Mill, Madison, Monterey, New Castle, Washington, Basye, Calverton, Dahlgren, Deerfield, Eagle Rock, Ferrum, Gore, Hot Springs, Keezletown, King George, Locust Grove, Marshall, McDowell, McGaheysville, Montvale, New Hope, Shawsville, Sperryville, Union Hall, Unionville, Upperville, Weyers Cave
Alum Ridge, Ballard, Basye, Bedford, Bent Mountain, Bergton, Berryville, Blacksburg, Blue Grass, Bluemont, Boones Mill, Boyce, Bridgewater, Broadway, Brokenburg, Brownsburg, Buchanan, Buena Vista, Burnt Chimney, Calverton, Catoctin, Chancellor, Christiansburg, Clifton Forge, Covington, Craigsville, Criglersville, Crows Hematite, Culpeper, Dahlgren, Dayton, Deerfield, Dublin, Eagle Rock, Edinburg, Edom, Elkton, Ferrum, Fincastle, Floyd, Fort Valley, Fredericksburg, Front Royal, Gainesboro, Glasgow, Gordonsville, Gore, Greenwood, Grottoes, Harrisonburg, Hartwood, Hinton, Hot Springs, Keezletown, King George, Lexington, Locust Grove, Louisa, Luray, Madison, Marshall, Mcclung, Mcdowell, Mcgaheysville, Middleburg, Mill Gap, Mineral, Monterey, Montvale, Mount Gilead, Mount Jackson, Mount Solon, Mountain Grove, Narrows, Natural Bridge, New Castle, New Hope, New Market, Newport, Orange, Oriskany, Paint Bank, Pearisburg, Pembroke, Potts Creek, Pulaski, Radford, Raphine, Remington, Roanoke, Rocky Mount, Salem, Shawsville, Shenandoah, Shenandoah Park, Sperryville, Spotsylvania, Stafford, Stanley, Staunton, Stephens City, Stone Mountain, Strasburg, The Plains, Toms Brook, Troutville, Union Hall, Unionville, Upperville, Warrenton, Washington, Waynesboro, Weyers Cave, Williamsville, Willis, Winchester, Woodstock
Codes and overlays
Caller location
An area code shows where a number was assigned. People keep mobile numbers when they move, and internet phone numbers can carry any area code. Ask for the caller's address when location matters, such as for service areas or deliveries.
Recording calls
Our Virginia guide summarizes the recording statute, federal rules for AI and automated calls, and what to ask your vendor. The caller's area code doesn't decide which law applies.
Rules for answering and recording business calls in Virginia →FAQ
The 540 area code serves parts of 38 counties in Virginia, including Roanoke, Harrisonburg, Blacksburg and Fredericksburg. 826 is an overlay on this area.
The 540 area code is in Eastern Time.
Yes. 826 is an overlay on the 540 area, in service since June 14, 2022. Numbers in the same area can have either code.
Not necessarily. An area code shows where a number was assigned, not where the caller is right now. People keep mobile numbers when they move, and internet phone numbers can carry any area code.
It depends on what's available when you set up. We search our phone carrier's open numbers for 540 / 826 during setup and show you what we find. We can't promise a specific code or number before that search runs. If 540 has nothing open, 826 covers the same area.
Other area codes in Virginia
Sources: NANPA area code and rate center reports (file dated November 30, 2026), CNAC exchange data for Canada, and U.S. Census Bureau place names and boundaries. Checked November 30, 2026. Lippy offers AI answering for calls, texts and email; see pricing, call forwarding guides and phone system options.