Virginia area code
540 area code
540 was created from part of 703 in 1995. Today 540 serves Northwestern Virginia, with Roanoke, Harrisonburg and Blacksburg among its main places. 826 was added on top of 540 as an overlay, and both codes reach the same area. It runs on Eastern Time (UTC−5, or UTC−4 in summer).
- State
- Virginia
- Time zone
- Eastern Time
- In service since
- July 15, 1995
- Overlays
- 826
Where is area code 540?
In short: Northwestern Virginia is 540 territory, taking in Roanoke, Harrisonburg and Blacksburg among other places.
Area code 540 serves Northwestern Virginia. It reaches into City of Roanoke, Montgomery County, City of Harrisonburg, City of Fredericksburg, City of Winchester and City of Salem.
Places in the 540 area code
- Roanoke
- Harrisonburg
- Blacksburg
- Fredericksburg
- Winchester
- Salem
- Staunton
- Christiansburg
- Waynesboro
- Culpeper
- Radford
- Front Royal
- Warrenton
- Purcellville
- Pulaski
- Vinton
- Fishersville
- Lexington
- Buena Vista
- Strasburg
Counties: City of Roanoke, Montgomery County, City of Harrisonburg, City of Fredericksburg, City of Winchester, City of Salem, City of Staunton, City of Waynesboro, Culpeper County, City of Radford, Shenandoah County, Rockingham County
540 vs 826: which number should you get?
In short: 540 and 826 serve all or part of the same area, so a number with any of them can be local there.
| Code | In service since | Covers | Notes |
|---|---|---|---|
| 540 | July 15, 1995 | Northwestern Virginia | Split from 703 |
| 826 | June 14, 2022 | Northwestern Virginia | Overlay on 540 |
The code a number carries says nothing about its quality. If no 540 numbers are free when you search, 826 covers all or part of the same area.
540 time zone and dialing
In short: 540 is on Eastern Time, UTC−5 in winter and UTC−4 in summer.
| Calling from | What to dial |
|---|---|
| Inside the 540 area | 10-digit dialing (area code + number) for every local call, because more than one area code serves the same area |
| Elsewhere in the US or Canada | 1-540-XXX-XXXX |
| Outside North America | +1 540 XXX XXXX (exit code, then 1 540 and the number) |
Good times to call 540
| If you are on | Call between |
|---|---|
| Eastern Time | 9 a.m. and 5 p.m. |
| Central Time | 8 a.m. and 4 p.m. |
| Mountain Time | 7 a.m. and 3 p.m. |
| Pacific Time | 6 a.m. and 2 p.m. |
Both sides move their clocks for daylight saving time on the same dates in most of the US and Canada, so these windows usually hold all year; most of Arizona and Saskatchewan don't change their clocks.
Is a call from 540 a scam?
In short: Not by itself. 540 is a regular Virginia area code, and anyone with a number in it, or anyone spoofing one, can call from it.
- If an unexpected 540 caller asks for payment, gift cards or a verification code, don’t share them.
- Look up the organization’s number yourself, then call back on that number rather than the 540 number that called you.
- Report fraud at reportfraud.ftc.gov.
Running a business on a 540 line? See what CNAM is and why business calls get marked as spam.
History of area code 540
In short: 540 started in 1995 as a split from 703, gave up territory in 2001 and gained overlay codes in 2022.
July 15, 1995
Area code 540 entered service, split off from 703
2001
Split: area code 276 created for part of the region
2022
Overlay code 826 added
Facts about 540
- 540 began in 1995 as a split from area code 703.
- In 2001, part of the 540 area moved to the new area code 276.
Who uses a 540 number?
People and companies in Roanoke, Harrisonburg, Blacksburg, Fredericksburg and Winchester, within City of Roanoke, Montgomery County and City of Harrisonburg, carry 540 numbers. A team based outside Virginia can add a 540 number when it starts selling to or supporting customers in Northwestern Virginia. Because 826 overlay 540, a number with any of those codes is just as local to the area.
Get a 540 number with DialNext
In short: Pick a 540 number in DialNext, assign who answers it, and call or text from your browser, desktop or phone.
- Start a 7-day free trial and open Phone Numbers.
- Click Buy phone number and pick the United States under Select country.
- Set Type: Local, type 540 in the digits box, choose Match: First part and click Search Numbers.
- Click Buy next to the 540 number you want, give it a name under Name this number and confirm.
- Open the number’s settings and choose who it rings under Allowed members.
Available 540 numbers vary. If none are free, 826 covers the same area.
Calls and texts from any device
Answer and place calls and texts in the browser, the desktop app or the mobile app. No desk phone needed.
Call routing and IVR
Send callers to the right person or team, with business hours per number.
Call recording
Recordings on published plans, with a compliance announcement you can set per number.
CRM logging
Calls and texts are logged to HubSpot, Salesforce, Pipedrive, Zendesk and the other tools DialNext lists.
Shared inbox for texts
Your team replies from one thread per contact (US and Canadian numbers).
AI call summaries (paid add-on)
A written summary after each call, available as a paid add-on.
Area codes near 540
Frequently asked questions about area code 540
What state is area code 540 in?
Virginia. 540 covers Northwestern Virginia, including Roanoke, Harrisonburg and Blacksburg.
What time zone is area code 540?
Eastern Time. That is UTC−5, moving to UTC−4 during daylight saving time.
Is 540 a toll-free number?
No. 540 is a geographic area code for Northwestern Virginia, so calls to it are billed like any Virginia number. Toll-free numbers in the US and Canada use 800, 833, 844, 855, 866, 877 and 888.
Is 540 a cell phone or landline area code?
Both. Mobile and landline numbers in Northwestern Virginia are drawn from the same codes, so 540 alone doesn't tell you whether a number is a cell phone.
Do I need to dial the area code for local calls in 540?
Yes. Because 826 overlay 540, local calls need all ten digits: 540 plus the seven-digit number. Whether you also add 1 depends on your carrier.
What area codes overlay 540?
826. It serves all or part of the same area as 540, so numbers with that code sit side by side with 540 numbers.
When did area code 540 start?
July 15, 1995. It was split off from 703. The most recent change came in 2022, when overlay code 826 was added.
Can I get a 540 number for my business?
You can search for one. In DialNext, open Phone Numbers, choose Buy phone number, pick the United States and enter 540 with Match: First part. Available numbers change; 826 covers the same area if 540 has none.
Is a call from area code 540 a scam?
Not by itself. 540 is an ordinary Virginia area code, and anyone with a number in it, or anyone spoofing one, can call from it. Judge the call by what the caller asks for, not by the code.
What area codes are near 540?
434, 804, 686, 571 and 703. The Virginia codes among them border 540 directly; see each one's page for the places it covers.
Last updated 2026-11-27 · Sources: Wikipedia: List of North American Numbering Plan area codes; Wikipedia: Area codes 540 and 826; Google libphonenumber (geocoding and time-zone data); GeoNames gazetteer (places, counties, population); 47 CFR § 52.19: area code relief (ten-digit dialing in overlays).