DataBrighten

    Virginia county FIPS codes

    133counties · state FIPS 51

    Every Virginia county FIPS code with name, type, area, centre point and ZIP count, as CSV, Excel or JSON. Updated 19 November 2026.

    textnumberdateyes/no
    State FIPS51Virginia
    Counties1332 types
    LargestPittsylvania2,574 km²
    LicencePublic domainNatural Earth

    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

    FIPSNameTypeArea km²LatitudeLongitudeZIP codes
    51001Accomack CountyCounty1,09837.892677-75.56549840
    51003Albemarle CountyCounty1,90038.102743-78.63870517
    51005Alleghany CountyCounty1,13237.738019-80.1195164
    51007Amelia CountyCounty92937.352527-77.9957463
    51009Amherst CountyCounty1,18437.643193-79.1890745
    51011Appomattox CountyCounty86037.371589-78.8140124
    51013Arlington CountyCounty6838.876507-77.09903328
    51015Augusta CountyCounty2,52838.185543-79.26473220
    51017Bath CountyCounty1,38338.058326-79.7406365
    51019Bedford CountyCounty1,96837.184566-79.51607313
    51021Bland CountyCounty93737.155092-81.1005174
    51023Botetourt CountyCounty1,41437.575135-79.81253111
    51025Brunswick CountyCounty1,48936.768592-77.84538412
    51027Buchanan CountyCounty1,34037.272368-82.06336115
    51029Buckingham CountyCounty1,52537.565511-78.5227624
    51031Campbell CountyCounty1,26537.232258-79.07337710
    51033Caroline CountyCounty1,44138.035726-77.34613910
    51035Carroll CountyCounty1,23436.721982-80.7331167
    51036Charles City CountyCounty43937.364918-77.0449472
    51037Charlotte CountyCounty1,19637.014093-78.60438210
    51041Chesterfield CountyCounty1,14837.412079-77.63010113
    51043Clarke CountyCounty47139.117251-77.9931474
    51045Craig CountyCounty82337.486995-80.1808192
    51047Culpeper CountyCounty92238.520042-77.96317912
    51049Cumberland CountyCounty76437.516469-78.2314492
    51051Dickenson CountyCounty86037.119983-82.3527518
    51053Dinwiddie CountyCounty1,31537.072236-77.6276979
    51057Essex CountyCounty67837.909208-76.9492169
    51059Fairfax CountyCounty1,03638.765686-77.22135174
    51061Fauquier CountyCounty1,62038.836826-77.85603424
    51063Floyd CountyCounty98436.932076-80.3399485
    51065Fluvanna CountyCounty73837.837578-78.275135
    51067Franklin CountyCounty1,89136.993306-79.85023210
    51069Frederick CountyCounty1,08939.222619-78.2989710
    51071Giles CountyCounty95837.30425-80.704229
    51073Gloucester CountyCounty57937.451014-76.55167915
    51075Goochland CountyCounty74737.752557-78.00125711
    51077Grayson CountyCounty1,13836.664477-81.2200916
    51079Greene CountyCounty43038.300749-78.4726234
    51081Greensville CountyCounty78536.623232-77.6163362
    51083Halifax CountyCounty2,21636.772558-78.92633810
    51085Hanover CountyCounty1,27537.837635-77.62523610
    51087Henrico CountyCounty61137.468543-77.3101218
    51089Henry CountyCounty1,00436.723955-79.9717737
    51091Highland CountyCounty1,11038.352815-79.5694036
    51093Isle of Wight CountyCounty83836.934148-76.7038449
    51095James City CountyCounty36737.343639-76.8088515
    51097King and Queen CountyCounty81337.716947-76.83734210
    51099King George CountyCounty44438.272107-77.1420277
    51101King William CountyCounty62037.778255-77.1928544
    51103Lancaster CountyCounty32037.766545-76.47116610
    51105Lee CountyCounty1,12036.708495-83.04399
    51107Loudoun CountyCounty1,41339.105767-77.66500635
    51109Louisa CountyCounty1,32337.975181-77.9066244
    51111Lunenburg CountyCounty1,09336.963934-78.2641715
    51113Madison CountyCounty77038.419494-78.29909716
    51115Mathews CountyCounty24237.442311-76.33864316
    51117Mecklenburg CountyCounty1,75936.701403-78.39829710
    51119Middlesex CountyCounty39237.662243-76.63722312
    51121Montgomery CountyCounty1,02037.183406-80.38165711
    51125Nelson CountyCounty1,22237.795114-78.86882414
    51127New Kent CountyCounty66337.513721-76.9937585
    51131Northampton CountyCounty51637.420835-75.90394416
    51133Northumberland CountyCounty56437.895039-76.4043758
    51135Nottoway CountyCounty81937.134253-78.0511494
    51137Orange CountyCounty1,02438.250619-77.9873799
    51139Page CountyCounty81538.617212-78.4979644
    51141Patrick CountyCounty1,25136.689437-80.2593498
    51143Pittsylvania CountyCounty2,57436.824778-79.39582813
    51145Powhatan CountyCounty68937.561877-77.8917011
    51147Prince Edward CountyCounty92137.203685-78.4221687
    51149Prince George CountyCounty69537.191433-77.2251153
    51153Prince William CountyCounty88938.656701-77.41764819
    51155Pulaski CountyCounty86437.065477-80.7131248
    51157Rappahannock CountyCounty71138.669294-78.175849
    51159Richmond CountyCounty46937.908916-76.6718985
    51161Roanoke CountyCounty65437.212162-80.1248356
    51163Rockbridge CountyCounty1,55837.915446-79.4428439
    51165Rockingham CountyCounty2,23838.622309-78.94423220
    51167Russell CountyCounty1,26236.946758-82.0962547
    51169Scott CountyCounty1,35236.740155-82.5603427
    51171Shenandoah CountyCounty1,31538.864682-78.55099713
    51173Smyth CountyCounty1,17236.85046-81.5326876
    51175Southampton CountyCounty1,53136.706591-77.1082128
    51177Spotsylvania CountyCounty1,09738.179497-77.6615037
    51179Stafford CountyCounty67138.449364-77.47317910
    51181Surry CountyCounty73937.104685-76.8810625
    51183Sussex CountyCounty1,28136.92508-77.2619057
    51185Tazewell CountyCounty1,37637.098784-81.56387818
    51187Warren CountyCounty56138.92133-78.2102474
    51191Washington CountyCounty1,45736.732508-81.9659968
    51193Westmoreland CountyCounty60838.070811-76.67615110
    51195Wise CountyCounty1,01137.053521-82.6040718
    51197Wythe CountyCounty1,20536.911876-81.0787129
    51199York CountyCounty31837.168319-76.4634747
    51510Alexandria CityCity4138.82168-77.08671513
    51520Bristol CityCity3136.615874-82.1584125
    51530Buena Vista CityCity1537.733832-79.3561411
    51540Charlottesville CityCity2638.038029-78.4881318
    51550Chesapeake CityCity89836.674595-76.3033549
    51570Colonial Heights CityCity1837.264874-77.3977591
    51580Covington CityCity1337.773056-79.9862821
    51590Danville CityCity11636.581537-79.3923523
    51595Emporia CityCity1936.69326-77.5351491
    51600FairfaxCity1638.854056-77.2997733
    51610Falls Church CityCity538.886272-77.176372
    51620Franklin CityCity2336.684247-76.9423181
    51630Fredericksburg CityCity4238.302992-77.4864283
    51640Galax CityCity1736.664048-80.9190931
    51650Hampton CityCity16237.057972-76.36839712
    51660Harrisonburg CityCity4538.440933-78.8644323
    51670Hopewell CityCity2737.290495-77.2961131
    51678Lexington CityCity637.78286-79.4456121
    51680Lynchburg CityCity16237.415576-79.182588
    51683Manassas CityCity2738.753519-77.4777053
    51685Manassas Park CityCity338.759743-77.4288033
    51690Martinsville CityCity2836.687792-79.8647024
    51700Newport News CityCity17137.137829-76.55495411
    51710Norfolk CityCity15036.895829-76.25124421
    51720Norton CityCity1836.924921-82.6358411
    51730Petersburg CityCity6037.206904-77.3918934
    51735Poquoson CityCity5037.138905-76.3424191
    51740Portsmouth CityCity8736.822489-76.3318358
    51750Radford CityCity2237.118965-80.5657963
    51760Richmond CityCity16437.52-77.47207830
    51770Roanoke CityCity10937.27551-79.95924636
    51775Salem CityCity3637.283038-80.0538813
    51790Staunton CityCity5138.156234-79.0543772
    51800Suffolk CityCity1,06736.690587-76.6161029
    51810Virginia Beach CityCity72436.802695-76.05521119
    51820Waynesboro CityCity3938.070008-78.8999571
    51830Williamsburg CityCity2237.267631-76.704822
    51840Winchester CityCity2239.178114-78.1705342

    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

    ColumnTypeMeaning
    fipstextFive-digit county FIPS code
    state_fipstextTwo-digit state FIPS code
    county_fipstextThree-digit county code within the state
    nametextShort name
    full_nametextName with its type, e.g. 'Kent County'
    typetextCounty, Parish, Borough, City, Census Area, Planning Region…
    statetextTwo-letter state code
    state_nametextState name
    area_sq_kmnumberArea in km² (Natural Earth; rounded)
    latitudenumberCentre point latitude (Natural Earth)
    longitudenumberCentre point longitude (Natural Earth)
    zip_codesnumberZIP codes assigned to it in the GeoNames postal list
    wikidata_idtextWikidata item, for linking to other data