DataBrighten

    Maryland county FIPS codes

    24counties · state FIPS 24

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

    textnumberdateyes/no
    State FIPS24Maryland
    Counties242 types
    LargestFrederick1,718 km²
    LicencePublic domainNatural Earth

    Maryland counties and FIPS codes

    Maryland has state FIPS code 24, and this list has 24 counties and county equivalents: 23 counties and 1 independent city. Each full FIPS code joins the state code and a three-digit county code, so Allegany County is 24001: 24 for Maryland and 001 for the county.

    By area the largest is Frederick at about 1,718 km² (663 sq mi) and the smallest is Baltimore at about 213 km² (82 sq mi); the counties add up to about 25,486 km². Montgomery has the most ZIP codes assigned to it (76).

    Maryland has an independent city that is its own county equivalent: Baltimore city (24510).

    All 24 counties

    FIPSNameTypeArea km²LatitudeLongitudeZIP codes
    24001Allegany CountyCounty1,08339.629618-78.64114322
    24003Anne Arundel CountyCounty1,10639.094625-76.6669443
    24005Baltimore CountyCounty1,56639.521216-76.68888753
    24009Calvert CountyCounty55338.578683-76.58643314
    24011Caroline CountyCounty83938.893355-75.82885311
    24013Carroll CountyCounty1,17339.570929-76.99091213
    24015Cecil CountyCounty88439.638971-76.03873817
    24017Charles CountyCounty1,22138.523898-76.91160724
    24019Dorchester CountyCounty1,44738.45906-76.0466516
    24021Frederick CountyCounty1,71839.453431-77.40165431
    24023Garrett CountyCounty1,68539.528458-79.2964489
    24025Harford CountyCounty1,15339.585199-76.31272821
    24027Howard CountyCounty65739.239318-76.91471322
    24029Kent CountyCounty75139.279545-76.079189
    24031Montgomery CountyCounty1,27339.139854-77.16766476
    24033Prince George's CountyCounty1,26138.800567-76.83121364
    24035Queen Anne's CountyCounty95639.084283-75.97908713
    24037Saint Mary's CountyCounty97638.33741-76.67411329
    24039Somerset CountyCounty81738.17025-75.67140711
    24041Talbot CountyCounty73738.83617-76.03204615
    24043Washington CountyCounty1,15439.602992-77.71995623
    24045Wicomico CountyCounty99338.368016-75.59869918
    24047Worcester CountyCounty1,27038.168356-75.43507812
    24510BaltimoreCity21339.316977-76.61643739

    File: maryland-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 Maryland's codes start with 2: 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 = 'MD';

    In Excel, build the 5-digit code from two parts with =TEXT(A2,"00")&TEXT(B2,"000"), where A2 is the state code (24) 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: 24 of 24 match. ZIP counts come from the GeoNames postal code file on the Maryland 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