Map of Virginia with the 29 counties and 11 independent cities served by area codes 540 and 826 highlighted, including Roanoke, Fredericksburg, and Winchester

Virginia · Roanoke, Shenandoah Valley, and Fredericksburg

540 Area Code

The original area code of western Virginia, serving Roanoke, Fredericksburg, Winchester, Harrisonburg, and 29 counties since 1995.

Last reviewed: by the Carolina Digital Phone team in Greensboro, North Carolina

Quick answer

Area code 540 is in western and north central Virginia. It serves Roanoke, Blacksburg, Harrisonburg, Staunton, Winchester, and Fredericksburg. It has been in service since 1995, when it was split from 703. Since 2022 it has shared its map with area code 826, so a new number in the region can begin with either one.

Area code
540
State
Virginia
Region
Roanoke, Shenandoah Valley, and Fredericksburg
Type
Original regional code, overlaid by 826
Time zone
Eastern Time (ET)
In service
1995
Counties
29, plus 11 independent cities
Local dialing
10 digits

Where is area code 540?

Area code 540 covers a wide arc of Virginia: Roanoke, Salem, and Blacksburg in the southwest, Lexington, Staunton, Harrisonburg, and Winchester up the Shenandoah Valley, and Front Royal, Warrenton, Culpeper, and Fredericksburg toward Washington.

It does not include the close-in suburbs of Northern Virginia, which use 703 and 571.

County map of the 540 and 826 area code region in Virginia, showing Roanoke, Montgomery, Spotsylvania, Stafford, Frederick, Fauquier, Augusta, Rockingham, Franklin, Bedford, Culpeper, Shenandoah, Warren, Botetourt, Pulaski, Orange, Louisa, Rockbridge, Page, King George, Giles, Clarke, Alleghany, Floyd, Madison, Rappahannock, Craig, Bath, and Highland counties
The 540 and 826 area code region. Tap a county or a city for its name. Counties shaded by Carolina Digital Phone. For exchange-level detail, see the official area code maps from NANPA.

Which cities use area code 540?

These are the larger cities and towns in the 540 area.

  • Roanoke
  • Fredericksburg
  • Winchester
  • Harrisonburg
  • Blacksburg
  • Christiansburg
  • Staunton
  • Waynesboro
  • Salem
  • Radford
  • Lexington
  • Front Royal
  • Warrenton
  • Culpeper
  • Stafford
  • Covington
  • Rocky Mount
  • Bedford
  • Pulaski
  • Luray
  • Woodstock
  • Orange
  • Louisa
  • Pearisburg

Which counties are in area code 540?

Area code 540 serves all or part of 29 Virginia counties:

  • Roanoke County
  • Montgomery County
  • Spotsylvania County
  • Stafford County
  • Frederick County
  • Fauquier County
  • Augusta County
  • Rockingham County
  • Franklin County
  • Bedford County
  • Culpeper County
  • Shenandoah County
  • Warren County
  • Botetourt County
  • Pulaski County
  • Orange County
  • Louisa County
  • Rockbridge County
  • Page County
  • King George County
  • Giles County
  • Clarke County
  • Alleghany County
  • Floyd County
  • Madison County
  • Rappahannock County
  • Craig County
  • Bath County
  • Highland County

It also serves 11 independent cities. In Virginia, an independent city is not part of any county:

  • City of Roanoke
  • City of Salem
  • City of Harrisonburg
  • City of Fredericksburg
  • City of Winchester
  • City of Staunton
  • City of Waynesboro
  • City of Radford
  • City of Lexington
  • City of Covington
  • City of Buena Vista

Area codes follow telephone exchange boundaries, not county lines. Western Loudoun County and part of Greene County also use 540 and 826, and parts of Bedford and Louisa counties use 434.

What is western and north central Virginia known for?

This is the Virginia of the Blue Ridge and the Shenandoah Valley. Roanoke, the largest city in western Virginia, grew up as a railroad town and is now a regional medical center. Blacksburg is home to Virginia Tech, and Harrisonburg to James Madison University. The Shenandoah Valley around Harrisonburg is one of the leading poultry regions in the country.

Shenandoah National Park and Skyline Drive follow the Blue Ridge for more than 100 miles, and Luray Caverns lies just below. At the eastern end, Fredericksburg, Stafford, and Culpeper are growing quickly as people who work in the Washington area move outward. Fredericksburg is ringed by four Civil War battlefields.

540 is one of 10 area codes in Virginia

Virginia reaches from the Appalachian coalfields to the Chesapeake Bay and the Atlantic. It is known for federal government and technology work in Northern Virginia, the Navy and shipbuilding in Hampton Roads, and nearly 420 years of American history. See the Virginia area code map and history.

Official state sites: Virginia Tourism Corporation, the official state travel site and Virginia Economic Development Partnership.

When did area code 540 start?

Area code 540 has been in service since 1995. Here is how it came about:

  1. 1947 The region is part of 703, the original area code for all of Virginia.
  2. 1995 Area code 540 is created for western Virginia, split from 703.
  3. September 1, 2001 Area code 276 is split off for the far southwest, and 540 reaches the size it is today.
  4. June 2020 The Virginia State Corporation Commission approves an overlay for 540. The new area code will be 826.
  5. May 14, 2022 Ten-digit dialing becomes mandatory for all local calls in the region.
  6. June 14, 2022 New lines can be assigned numbers in the 826 area code.

Source: Verizon notice on the Virginia 540 and 826 overlay.

How do you dial in the 540 area?

You dial ten digits for every local call. The rules are short:

  • Dial all ten digits for every local call: the area code plus the seven-digit number.
  • A call between a 540 number and an 826 number in the same town is still a local call.
  • There is no extra charge for dialing the three extra digits.
  • Dial 911 the same way as always, with three digits.

