Ferry Get a number

540 area code

Updated

Roanoke, Virginia · Eastern time · Overlaid with 826

Short answer

Area code 540 is in Virginia. It serves Roanoke, Harrisonburg and Fredericksburg and nearby towns. The time zone is Eastern. It started in 1995. It shares its area with area code 826. Sharing like this is called an overlay. The code shows where a number was first given out. It does not show where the caller is now.

VirginiaLocation
RoanokeMain place
EasternTime zone
15 July 1995Started
826Shares its area with
786Prefixes in use

Local time in the 540 area code

540 is on Eastern time. Turn on JavaScript to see the live clock.

Want a 540 number of your own? Ferry gives you a real Roanoke number. You can call and text from it in any country, over Wi-Fi or mobile data.

Get a 540 number

Where is area code 540?

540 is one of 10 area codes in Virginia. NANPA runs the area code system. It lists 786 prefixes in use in 540. A prefix is the three digits after the area code. The biggest cities with 540 numbers are Roanoke (99,111 people), Harrisonburg (50,839 people) and Fredericksburg (30,393 people).

Largest places with 540 prefixes. Population: U.S. Census Bureau, Vintage 2025 estimates. Prefixes: NANPA, 22 Nov 2026. A place can also be served by other area codes.
City or townCountyPopulation (2025)540 prefixes
RoanokeRoanoke city99,111105
HarrisonburgHarrisonburg city50,83943
BlacksburgMontgomery45,10421
FredericksburgFredericksburg city30,39363
WinchesterWinchester city28,27238
StauntonStaunton city26,80129
SalemSalem city25,81611
WaynesboroWaynesboro city23,95117
ChristiansburgMontgomery22,44218
CulpeperCulpeper22,07433
RadfordRadford city17,24318
Front RoyalWarren15,72212
WarrentonFauquier10,21318
PulaskiPulaski8,8077
BedfordBedford7,91110

Counties with 540 numbers: Roanoke city, Fredericksburg city, Harrisonburg city, Montgomery County, Winchester city, Fauquier County, Culpeper County, Staunton city, Franklin County and Radford city. We built this list by matching town names to Census records. Use it as a guide, not an exact map.

See every code on the Virginia area codes page or in the full area code list.

Is a call from 540 a scam?

540 is a very busy area code. Lots of real people use it. Lots of robocallers show it too. The area code cannot tell you which is which. Here is why.

We do not give 540 a "spam score". No website can score an area code fairly. Judge each call on its own.

Got a missed call from 540?

  1. Let voicemail answer. A real caller will say who they are and what they want.
  2. Call back on a number you looked up yourself. Did the message say it was your bank or a delivery firm? Use the number on your card, your bill or the official website. Do not use the number in the message.
  3. Never pay or share a code when rushed. Scammers ask for gift cards, crypto, wire transfers or a one-time passcode. Real companies do not.

To report a bad call, use ReportFraud.ftc.gov. You can also add your number to the National Do Not Call Registry.

540 numbers you can get right now

These are real 540 numbers that nobody is using. Pick one and it is yours for as long as you pay for a plan.

540 numbers load here. If you do not see them, look for 540 numbers in the Ferry app.

None free right now? Try a nearby code: 826, 571, 703, 434 or 681. Plans start at $9.99 a month if you pay for a year. Paying month by month costs $17.99. You get a 3-day free trial with 30 call minutes. You can sign up from any country.

540 overlays and nearby area codes

An overlay is a second area code added to the same place. 540 is in an overlay with 826. So two neighbors can have different area codes. Even two phones in one house can. That is why local calls here need ten digits (area code plus number).

Area codes near 540

Time zone and the best time to call 540

All of 540 is on Eastern time. The clock at the top of this page changes by itself when the clocks go forward or back.

A good rule for calling Roanoke from abroad: call between 9 AM and 6 PM Eastern time on a weekday. Turn on JavaScript to see those hours in seven world cities.

540 prefixes: which town is 540-NXX?

The prefix is the three digits after the area code. In (540) 201-0100, the prefix is 201. Each prefix belongs to one town or city. Phone companies call that place a rate center. 540 has 786 prefixes in use in 117 places. Roanoke has the most, with 105.

