Montana county FIPS codes
Every Montana county FIPS code with name, type, area, centre point and ZIP count, as CSV, Excel or JSON. Updated 19 November 2026.
Montana counties and FIPS codes
Montana has state FIPS code 30, and this list has 56 counties and county equivalents: 56 counties. Each full FIPS code joins the state code and a three-digit county code, so Beaverhead County is 30001: 30 for Montana and 001 for the county.
By area the largest is Beaverhead at about 14,342 km² (5,537 sq mi) and the smallest is Silver Bow at about 1,805 km² (697 sq mi); the counties add up to about 379,491 km². Yellowstone has the most ZIP codes assigned to it (23).
All 56 counties
| FIPS | Name | Type | Area km² | Latitude | Longitude | ZIP codes |
|---|---|---|---|---|---|---|
| 30001 | Beaverhead County | County | 14,342 | 45.10155 | -112.876572 | 8 |
| 30003 | Big Horn County | County | 12,958 | 45.478502 | -107.408725 | 10 |
| 30005 | Blaine County | County | 10,799 | 48.440069 | -108.943994 | 7 |
| 30007 | Broadwater County | County | 3,208 | 46.351795 | -111.524867 | 4 |
| 30009 | Carbon County | County | 5,387 | 45.266336 | -108.971314 | 10 |
| 30011 | Carter County | County | 8,658 | 45.508218 | -104.530115 | 5 |
| 30013 | Cascade County | County | 7,032 | 47.352156 | -111.405867 | 18 |
| 30015 | Chouteau County | County | 10,314 | 47.861264 | -110.362218 | 7 |
| 30017 | Custer County | County | 9,824 | 46.226748 | -105.717295 | 4 |
| 30019 | Daniels County | County | 3,635 | 48.777849 | -105.547879 | 4 |
| 30021 | Dawson County | County | 6,170 | 47.238682 | -104.889563 | 4 |
| 30023 | Deer Lodge County | County | 1,857 | 46.055486 | -113.093888 | 2 |
| 30025 | Fallon County | County | 4,190 | 46.369343 | -104.37532 | 3 |
| 30027 | Fergus County | County | 11,509 | 47.282447 | -109.220946 | 10 |
| 30029 | Flathead County | County | 13,571 | 48.428732 | -114.241787 | 18 |
| 30031 | Gallatin County | County | 6,791 | 45.814341 | -111.094382 | 13 |
| 30033 | Garfield County | County | 12,702 | 47.270177 | -106.996992 | 5 |
| 30035 | Glacier County | County | 7,777 | 48.651209 | -112.994498 | 4 |
| 30037 | Golden Valley County | County | 3,045 | 46.381898 | -109.168298 | 2 |
| 30039 | Granite County | County | 4,488 | 46.438653 | -113.481955 | 3 |
| 30041 | Hill County | County | 7,483 | 48.649287 | -110.112423 | 7 |
| 30043 | Jefferson County | County | 4,214 | 46.158079 | -112.143735 | 6 |
| 30045 | Judith Basin County | County | 4,844 | 47.003165 | -110.275945 | 5 |
| 30047 | Lake County | County | 4,245 | 47.733214 | -114.121568 | 12 |
| 30049 | Lewis and Clark County | County | 9,134 | 47.155162 | -112.403442 | 15 |
| 30051 | Liberty County | County | 3,726 | 48.562703 | -111.018454 | 3 |
| 30053 | Lincoln County | County | 9,433 | 48.545861 | -115.40584 | 7 |
| 30055 | McCone County | County | 7,061 | 47.601704 | -105.807615 | 3 |
| 30057 | Madison County | County | 9,377 | 45.307175 | -111.851719 | 11 |
| 30059 | Meagher County | County | 6,200 | 46.550599 | -110.815474 | 3 |
| 30061 | Mineral County | County | 3,019 | 47.11997 | -114.925108 | 6 |
| 30063 | Missoula County | County | 6,759 | 46.925451 | -113.808441 | 16 |
| 30065 | Musselshell County | County | 4,874 | 46.492824 | -108.394394 | 4 |
| 30067 | Park County | County | 7,274 | 45.482146 | -110.51676 | 9 |
| 30069 | Petroleum County | County | 4,388 | 47.043741 | -108.239146 | 2 |
| 30071 | Phillips County | County | 13,261 | 48.234576 | -107.89288 | 6 |
| 30073 | Pondera County | County | 4,272 | 48.307447 | -112.225617 | 6 |
| 30075 | Powder River County | County | 8,523 | 45.394155 | -105.628718 | 5 |
| 30077 | Powell County | County | 6,039 | 46.548849 | -112.749208 | 7 |
| 30079 | Prairie County | County | 4,513 | 46.774808 | -105.327472 | 3 |
| 30081 | Ravalli County | County | 6,134 | 46.071295 | -114.107035 | 10 |
| 30083 | Richland County | County | 5,587 | 47.868815 | -104.620639 | 5 |
| 30085 | Roosevelt County | County | 5,928 | 48.321572 | -105.043643 | 7 |
| 30087 | Rosebud County | County | 12,979 | 46.38462 | -106.590507 | 11 |
| 30089 | Sanders County | County | 7,178 | 47.693325 | -115.184911 | 9 |
| 30091 | Sheridan County | County | 4,372 | 48.690905 | -104.42917 | 9 |
| 30093 | Silver Bow County | County | 1,805 | 45.904992 | -112.644136 | 8 |
| 30095 | Stillwater County | County | 4,667 | 45.686962 | -109.344854 | 8 |
| 30097 | Sweet Grass County | County | 4,823 | 45.870531 | -109.905534 | 4 |
| 30099 | Teton County | County | 5,844 | 47.824014 | -112.253504 | 6 |
| 30101 | Toole County | County | 4,976 | 48.679881 | -111.661045 | 8 |
| 30103 | Treasure County | County | 2,525 | 46.173865 | -107.221959 | 3 |
| 30105 | Valley County | County | 12,886 | 48.482973 | -106.682193 | 11 |
| 30107 | Wheatland County | County | 3,701 | 46.463542 | -109.844412 | 4 |
| 30109 | Wibaux County | County | 2,313 | 46.835606 | -104.22642 | 1 |
| 30111 | Yellowstone County | County | 6,877 | 45.796587 | -108.446031 | 23 |
No row matches. Clear the filter to see all.
File: montana-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 Montana's codes start with 3: 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 = 'MT';In Excel, build the 5-digit code from two parts with =TEXT(A2,"00")&TEXT(B2,"000"), where A2 is the state code (30) 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: 56 of 56 match. ZIP counts come from the GeoNames postal code file on the Montana 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 |