Got a call from a 540 number you do not recognize?

The area code alone does not make a call a scam. 540 is a real Virginia area code, and most calls from it are from local people and businesses.

Scammers can fake any caller ID, though, including a local one. If a caller pressures you for money, gift cards, or personal information, hang up. Then call the company or agency back at a number you know is real. The Federal Communications Commission explains how caller ID spoofing works, and you can report unwanted calls to the Federal Trade Commission at ReportFraud.ftc.gov.

Why does a 540 number matter for a business?

A 540 number is the one customers from Roanoke to Fredericksburg have known for 30 years. It is on the trucks and the storefronts up and down the Shenandoah Valley, and people here answer it.

That history is also why good 540 numbers are harder to come by. If the exact number you want is taken, an 826 number covers the same map and is just as local. Many businesses keep their 540 main line and add 826 numbers for new staff and departments.

If you already have 540 numbers with another carrier, you can bring them with you. We move them over, and your old service stays on until the move is finished. Carolina Digital Phone is based in downtown Greensboro, North Carolina, and has served businesses, schools, and government offices in Virginia for years. Every phone we install connects to three data centers, so your 540 number keeps working when one building or one internet line does not.

How do you get a 540 phone number?

You get one in four steps, and we do most of the work.

  1. Tell us what you need Call (336) 544-4000 or request a quote. Tell us how many numbers you want and which city they should be local to.
  2. Choose your numbers We check what is available in 540 and 826 for your city and send you the choices. If you have numbers already, we move them over so you keep them.
  3. Pick how you will answer Use desk phones, the Digital Voice Plus app on your cell phone and computer, or both. Decide who answers and what callers hear after hours.
  4. Go live We set up your call flow, test it with you, and train your team. Your 540 number can be ringing in days.

What comes with a 540 number from Carolina Digital Phone?

A phone number by itself does not do much. Ours comes with a complete business phone system, supported from downtown Greensboro.

Plain pricing

$18 to $32 per user per month, with taxes and regulatory fees included. Month to month, with discounts for longer terms. See how our pricing works.

Answer anywhere

Ring a desk phone, your cell phone, and your computer at once. Callers see your business number, never your personal one. How the app works.

Business texting

Text customers from your 540 number, so replies come back to the business and not to one employee's phone. Texting from a work number.

AI receptionist

Have calls answered after hours or when every line is busy, with urgent calls transferred to a person. What an AI receptionist does.

Local support

Dial 611 from any Carolina Digital Phone device and reach our engineers in Greensboro. Why organizations choose us.

Three data centers

Greensboro, Research Triangle Park, and Dallas, with a geo-redundant connection to every phone. How we keep calls moving.

Frequently asked questions about area code 540

Where is area code 540?

Area code 540 is in western and north central Virginia. It serves Roanoke, Salem, Blacksburg, Harrisonburg, Staunton, Winchester, Front Royal, Culpeper, Fredericksburg, and the surrounding counties.

Is 540 the same area as 826?

Yes. Area code 826 was added in 2022 as an overlay on 540, so both codes cover exactly the same cities and counties. Existing 540 numbers did not change.

When did area code 540 start?

Area code 540 began service in 1995, when western Virginia was split from area code 703. Southwest Virginia was later split from 540 as area code 276 in 2001.

What time zone is area code 540 in?

Area code 540 is in the Eastern time zone. It observes daylight saving time along with the rest of Virginia.

Is a call from a 540 number a scam?

Not because of the area code. 540 is a real Virginia area code used by local businesses, residents, hospitals, and schools. Scammers can fake any caller ID, including local ones, so if a call asks for money or personal information, hang up and call the organization back at a number you know is real.

Can my business get a 540 phone number?

Yes. Carolina Digital Phone provides 540 and 826 numbers for businesses, schools, and government offices across the Roanoke Valley, the Shenandoah Valley, and the Fredericksburg area. You can add new numbers or move the ones you already have.

Can I still get a 540 number?

Often, yes. 540 numbers are still assigned as they become available, though the choice is narrower than it once was. If the number you want is not available in 540, the same number may be open in 826, which covers the same area.

How much does a 540 business phone number cost?

With Carolina Digital Phone, business phone service runs from $18 to $32 per user per month, with taxes and regulatory fees included. Service is month to month, with discounts for one, three, and five year terms.

Other Virginia area codes we serve

See the Virginia area code map, or search all area codes by state.

276

Southwest Virginia: Bristol, Martinsville, Abingdon

434

Central and Southside Virginia: Lynchburg, Charlottesville, Danville

826

Roanoke, Shenandoah Valley, and Fredericksburg: Roanoke, Fredericksburg, Winchester

703

Northern Virginia: Arlington, Alexandria, Fairfax

571

Northern Virginia: Arlington, Alexandria, Fairfax

757

Hampton Roads and the Eastern Shore: Virginia Beach, Norfolk, Chesapeake

948

Hampton Roads and the Eastern Shore: Virginia Beach, Norfolk, Chesapeake

804

Richmond region: Richmond, Petersburg, Hopewell

686

Richmond region: Richmond, Petersburg, Hopewell

Get your 540 number from Carolina Digital Phone

Local Business VoIP is the small-business site of Carolina Digital Phone, Inc. We have provided hosted voice, business text messaging, and AI integration from downtown Greensboro since 2000. Tell us how many numbers you need, and a real person will help you pick them.

To talk with someone right now, call (336) 544-4000.

Discovery meetings are 15 to 30 minutes on Google Meet with an onboarding specialist, with no obligation. Schools and government agencies can reach our Gov/Edu team at (336) 543-0000.