Area code 540
Area code 540 covers Roanoke, Fredericksburg and 23 more places in Virginia.
Virginia, the United States
- Area code
- 540
- Region
- Virginia
- Country
- the United States
- Main cities
- Roanoke, Fredericksburg, Harrisonburg, Winchester, Culpeper, Staunton
- Time zones
- America/New_York
- In service since
- July 15, 1995
- Overlays
- 826
- Prefixes assigned
- 786
- Pooled prefixes
- 628 (80%)
- Carriers holding prefixes
- 52
- Newest prefix
- 540-826, September 28, 2023
About area code 540
Area code 540 serves Virginia in the United States. The exchanges in this code are mostly assigned to Roanoke, Fredericksburg, Winchester, Harrisonburg, Blacksburg. It has been in service since July 15, 1995.
Phone numbers in this area code follow the America/New York time zone.
It shares its territory with the overlay code 826: new numbers in the same area can get either code, so a ten-digit number is needed even for local calls.
A number in this area code is written (540) NXX-XXXX in the United States and Canada, and +1 540 NXX XXXX in international format, where NXX is a three-digit exchange that starts with 2 to 9.
An area code tells you where a number was first assigned, not where its owner is: mobile numbers keep their area code when people move, and numbers can be ported between carriers.
Roanoke holds 13% of the phone prefixes in area code 540.
A prefix is the three digits after the area code. NANPA assigns each one to a carrier for a rate center, and the place below is the one that rate center belongs to. Most numbers in a prefix were first handed out in that place, but mobile numbers stay with their owners when they move.
| Place | Prefixes | Share |
|---|---|---|
| Roanoke | 104 | 13.2% |
| Fredericksburg | 80 | 10.2% |
| Harrisonburg | 43 | 5.5% |
| Winchester | 38 | 4.8% |
| Culpeper | 33 | 4.2% |
| Staunton | 28 | 3.6% |
| Blacksburg | 21 | 2.7% |
| Christiansburg | 18 | 2.3% |
| Radford | 18 | 2.3% |
| Stafford | 18 | 2.3% |
| Warrenton | 18 | 2.3% |
| Waynesboro | 16 | 2% |
| Rocky Mount | 13 | 1.7% |
| Front Royal | 12 | 1.5% |
| Edinburg | 11 | 1.4% |
| King George | 11 | 1.4% |
| Lexington | 11 | 1.4% |
| Salem | 11 | 1.4% |
| Bedford | 10 | 1.3% |
| Luray | 9 | 1.1% |
| Covington | 8 | 1% |
| Louisa | 7 | 0.9% |
| Orange | 7 | 0.9% |
| Pearisburg | 7 | 0.9% |
| Pulaski | 7 | 0.9% |
Verizon Virginia, Inc. holds the most prefixes in area code 540: 155 of 786.
These counts are prefixes, not phone numbers or customers. A pooled prefix is split between carriers in blocks of 1,000 numbers, and any number can be ported to another carrier after it is assigned, so check the carrier of a given number with the lookup.
| Carrier | Group | Prefixes | Share |
|---|---|---|---|
| Verizon Virginia, Inc. | Verizon | 155 | 19.7% |
| Omnipoint Communications Cap Operations, LLC | T-Mobile | 82 | 10.4% |
| Cellco Partnership DBA Verizon Wireless | Verizon | 79 | 10.1% |
| New Cingular Wireless PCS, LLC | AT&T | 66 | 8.4% |
| Level 3 Communications, LLC | Lumen | 50 | 6.4% |
| Verizon South, Inc. - Va (Contel) | Verizon | 35 | 4.5% |
| Onvoy, LLC | Inteliquent | 31 | 3.9% |
| Brightspeed Of Virginia, LLC | 28 | 3.6% | |
| MetroPCS, Inc. | T-Mobile | 25 | 3.2% |
| Bandwidth.com CLEC, LLC | Bandwidth | 24 | 3.1% |
| Comcast IP Phone, LLC | Comcast | 21 | 2.7% |
| Coretel Virginia, LLC | 20 | 2.5% |
628 of the 786 prefixes (80%) are pooled: their numbers are handed to carriers in blocks of 1,000.
40 prefixes in area code 540 were assigned since 2021.
NANPA's public file dates 330 of the 786 prefixes in this area code. The others carry no assignment date in the file.
- 2001: 42
- 2002: 26
- 2003: 9
- 2004: 10
- 2005: 5
- 2006: 7
- 2007: 6
- 2008: 18
- 2009: 17
- 2010: 11
- 2011: 12
- 2012: 5
- 2013: 7
- 2014: 7
- 2015: 8
- 2016: 8
- 2017: 15
- 2018: 38
- 2019: 15
- 2020: 24
- 2021: 23
- 2022: 9
- 2023: 8
Each of the 786 prefixes in area code 540 has its own page.
Prefixes are grouped by place. Open one to see the carrier it was assigned to, its rate center, its assignment date and whether it is pooled.
Roanoke 104
- 540-201
- 540-204
- 540-206
- 540-224
- 540-240
- 540-265
- 540-266
- 540-278
- 540-283
- 540-293
- 540-301
- 540-309
- 540-312
- 540-314
- 540-330
- 540-339
- 540-342
- 540-343
- 540-344
- 540-345
- 540-353
- 540-354
- 540-355
- 540-362
- 540-366
- 540-397
- 540-400
- 540-427
- 540-467
- 540-491
- 540-492
- 540-494
- 540-510
- 540-512
- 540-519
- 540-520
- 540-521
- 540-523
- 540-524
- 540-525
- 540-526
- 540-527
- 540-529
- 540-537
- 540-541
- 540-556
- 540-561
- 540-562
- 540-563
- 540-566
- 540-580
- 540-581
- 540-588
- 540-589
- 540-595
- 540-597
- 540-598
- 540-613
- 540-627
- 540-632
- 540-647
- 540-650
- 540-655
- 540-666
- 540-676
- 540-682
- 540-685
- 540-725
- 540-728
- 540-759
- 540-761
- 540-767
- 540-769
- 540-772
- 540-774
- 540-776
- 540-777
- 540-790
- 540-793
- 540-794
- 540-795
- 540-797
- 540-798
- 540-815
- 540-819
- 540-853
- 540-855
- 540-857
- 540-892
- 540-900
- 540-904
- 540-915
- 540-926
- 540-945
- 540-970
- 540-977
- 540-979
- 540-981
- 540-982
- 540-983
- 540-985
- 540-986
- 540-988
- 540-989
Place not published 91
- 540-202
- 540-228
- 540-253
- 540-258
- 540-268
- 540-269
- 540-275
- 540-279
- 540-281
- 540-285
- 540-291
- 540-329
- 540-348
- 540-350
- 540-363
- 540-377
- 540-396
- 540-436
- 540-456
- 540-472
- 540-474
- 540-499
- 540-501
- 540-502
- 540-503
- 540-516
- 540-528
- 540-530
- 540-531
- 540-540
- 540-544
- 540-549
- 540-554
- 540-559
- 540-565
- 540-567
- 540-576
- 540-591
- 540-592
- 540-593
- 540-601
- 540-608
- 540-610
- 540-637
- 540-651
- 540-673
- 540-698
- 540-715
- 540-719
- 540-721
- 540-730
- 540-732
- 540-733
- 540-747
- 540-763
- 540-766
- 540-781
- 540-789
- 540-799
- 540-802
- 540-804
- 540-814
- 540-833
- 540-852
- 540-854
- 540-856
- 540-858
- 540-867
- 540-880
- 540-884
- 540-888
- 540-889
- 540-895
- 540-897
- 540-902
- 540-912
- 540-916
- 540-923
- 540-925
- 540-927
- 540-929
- 540-933
- 540-939
- 540-947
- 540-963
- 540-966
- 540-973
- 540-992
- 540-996
- 540-997
- 540-999
Fredericksburg 80
- 540-203
- 540-207
- 540-220
- 540-226
- 540-273
- 540-286
- 540-287
- 540-295
- 540-310
- 540-322
- 540-356
- 540-361
- 540-368
- 540-369
- 540-370
- 540-371
- 540-372
- 540-373
- 540-374
- 540-376
- 540-379
- 540-386
- 540-388
- 540-390
- 540-408
- 540-412
- 540-419
- 540-424
- 540-429
- 540-455
- 540-479
- 540-498
- 540-538
- 540-548
- 540-571
- 540-604
- 540-621
- 540-623
- 540-642
- 540-645
- 540-654
- 540-656
- 540-670
- 540-681
- 540-684
- 540-693
- 540-701
- 540-702
- 540-706
- 540-710
- 540-734
- 540-735
- 540-736
- 540-737
- 540-741
- 540-752
- 540-755
- 540-760
- 540-785
- 540-786
- 540-796
- 540-809
- 540-834
- 540-840
- 540-841
- 540-842
- 540-845
- 540-846
- 540-847
- 540-848
- 540-850
- 540-870
- 540-891
- 540-898
- 540-899
- 540-903
- 540-907
- 540-919
- 540-940
- 540-993
Harrisonburg 43
- 540-208
- 540-209
- 540-214
- 540-217
- 540-236
- 540-246
- 540-271
- 540-282
- 540-383
- 540-421
- 540-432
- 540-433
- 540-434
- 540-435
- 540-437
- 540-438
- 540-442
- 540-476
- 540-478
- 540-534
- 540-560
- 540-564
- 540-568
- 540-574
- 540-575
- 540-578
- 540-607
- 540-612
- 540-615
- 540-638
- 540-646
- 540-689
- 540-704
- 540-705
- 540-746
- 540-770
- 540-801
- 540-810
- 540-820
- 540-830
- 540-908
- 540-936
- 540-964
Winchester 38
Culpeper 33
Staunton 28
Blacksburg 21
Christiansburg 18
Radford 18
Stafford 18
Warrenton 18
Waynesboro 16
Rocky Mount 13
Dayton 1
Fishersville 1
Locust Grove 1
Mineral 1
Mount Jackson 1
New Market 1
Pembroke 1
Strasburg 1
Verona 1
Vinton 1
Frequently asked questions
Where is area code 540?
What time zone is area code 540 in?
Which phone carriers use area code 540?
Is a call from area code 540 a scam?
Prefix assignments from the NANPA central office code assignment file of November 23, 2026; places from Google's libphonenumber geocoding data.
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time