Virginia county FIPS codes
Every Virginia county FIPS code with name, type, area, centre point and ZIP count, as CSV, Excel or JSON. Updated 19 November 2026.
Virginia counties and FIPS codes
Virginia has state FIPS code 51, and this list has 133 counties and county equivalents: 95 counties and 38 independent cities. Each full FIPS code joins the state code and a three-digit county code, so Accomack County is 51001: 51 for Virginia and 001 for the county.
By area the largest is Pittsylvania at about 2,574 km² (994 sq mi) and the smallest is Manassas Park at about 3 km² (1 sq mi); the counties add up to about 103,680 km². Fairfax has the most ZIP codes assigned to it (74).
Virginia's independent cities are not part of any county. The Census Bureau treats each one as a county equivalent with its own FIPS code, which is why the list mixes counties and cities.
All 133 counties
| FIPS | Name | Type | Area km² | Latitude | Longitude | ZIP codes |
|---|---|---|---|---|---|---|
| 51001 | Accomack County | County | 1,098 | 37.892677 | -75.565498 | 40 |
| 51003 | Albemarle County | County | 1,900 | 38.102743 | -78.638705 | 17 |
| 51005 | Alleghany County | County | 1,132 | 37.738019 | -80.119516 | 4 |
| 51007 | Amelia County | County | 929 | 37.352527 | -77.995746 | 3 |
| 51009 | Amherst County | County | 1,184 | 37.643193 | -79.189074 | 5 |
| 51011 | Appomattox County | County | 860 | 37.371589 | -78.814012 | 4 |
| 51013 | Arlington County | County | 68 | 38.876507 | -77.099033 | 28 |
| 51015 | Augusta County | County | 2,528 | 38.185543 | -79.264732 | 20 |
| 51017 | Bath County | County | 1,383 | 38.058326 | -79.740636 | 5 |
| 51019 | Bedford County | County | 1,968 | 37.184566 | -79.516073 | 13 |
| 51021 | Bland County | County | 937 | 37.155092 | -81.100517 | 4 |
| 51023 | Botetourt County | County | 1,414 | 37.575135 | -79.812531 | 11 |
| 51025 | Brunswick County | County | 1,489 | 36.768592 | -77.845384 | 12 |
| 51027 | Buchanan County | County | 1,340 | 37.272368 | -82.063361 | 15 |
| 51029 | Buckingham County | County | 1,525 | 37.565511 | -78.522762 | 4 |
| 51031 | Campbell County | County | 1,265 | 37.232258 | -79.073377 | 10 |
| 51033 | Caroline County | County | 1,441 | 38.035726 | -77.346139 | 10 |
| 51035 | Carroll County | County | 1,234 | 36.721982 | -80.733116 | 7 |
| 51036 | Charles City County | County | 439 | 37.364918 | -77.044947 | 2 |
| 51037 | Charlotte County | County | 1,196 | 37.014093 | -78.604382 | 10 |
| 51041 | Chesterfield County | County | 1,148 | 37.412079 | -77.630101 | 13 |
| 51043 | Clarke County | County | 471 | 39.117251 | -77.993147 | 4 |
| 51045 | Craig County | County | 823 | 37.486995 | -80.180819 | 2 |
| 51047 | Culpeper County | County | 922 | 38.520042 | -77.963179 | 12 |
| 51049 | Cumberland County | County | 764 | 37.516469 | -78.231449 | 2 |
| 51051 | Dickenson County | County | 860 | 37.119983 | -82.352751 | 8 |
| 51053 | Dinwiddie County | County | 1,315 | 37.072236 | -77.627697 | 9 |
| 51057 | Essex County | County | 678 | 37.909208 | -76.949216 | 9 |
| 51059 | Fairfax County | County | 1,036 | 38.765686 | -77.221351 | 74 |
| 51061 | Fauquier County | County | 1,620 | 38.836826 | -77.856034 | 24 |
| 51063 | Floyd County | County | 984 | 36.932076 | -80.339948 | 5 |
| 51065 | Fluvanna County | County | 738 | 37.837578 | -78.27513 | 5 |
| 51067 | Franklin County | County | 1,891 | 36.993306 | -79.850232 | 10 |
| 51069 | Frederick County | County | 1,089 | 39.222619 | -78.29897 | 10 |
| 51071 | Giles County | County | 958 | 37.30425 | -80.70422 | 9 |
| 51073 | Gloucester County | County | 579 | 37.451014 | -76.551679 | 15 |
| 51075 | Goochland County | County | 747 | 37.752557 | -78.001257 | 11 |
| 51077 | Grayson County | County | 1,138 | 36.664477 | -81.220091 | 6 |
| 51079 | Greene County | County | 430 | 38.300749 | -78.472623 | 4 |
| 51081 | Greensville County | County | 785 | 36.623232 | -77.616336 | 2 |
| 51083 | Halifax County | County | 2,216 | 36.772558 | -78.926338 | 10 |
| 51085 | Hanover County | County | 1,275 | 37.837635 | -77.625236 | 10 |
| 51087 | Henrico County | County | 611 | 37.468543 | -77.31012 | 18 |
| 51089 | Henry County | County | 1,004 | 36.723955 | -79.971773 | 7 |
| 51091 | Highland County | County | 1,110 | 38.352815 | -79.569403 | 6 |
| 51093 | Isle of Wight County | County | 838 | 36.934148 | -76.703844 | 9 |
| 51095 | James City County | County | 367 | 37.343639 | -76.808851 | 5 |
| 51097 | King and Queen County | County | 813 | 37.716947 | -76.837342 | 10 |
| 51099 | King George County | County | 444 | 38.272107 | -77.142027 | 7 |
| 51101 | King William County | County | 620 | 37.778255 | -77.192854 | 4 |
| 51103 | Lancaster County | County | 320 | 37.766545 | -76.471166 | 10 |
| 51105 | Lee County | County | 1,120 | 36.708495 | -83.0439 | 9 |
| 51107 | Loudoun County | County | 1,413 | 39.105767 | -77.665006 | 35 |
| 51109 | Louisa County | County | 1,323 | 37.975181 | -77.906624 | 4 |
| 51111 | Lunenburg County | County | 1,093 | 36.963934 | -78.264171 | 5 |
| 51113 | Madison County | County | 770 | 38.419494 | -78.299097 | 16 |
| 51115 | Mathews County | County | 242 | 37.442311 | -76.338643 | 16 |
| 51117 | Mecklenburg County | County | 1,759 | 36.701403 | -78.398297 | 10 |
| 51119 | Middlesex County | County | 392 | 37.662243 | -76.637223 | 12 |
| 51121 | Montgomery County | County | 1,020 | 37.183406 | -80.381657 | 11 |
| 51125 | Nelson County | County | 1,222 | 37.795114 | -78.868824 | 14 |
| 51127 | New Kent County | County | 663 | 37.513721 | -76.993758 | 5 |
| 51131 | Northampton County | County | 516 | 37.420835 | -75.903944 | 16 |
| 51133 | Northumberland County | County | 564 | 37.895039 | -76.404375 | 8 |
| 51135 | Nottoway County | County | 819 | 37.134253 | -78.051149 | 4 |
| 51137 | Orange County | County | 1,024 | 38.250619 | -77.987379 | 9 |
| 51139 | Page County | County | 815 | 38.617212 | -78.497964 | 4 |
| 51141 | Patrick County | County | 1,251 | 36.689437 | -80.259349 | 8 |
| 51143 | Pittsylvania County | County | 2,574 | 36.824778 | -79.395828 | 13 |
| 51145 | Powhatan County | County | 689 | 37.561877 | -77.891701 | 1 |
| 51147 | Prince Edward County | County | 921 | 37.203685 | -78.422168 | 7 |
| 51149 | Prince George County | County | 695 | 37.191433 | -77.225115 | 3 |
| 51153 | Prince William County | County | 889 | 38.656701 | -77.417648 | 19 |
| 51155 | Pulaski County | County | 864 | 37.065477 | -80.713124 | 8 |
| 51157 | Rappahannock County | County | 711 | 38.669294 | -78.17584 | 9 |
| 51159 | Richmond County | County | 469 | 37.908916 | -76.671898 | 5 |
| 51161 | Roanoke County | County | 654 | 37.212162 | -80.124835 | 6 |
| 51163 | Rockbridge County | County | 1,558 | 37.915446 | -79.442843 | 9 |
| 51165 | Rockingham County | County | 2,238 | 38.622309 | -78.944232 | 20 |
| 51167 | Russell County | County | 1,262 | 36.946758 | -82.096254 | 7 |
| 51169 | Scott County | County | 1,352 | 36.740155 | -82.560342 | 7 |
| 51171 | Shenandoah County | County | 1,315 | 38.864682 | -78.550997 | 13 |
| 51173 | Smyth County | County | 1,172 | 36.85046 | -81.532687 | 6 |
| 51175 | Southampton County | County | 1,531 | 36.706591 | -77.108212 | 8 |
| 51177 | Spotsylvania County | County | 1,097 | 38.179497 | -77.661503 | 7 |
| 51179 | Stafford County | County | 671 | 38.449364 | -77.473179 | 10 |
| 51181 | Surry County | County | 739 | 37.104685 | -76.881062 | 5 |
| 51183 | Sussex County | County | 1,281 | 36.92508 | -77.261905 | 7 |
| 51185 | Tazewell County | County | 1,376 | 37.098784 | -81.563878 | 18 |
| 51187 | Warren County | County | 561 | 38.92133 | -78.210247 | 4 |
| 51191 | Washington County | County | 1,457 | 36.732508 | -81.965996 | 8 |
| 51193 | Westmoreland County | County | 608 | 38.070811 | -76.676151 | 10 |
| 51195 | Wise County | County | 1,011 | 37.053521 | -82.604071 | 8 |
| 51197 | Wythe County | County | 1,205 | 36.911876 | -81.078712 | 9 |
| 51199 | York County | County | 318 | 37.168319 | -76.463474 | 7 |
| 51510 | Alexandria City | City | 41 | 38.82168 | -77.086715 | 13 |
| 51520 | Bristol City | City | 31 | 36.615874 | -82.158412 | 5 |
| 51530 | Buena Vista City | City | 15 | 37.733832 | -79.356141 | 1 |
| 51540 | Charlottesville City | City | 26 | 38.038029 | -78.488131 | 8 |
| 51550 | Chesapeake City | City | 898 | 36.674595 | -76.303354 | 9 |
| 51570 | Colonial Heights City | City | 18 | 37.264874 | -77.397759 | 1 |
| 51580 | Covington City | City | 13 | 37.773056 | -79.986282 | 1 |
| 51590 | Danville City | City | 116 | 36.581537 | -79.392352 | 3 |
| 51595 | Emporia City | City | 19 | 36.69326 | -77.535149 | 1 |
| 51600 | Fairfax | City | 16 | 38.854056 | -77.299773 | 3 |
| 51610 | Falls Church City | City | 5 | 38.886272 | -77.17637 | 2 |
| 51620 | Franklin City | City | 23 | 36.684247 | -76.942318 | 1 |
| 51630 | Fredericksburg City | City | 42 | 38.302992 | -77.486428 | 3 |
| 51640 | Galax City | City | 17 | 36.664048 | -80.919093 | 1 |
| 51650 | Hampton City | City | 162 | 37.057972 | -76.368397 | 12 |
| 51660 | Harrisonburg City | City | 45 | 38.440933 | -78.864432 | 3 |
| 51670 | Hopewell City | City | 27 | 37.290495 | -77.296113 | 1 |
| 51678 | Lexington City | City | 6 | 37.78286 | -79.445612 | 1 |
| 51680 | Lynchburg City | City | 162 | 37.415576 | -79.18258 | 8 |
| 51683 | Manassas City | City | 27 | 38.753519 | -77.477705 | 3 |
| 51685 | Manassas Park City | City | 3 | 38.759743 | -77.428803 | 3 |
| 51690 | Martinsville City | City | 28 | 36.687792 | -79.864702 | 4 |
| 51700 | Newport News City | City | 171 | 37.137829 | -76.554954 | 11 |
| 51710 | Norfolk City | City | 150 | 36.895829 | -76.251244 | 21 |
| 51720 | Norton City | City | 18 | 36.924921 | -82.635841 | 1 |
| 51730 | Petersburg City | City | 60 | 37.206904 | -77.391893 | 4 |
| 51735 | Poquoson City | City | 50 | 37.138905 | -76.342419 | 1 |
| 51740 | Portsmouth City | City | 87 | 36.822489 | -76.331835 | 8 |
| 51750 | Radford City | City | 22 | 37.118965 | -80.565796 | 3 |
| 51760 | Richmond City | City | 164 | 37.52 | -77.472078 | 30 |
| 51770 | Roanoke City | City | 109 | 37.27551 | -79.959246 | 36 |
| 51775 | Salem City | City | 36 | 37.283038 | -80.053881 | 3 |
| 51790 | Staunton City | City | 51 | 38.156234 | -79.054377 | 2 |
| 51800 | Suffolk City | City | 1,067 | 36.690587 | -76.616102 | 9 |
| 51810 | Virginia Beach City | City | 724 | 36.802695 | -76.055211 | 19 |
| 51820 | Waynesboro City | City | 39 | 38.070008 | -78.899957 | 1 |
| 51830 | Williamsburg City | City | 22 | 37.267631 | -76.70482 | 2 |
| 51840 | Winchester City | City | 22 | 39.178114 | -78.170534 | 2 |
No row matches. Clear the filter to see all.
File: virginia-county-fips-codes.csv
Using FIPS codes
FIPS codes are the join key for most US county data, from Census population tables to election results and BLS unemployment files. Store them as five-character text even though Virginia's codes start with 5: codes in states such as Alabama (01) and California (06) start with 0, and a number column drops that zero as soon as you combine states.
-- add county names to any table that has a 5-digit fips column
SELECT d.*, c.name AS county_name
FROM my_data d
LEFT JOIN county_fips c ON c.fips = d.fips
WHERE c.state = 'VA';In Excel, build the 5-digit code from two parts with =TEXT(A2,"00")&TEXT(B2,"000"), where A2 is the state code (51) and B2 the county code.
Where the data comes from
Names, types, areas and centre points come from Natural Earth's 1:10m admin-2 counties (version 5.1.1, public domain). We checked every FIPS code against the GeoNames admin-2 list: 133 of 133 match. ZIP counts come from the GeoNames postal code file on the Virginia ZIP code page.
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| fips | text | Five-digit county FIPS code |
| state_fips | text | Two-digit state FIPS code |
| county_fips | text | Three-digit county code within the state |
| name | text | Short name |
| full_name | text | Name with its type, e.g. 'Kent County' |
| type | text | County, Parish, Borough, City, Census Area, Planning Region… |
| state | text | Two-letter state code |
| state_name | text | State name |
| area_sq_km | number | Area in km² (Natural Earth; rounded) |
| latitude | number | Centre point latitude (Natural Earth) |
| longitude | number | Centre point longitude (Natural Earth) |
| zip_codes | number | ZIP codes assigned to it in the GeoNames postal list |
| wikidata_id | text | Wikidata item, for linking to other data |