These phone companies hold the most 540 prefixes: Verizon wireline with 203, T-Mobile with 107 and Verizon Wireless with 79. This shows who first got each prefix. It does not show who runs a number today. People keep their number when they switch phone company.

Show all 117 places and their prefixes
540 prefixes in use, by place. A dash means every prefix in that run, such as 200–205. Source: NANPA's central office code report, data dated 22 Nov 2026.
PlacePrefixesPrefix numbers (540-NXX)
Roanoke105201 204 206 224 240 265 266 278 283 293 301 309 312 314 330 339 342–345 353–355 362 366 397 400 427 467 491 492 494 510 512 519–521 523–527 529 537 541 556 561–563 566 580 581 588 589 595 597 598 613 627 632 647 650 655 666 676 682 685 725 728 759 761 767 769 772 774 776 777 790 793–795 797 798 815 819 853 855 857 890 892 900 904 915 926 945 970 977 979 981–983 985 986 988 989
Fredericksburg63207 220 226 273 287 295 310 322 361 368–374 376 379 408 419 424 429 455 479 498 538 571 604 621 623 642 645 654 656 670 681 684 693 701 706 710 735 741 760 809 834 840–842 845–848 850 870 891 898 899 903 907 919 940 993
Harrisonburg43208 209 214 217 236 246 271 282 383 421 432–435 437 438 442 476 478 534 560 564 568 574 575 578 607 612 615 638 646 689 704 705 746 770 801 810 820 830 908 936 964
Winchester38247 303 313 323 327 336 398 409 431 450 486 504 514 532 533 535 536 539 542 545 546 550 662 664 665 667 678 686 697 722 723 754 771 773 877 913 931 974
Culpeper33212 219 222 229 262 317 321 399 403 423 445 485 496 497 522 547 618 640 708 717 718 727 729 764 791 792 800 812 825 827 829 881 937
Staunton29213 245 248 255 280 290 292 294 324 332 337 414 416 430 448 457 466 480 487 490 569 609 688 712 849 851 885–887
Blacksburg21200 231 232 315 418 443 552 553 557 558 605 739 750 808 824 934 944 951–953 961
Christiansburg18251 257 260 299 357 381 382 385 391 392 394 449 585 617 757 762 876 998
Radford18230 239 250 267 320 505 577 629 633 639 641 731 744 806 818 831 835 838
Stafford18242 288 300 318 426 446 602 628 657–659 699 720 779 783 803 873 930
Warrenton18216 270 272 316 340 341 347 349 351 359 422 428 680 690 714 878 905 935
Waynesboro17221 241 256 415 447 451 470 471 649 836 910 932 941–943 946 949
Rocky Mount13238 243 263 352 393 420 482–484 488 489 493 590
Front Royal12252 305 551 622 631 635 636 660 692 749 823 914
Chancellor11203 388 412 548 702 734 736 755 785 786 972
Edinburg11325 331 333 335 481 624 630 758 971 975 984
Lexington11319 458 460–464 600 716 784 817
Salem11302 375 378 380 384 387 389 404 444 765 861
Bedford10276 425 583 586 587 707 816 871 874 875
Luray9244 452 669 677 742 743 843 860 978
Covington8620 691 958 960 962 965 968 969
Dahlgren8284 413 469 644 653 663 844 990
Hartwood7286 356 386 390 737 752 796
Louisa7223 500 603 748 807 893 967
Mineral7205 259 594 634 872 894 938
Orange7308 360 395 513 614 661 672
Pearisburg7235 599 696 787 906 921 922
Pulaski7274 440 509 573 980 994 995
Dublin6307 518 616 643 674 813
Stone Mountain6296 297 328 410 703 956
Berryville5277 401 821 917 955
Buena Vista5261 264 570 572 957
Madison5407 543 738 756 948
Mount Gilead5338 441 619 751 780
Stephens City5508 694 866 868 869
Washington, DC suburbs5227 671 675 683 826
Burnt Chimney4719 721 814 912
Catoctin4579 668 822 882
Elkton4298 405 606 713
Gordonsville4406 832 859 920
Marshall4364 506 724 753
Middleburg4326 454 687 883
Remington4304 402 439 991
Spotsylvania4507 582 768 805
The Plains4202 253 528 973
Troutville4591 963 966 992
Bluemont3281 554 781
Bridgewater3237 515 828
Broadway3215 896 901
Calverton3210 495 788
Clifton Forge3862 863 865
Ferrum3346 365 367
Glasgow3258 329 540
King George3625 709 775
Narrows3358 475 726
Natural Bridge3228 291 766
Shawsville3268 698 804
Shenandoah3218 652 918
Shenandoah Park3516 673 999
Stanley3225 778 782
Unionville3715 732 854
Ballard2285 593
Bent Mountain2927 929
Blue Grass2474 601
Boones Mill2334 909
Boyce2306 837
Brokenburg2472 895
Brownsburg2348 880
Buchanan2254 924
Craigsville2889 997
Criglersville2501 923
Deerfield2610 939
Edom2733 833
Fincastle2473 928
Floyd2695 745
Gainesboro2502 888
Gore2503 858
Greenwood2456 902
Grottoes2249 584
Hot Springs2679 839
Keezletown2269 730
McClung2531 996
McDowell2396 637
McGaheysville2289 417
Mill Gap2499 549
Monterey2468 648
Montvale2802 947
Mount Solon2275 350
Mountain Grove2279 608
New Castle2596 864
Raphine2377 799
Sperryville2517 987
Union Hall2565 576
Upperville2530 592
Weyers Cave2234 453
Williamsville2916 925
Woodstock2233 459
Alum Ridge1763
Basye1856
Bergton1852
Crows Hematite1559
Dayton1879
Eagle Rock1884
Fort Valley1933
Hinton1867
Locust Grove1651
Mount Jackson1477
New Hope1363
New Market1740
Newport1544
Oriskany1567
Paint Bank1897
Pembroke1626
Potts Creek1747
Strasburg1465
Toms Brook1436
Willis1789

