540 area code
Area code 540 covers the Shenandoah Valley and western and northern-central Virginia, from Winchester and Fredericksburg down to Harrisonburg, Roanoke and Blacksburg. The whole region is on Eastern Time, and a 2022 overlay, 826, now draws numbers from the same map.
In 1995 the Blue Ridge, the valleys and the Piedmont west of Washington's suburbs left 703 and got 540 as their own code. A 540 line reads as local from the Rappahannock to the New River, and Talkroute rings it on whatever computer or cell phone you're using.
Updated December 2026 · 7-day free trial · Free number porting
At a glance
540 area code facts
- Location
- Shenandoah Valley, Roanoke and New River valleys, and the northern Piedmont from Winchester to Fredericksburg
- State
- Virginia
- Time zone
- Eastern Time (ET)
- Local time
- —
- In service since
- July 15, 1995, split from 703
- Shares its area with
- 826 (2022)
- Dialing
- 10 digits (area code + number) for local calls since May 14, 2022
Cities and towns in the 540 area code
- Roanoke
- Salem
- Blacksburg
- Christiansburg
- Radford
- Harrisonburg
- Staunton
- Waynesboro
- Lexington
- Winchester
- Front Royal
- Luray
- Culpeper
- Warrenton
- Fredericksburg
- Rocky Mount
540 also takes in Stafford, Spotsylvania and King George counties east of the Blue Ridge, while most of Loudoun County stays with 703 and 571.
History
How 540 became western Virginia's area code
- 1947
703 is created as Virginia’s original area code.
- 1973
804 splits off on June 24 with the eastern two-thirds of the state, leaving 703 for northern and western Virginia.
- 1995
540 takes over the west on July 15, when 703 is divided. The Washington, D.C. suburbs of Northern Virginia keep 703.
- 2001
The far southwest moves to 276 on September 1, giving 540 roughly its current shape.
- 2022
826 arrives as an overlay, and callers must use ten digits for local calls starting May 14. No 540 line had to change its number.
Get a 540 number in minutes.
Pick a new 540 number or bring the one you already have. Calls and texts ring on every device.
Every plan includes a local or toll-free number. 7-day free trial. No contracts.
FAQ
540 area code FAQ
Where is area code 540?
540 stretches across western and northern-central Virginia: Winchester and Front Royal in the north, Fredericksburg and Culpeper in the Piedmont, then down the Shenandoah Valley through Harrisonburg and Staunton to Roanoke, Blacksburg and Radford. Southwest Virginia uses 276, and Charlottesville and Lynchburg use 434.
Is 540 the same as 826?
They share one map. Since 2022, 826 has sat on top of the 540 region, so whether a Roanoke or Winchester line starts with 540 or 826, people anywhere in that territory make a local call to reach it.
Is Fredericksburg in the 540 area code?
Yes. Fredericksburg, along with Stafford, Spotsylvania and King George counties, sits in 540 and 826 even though it lies east of the mountains. Northern Virginia’s 703 begins just to the north, in Prince William County.
What time zone is the 540 area code in?
540 keeps Virginia’s statewide Eastern Time. A Roanoke or Winchester clock reads UTC−5 (EST) from November into March, then UTC−4 (EDT) for the summer half of the year.
When did the 540 area code start?
540 began on July 15, 1995, when the 703 region was divided and the western part of the state got a new code. In 2001 the southwestern corner left 540 for 276.
Do I have to dial 10 digits in the 540 area?
Yes. Ever since the 826 overlay brought mandatory ten-digit dialing on May 14, 2022, a call across town in Roanoke needs 540 or 826 in front of the seven digits.
Can I get a 540 phone number?
Yes. Type 540 into the number lookup while creating your Talkroute login; open 540 numbers turn over often. Your Roanoke or Winchester callers then reach you in the Talkroute desktop, browser and mobile apps.
Can I bring my current 540 number to Talkroute?
Yes, at no charge. Leave your existing carrier switched on until the transfer completes, and Shenandoah Valley callers reach you on the same number throughout.
Put a 540 number to work for your business.
Calling, texting, voicemail, and call routing on a local 540 number. Try Talkroute free for 7 days.
Questions? Give us a call at 800.747.2140.