Ravalli County · Montana

ZIP Code 59840

Hamilton, MT · 15,679 residents

City (USPS)
Hamilton
State
Montana
Time zone
Mountain Time
Area code
406
Coordinates
46.1667° N, 114.1051° W
Land area
537 sq mi · 29 people/sq mi
114.5°W114.0°W113.5°W46.0°N46.5°NZIP 59711ZIP 59761ZIP 59762ZIP 59825ZIP 59827ZIP 59828ZIP 59829ZIP 59832ZIP 59837ZIP 59841ZIP 59847ZIP 59858ZIP 59870ZIP 59871ZIP 59875ZIP 83539ZIP 8361183539598585976259870598715982859875598275984010 miN
ZIP Code 59840 (highlighted) with bordering ZIP Codes and county lines. Select a neighbor to open it.

What county is 59840 in?

ZIP Code 59840 is in Ravalli County, Montana.

The Postal Service's default place name for 59840 is Hamilton. The ZIP Code lies outside any incorporated city or Census-designated place: it is unincorporated territory.

Population15,679±1,013
Median household income$61,752
Median home value$428,100
Median rent$1,033/mo
Median age48.3
Households6,682

What stands out in ZIP 59840

  • The average commute is 15 minutes, 39% lower than Ravalli County (24 minutes).
  • The share of residents born abroad is 2.8%, 22% higher than Ravalli County (2.3%).
  • The median household income is $61,752, 13% lower than Ravalli County ($71,283).
  • The homeownership rate is 70.3%, 11% lower than Ravalli County (79.4%).

People in ZIP 59840

Median age48.3
Under 1817.7%
65 and older27.5%
Born abroad2.8%
Moved here in the last year13.2%

Age and sex

MaleAgeFemale
2.9%80+5.7%
4.7%70–795.1%
8.4%60–699.4%
5.3%50–596.6%
6.7%40–496.8%
5.6%30–396.3%
3.0%20–293.9%
6.7%10–196.5%
3.5%0–92.7%
Share of all residents in each age group

Race and ethnicity

  • White91.3%
  • Two or more races3.1%
  • Hispanic or Latino2.9%
  • Other1.6%
  • American Indian / Alaska Native1%

Hispanic or Latino residents can be of any race; the other groups count non-Hispanic residents only.

Households

6,682 households, 2.29 people per household on average, 60% family households, and 36.7% people living alone.

Income in ZIP 59840

Median household income$61,752±$10,899
Per-capita income$37,276
Poverty rate8.6%
Income inequality (Gini)0.450 = equal, 1 = unequal

Median household income ranks 159th of 254 ZIP Codes in Montana. Richest ZIP Codes in Montana

15%Under $25k
27%$25k–50k
20%$50k–75k
11%$75k–100k
15%$100k–150k
7%$150k–200k
5%$200k+
Households by annual income

Housing in ZIP 59840

Median home value$428,100
Median gross rent$1,033/mo
Housing units7,640
Median year built1981
Vacant12.5%

Owners and renters

  • Owner-occupied 70.3%
  • Renter-occupied 29.7%

Types of homes

  • Single-family homes 76.9%
  • 2–9 unit buildings 9.3%
  • 10+ unit buildings 6.9%
  • Mobile homes, RVs 6.9%

Work, commute and education

Mean commute15 minone way
Unemployment rate1.5%
Labor force participation54.3%age 16+
Broadband at home85.1%households

How workers get to work

  • Drove alone71.4%
  • Carpooled12.3%
  • Public transit0.7%
  • Walked2.6%
  • Bicycle1.3%
  • Worked from home11.2%

Education, adults 25+

  • High school or higher92.8%
  • Bachelor's or higher31.2%
  • Graduate or professional degree14.1%

How ZIP 59840 compares

ZIP 59840Ravalli CountyMontanaUnited States
Median household income$61,752$71,283$72,509$80,734
Per-capita income$37,276$39,624$41,711$44,673
Median home value$428,100$476,600$375,800$332,700
Median gross rent$1,033/mo$1,054/mo$1,081/mo$1,413/mo
Homeownership rate70.3%79.4%69.2%65.2%
Median age48.348.740.438.9
Bachelor's degree or higher31.2%28.7%35.2%35.7%
Poverty rate8.6%8.8%11.5%12.5%
Unemployment rate1.5%3.2%3.6%5.2%
Mean commute15 min24 min19 min26 min
Worked from home11.2%14.2%12.5%15.1%
Broadband at home85.1%87.1%89.4%91%
Foreign-born residents2.8%2.3%2.3%14.1%

ZIP Codes bordering 59840

ZIP CodeCityPopulationMedian incomeHome valueMedian ageDirection
59841Pinesdale833$66,875$230,00023.6NW · 12.9 mi
59828Corvallis5,827$80,294$544,50048.7NE · 13.1 mi
59875Victor3,764$63,036$525,50053.4NW · 20.2 mi
59871Sula289$32,163$457,90066.1SE · 23.5 mi
59829Darby2,148$63,650$437,90053.8S · 29.0 mi
59858Philipsburg1,494$56,719$380,00056.8E · 31.6 mi
83539Kooskia2,427$57,885$347,50058.8W · 36.0 mi

Cities and communities in 59840

    Area codes for 59840

    Hamilton phone numbers use area code 406. See every phone prefix, carrier and the local time on Hamilton area codes at AreaCodeExplorer.

    ZIP Code 59840: questions and answers

    What county is ZIP Code 59840 in?
    ZIP Code 59840 is in Ravalli County, Montana.
    What city is ZIP Code 59840 in?
    The Postal Service's default place name for 59840 is Hamilton. The ZIP Code lies outside any incorporated city or Census-designated place: it is unincorporated territory.
    What is the population of ZIP Code 59840?
    About 15,679 people live in ZIP Code 59840, according to the Census Bureau's American Community Survey (2020–2024).
    What time zone is 59840 in?
    ZIP Code 59840 is in the Mountain Time zone (America/Denver).
    What is the median household income in 59840?
    The median household income in ZIP Code 59840 is $61,752 (2020–2024 ACS), compared with $71,283 in Ravalli County and $72,509 in Montana.
    Which ZIP Codes border 59840?
    59841 (Pinesdale), 59828 (Corvallis), 59875 (Victor), 59871 (Sula), 59829 (Darby), 59858 (Philipsburg), and 83539 (Kooskia).

    Sources: U.S. Census Bureau, American Community Survey 2020–2024 5-year estimates; 2025 Population Estimates; 2024 Gazetteer and cartographic boundary files; ZIP Code place names: GeoNames (CC BY 4.0). How we build these pages.