540 area code
Roanoke, Virginia · Eastern time · Overlaid with 826
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.
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 numberWhere 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).
| City or town | County | Population (2025) | 540 prefixes |
|---|---|---|---|
| Roanoke | Roanoke city | 99,111 | 105 |
| Harrisonburg | Harrisonburg city | 50,839 | 43 |
| Blacksburg | Montgomery | 45,104 | 21 |
| Fredericksburg | Fredericksburg city | 30,393 | 63 |
| Winchester | Winchester city | 28,272 | 38 |
| Staunton | Staunton city | 26,801 | 29 |
| Salem | Salem city | 25,816 | 11 |
| Waynesboro | Waynesboro city | 23,951 | 17 |
| Christiansburg | Montgomery | 22,442 | 18 |
| Culpeper | Culpeper | 22,074 | 33 |
| Radford | Radford city | 17,243 | 18 |
| Front Royal | Warren | 15,722 | 12 |
| Warrenton | Fauquier | 10,213 | 18 |
| Pulaski | Pulaski | 8,807 | 7 |
| Bedford | Bedford | 7,911 | 10 |
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.
- Caller ID can be faked. The FCC is the US phone regulator. It says scammers "deliberately falsify" caller ID.4 They often copy a local area code so you pick up. So a 540 number on your screen does not prove the call came from Roanoke.
- Numbers move with people. People keep their cell number when they move. Internet phone services also give 540 numbers to people anywhere. A real 540 caller may be in another state or country.
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?
- Let voicemail answer. A real caller will say who they are and what they want.
- 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.
- 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.
| If you are in | 540 office hours on your clock | Best time to call |
|---|
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.
- Roanoke: 105 prefixes
- Fredericksburg: 63 prefixes
- Harrisonburg: 43 prefixes
- Winchester: 38 prefixes
- Culpeper: 33 prefixes
- Staunton: 29 prefixes
- Blacksburg: 21 prefixes
- Christiansburg: 18 prefixes
Show all 117 places and their prefixes
| Place | Prefixes | Prefix numbers (540-NXX) |
|---|---|---|
| Roanoke | 105 | 201 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 |
| Fredericksburg | 63 | 207 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 |
| Harrisonburg | 43 | 208 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 |
| Winchester | 38 | 247 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 |
| Culpeper | 33 | 212 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 |
| Staunton | 29 | 213 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 |
| Blacksburg | 21 | 200 231 232 315 418 443 552 553 557 558 605 739 750 808 824 934 944 951–953 961 |
| Christiansburg | 18 | 251 257 260 299 357 381 382 385 391 392 394 449 585 617 757 762 876 998 |
| Radford | 18 | 230 239 250 267 320 505 577 629 633 639 641 731 744 806 818 831 835 838 |
| Stafford | 18 | 242 288 300 318 426 446 602 628 657–659 699 720 779 783 803 873 930 |
| Warrenton | 18 | 216 270 272 316 340 341 347 349 351 359 422 428 680 690 714 878 905 935 |
| Waynesboro | 17 | 221 241 256 415 447 451 470 471 649 836 910 932 941–943 946 949 |
| Rocky Mount | 13 | 238 243 263 352 393 420 482–484 488 489 493 590 |
| Front Royal | 12 | 252 305 551 622 631 635 636 660 692 749 823 914 |
| Chancellor | 11 | 203 388 412 548 702 734 736 755 785 786 972 |
| Edinburg | 11 | 325 331 333 335 481 624 630 758 971 975 984 |
| Lexington | 11 | 319 458 460–464 600 716 784 817 |
| Salem | 11 | 302 375 378 380 384 387 389 404 444 765 861 |
| Bedford | 10 | 276 425 583 586 587 707 816 871 874 875 |
| Luray | 9 | 244 452 669 677 742 743 843 860 978 |
| Covington | 8 | 620 691 958 960 962 965 968 969 |
| Dahlgren | 8 | 284 413 469 644 653 663 844 990 |
| Hartwood | 7 | 286 356 386 390 737 752 796 |
| Louisa | 7 | 223 500 603 748 807 893 967 |
| Mineral | 7 | 205 259 594 634 872 894 938 |
| Orange | 7 | 308 360 395 513 614 661 672 |
| Pearisburg | 7 | 235 599 696 787 906 921 922 |
| Pulaski | 7 | 274 440 509 573 980 994 995 |
| Dublin | 6 | 307 518 616 643 674 813 |
| Stone Mountain | 6 | 296 297 328 410 703 956 |
| Berryville | 5 | 277 401 821 917 955 |
| Buena Vista | 5 | 261 264 570 572 957 |
| Madison | 5 | 407 543 738 756 948 |
| Mount Gilead | 5 | 338 441 619 751 780 |
| Stephens City | 5 | 508 694 866 868 869 |
| Washington, DC suburbs | 5 | 227 671 675 683 826 |
| Burnt Chimney | 4 | 719 721 814 912 |
| Catoctin | 4 | 579 668 822 882 |
| Elkton | 4 | 298 405 606 713 |
| Gordonsville | 4 | 406 832 859 920 |
| Marshall | 4 | 364 506 724 753 |
| Middleburg | 4 | 326 454 687 883 |
| Remington | 4 | 304 402 439 991 |
| Spotsylvania | 4 | 507 582 768 805 |
| The Plains | 4 | 202 253 528 973 |
| Troutville | 4 | 591 963 966 992 |
| Bluemont | 3 | 281 554 781 |
| Bridgewater | 3 | 237 515 828 |
| Broadway | 3 | 215 896 901 |
| Calverton | 3 | 210 495 788 |
| Clifton Forge | 3 | 862 863 865 |
| Ferrum | 3 | 346 365 367 |
| Glasgow | 3 | 258 329 540 |
| King George | 3 | 625 709 775 |
| Narrows | 3 | 358 475 726 |
| Natural Bridge | 3 | 228 291 766 |
| Shawsville | 3 | 268 698 804 |
| Shenandoah | 3 | 218 652 918 |
| Shenandoah Park | 3 | 516 673 999 |
| Stanley | 3 | 225 778 782 |
| Unionville | 3 | 715 732 854 |
| Ballard | 2 | 285 593 |
| Bent Mountain | 2 | 927 929 |
| Blue Grass | 2 | 474 601 |
| Boones Mill | 2 | 334 909 |
| Boyce | 2 | 306 837 |
| Brokenburg | 2 | 472 895 |
| Brownsburg | 2 | 348 880 |
| Buchanan | 2 | 254 924 |
| Craigsville | 2 | 889 997 |
| Criglersville | 2 | 501 923 |
| Deerfield | 2 | 610 939 |
| Edom | 2 | 733 833 |
| Fincastle | 2 | 473 928 |
| Floyd | 2 | 695 745 |
| Gainesboro | 2 | 502 888 |
| Gore | 2 | 503 858 |
| Greenwood | 2 | 456 902 |
| Grottoes | 2 | 249 584 |
| Hot Springs | 2 | 679 839 |
| Keezletown | 2 | 269 730 |
| McClung | 2 | 531 996 |
| McDowell | 2 | 396 637 |
| McGaheysville | 2 | 289 417 |
| Mill Gap | 2 | 499 549 |
| Monterey | 2 | 468 648 |
| Montvale | 2 | 802 947 |
| Mount Solon | 2 | 275 350 |
| Mountain Grove | 2 | 279 608 |
| New Castle | 2 | 596 864 |
| Raphine | 2 | 377 799 |
| Sperryville | 2 | 517 987 |
| Union Hall | 2 | 565 576 |
| Upperville | 2 | 530 592 |
| Weyers Cave | 2 | 234 453 |
| Williamsville | 2 | 916 925 |
| Woodstock | 2 | 233 459 |
| Alum Ridge | 1 | 763 |
| Basye | 1 | 856 |
| Bergton | 1 | 852 |
| Crows Hematite | 1 | 559 |
| Dayton | 1 | 879 |
| Eagle Rock | 1 | 884 |
| Fort Valley | 1 | 933 |
| Hinton | 1 | 867 |
| Locust Grove | 1 | 651 |
| Mount Jackson | 1 | 477 |
| New Hope | 1 | 363 |
| New Market | 1 | 740 |
| Newport | 1 | 544 |
| Oriskany | 1 | 567 |
| Paint Bank | 1 | 897 |
| Pembroke | 1 | 626 |
| Potts Creek | 1 | 747 |
| Strasburg | 1 | 465 |
| Toms Brook | 1 | 436 |
| Willis | 1 | 789 |
How to dial a 540 number
- Inside 540: dial ten digits (area code plus number). This is the rule NANPA lists for 540.
- From the rest of the US or Canada: dial 1, then 540, then the seven-digit number.
- From a cell phone in another country: dial +1 540, then the seven-digit number.
- From a landline in another country: dial your exit code first. Then dial 1 540 and the number. The exit code is 00 in the UK, India, the UAE and most of Europe. It is 0011 in Australia and 010 in Japan.
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
- 15 July 1995: 540 starts. It was made from part of 703. 703 kept the rest.
- 1 September 2001: 276 is split off from 540. It takes part of the area.
- 14 June 2022: 826 is made from 540. Today both cover the same area.
- Forecast: NANPA runs the area code system. In October 2026 it said 540/826 should run out of new numbers in the fourth quarter of 2053. This guess is updated twice a year, so the date can move.
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.
- Call and text over Wi-Fi or mobile data, anywhere in the world. No SIM card and no contract.
- Every call is recorded and turned into text, with a short summary. Voicemail comes as text too.
- Set business hours for each line. Extra lines start at $4.49 a month.
- Use it on the web or on Android today. The iPhone app is coming soon.
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
- 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.
- NANPA, Central Office Code Utilized Report, 22 Nov 2026: secure.nanpa.com. Prefixes and rate centers.
- U.S. Census Bureau, Vintage 2025 city and town population estimates: census.gov. NANPA, NPA exhaust projections, October 2026: nanpa.com.
- 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.