How to dial a 540 number

A full 540 number looks like this: +1 540 555 0100. That one is made up. An area code is not a country code. 540 only works after the +1. To see every way to write a number, read the US phone number format guide.

History of area code 540

NANPA wrote about these changes in planning letters PL-545, PL-319, PL-285, PL-275 and PL-207. You can read them in its planning letter list.

Get a 540 phone number

You do not need to live in Roanoke to have a 540 number. Ferry numbers work over the internet. You can sign up in any country with the cell phone you have now. Then pick a 540 number from the list above.

What Ferry cannot do: a Ferry number is an internet number (also called VoIP). Some services may not send sign-up codes to it. Ferry calls US, Canadian and UK numbers. It texts US and Canadian numbers. It cannot call 911 or other emergency services.

Sources

  1. NANPA, NPA (area code) database report, file dated 22 Nov 2026: reports.nanpa.com/public/npa_report.csv. In-service dates, overlay groups, time zones, dialing plans.
  2. NANPA, Central Office Code Utilized Report, 22 Nov 2026: secure.nanpa.com. Prefixes and rate centers.
  3. U.S. Census Bureau, Vintage 2025 city and town population estimates: census.gov. NANPA, NPA exhaust projections, October 2026: nanpa.com.
  4. FCC, "Caller ID Spoofing": fcc.gov/consumers/guides/spoofing.

We checked this data on 23 Nov 2026. Found a mistake? Email support@ferryphone.com and we will fix it.

Questions

Where is area code 540?

Area code 540 is in Virginia. Its biggest places are Roanoke, Harrisonburg, Fredericksburg and Winchester.

What time zone is area code 540?

540 is on Eastern time.

What area codes overlay 540?

An overlay is a second area code added to the same place. 540 shares its area with 826. They all cover the same places.

When did area code 540 start?

It started on 15 July 1995. It was made from 703.

Is 540 a toll-free number?

No. 540 is a normal area code for Virginia. A call to it costs the same as any other US call. Toll-free numbers start with 800, 833, 844, 855, 866, 877 or 888. See toll-free numbers explained.

Is a call from 540 a scam?

The area code cannot tell you. Most 540 calls are normal. But caller ID can be faked. Let unknown callers leave a message. Then call back on a number you looked up yourself.

Can I get a 540 number if I don't live in Roanoke?

Yes. Ferry offers 540 numbers when it has them. You can sign up from any country with the cell phone you have now. The number works over Wi-Fi or mobile data.

Get a 540 number for Roanoke

A real 540 number. Call and text from it in any country, over Wi-Fi or mobile data.

3 days free with 30 call minutes. Cancel anytime.

Pick a 540 number