City in Ravalli County, Montana

Hamilton, Montana

5,451 residents · 1 ZIP Code

Population
5,451 ▲ 16.3% since 2020 (2025 est.)
Rank in state
26th largest of 154 places
Land area
2.5 sq mi · 2,143 people/sq mi
Time zone
Mountain Time
ZIP Codes
59840
Area code
406
114.20°W114.18°W114.16°W114.14°W114.12°W46.24°N46.26°N46.28°N598401 miN
Hamilton city limits (outlined) over the ZIP Codes that serve it.

What county is Hamilton in?

Hamilton is in Ravalli County, Montana.

What stands out in Hamilton

  • The share of residents born abroad is 5.1%, 2.2× the Ravalli County (2.3%).
  • The average commute is 12 minutes, 50% lower than Ravalli County (24 minutes).
  • The median home value is $310,000, 35% lower than Ravalli County ($476,600).
  • The median household income is $49,204, 31% lower than Ravalli County ($71,283).

ZIP Codes in Hamilton

ZIP CodeCityPopulationMedian incomeHome valueMedian ageShare in city
59840Hamilton15,679$61,752$428,10048.30% of ZIP

People in Hamilton

Median age51.8
Under 1813.9%
65 and older34.3%
Born abroad5.1%
Moved here in the last year21.7%

Age and sex

MaleAgeFemale
3.1%80+13.0%
4.1%70–794.8%
7.5%60–698.5%
6.1%50–597.0%
6.7%40–498.7%
4.1%30–394.9%
2.5%20–293.9%
6.2%10–193.6%
2.2%0–93.1%
Share of all residents in each age group

Race and ethnicity

  • White93%
  • Two or more races2.9%
  • American Indian / Alaska Native2.3%
  • Hispanic or Latino1.7%

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

Households

2,748 households, 1.74 people per household on average, 43.2% family households, and 53.6% people living alone.

Income in Hamilton

Median household income$49,204±$9,323
Per-capita income$38,231
Poverty rate8.8%
Income inequality (Gini)0.440 = equal, 1 = unequal
19%Under $25k
33%$25k–50k
21%$50k–75k
9%$75k–100k
11%$100k–150k
3%$150k–200k
4%$200k+
Households by annual income

Housing in Hamilton

Median home value$310,000
Median gross rent$947/mo
Housing units3,101
Median year built1976
Vacant11.4%

Owners and renters

  • Owner-occupied 55.7%
  • Renter-occupied 44.3%

Types of homes

  • Single-family homes 56.2%
  • 2–9 unit buildings 18.7%
  • 10+ unit buildings 17.1%
  • Mobile homes, RVs 8%

Work, commute and education

Mean commute12 minone way
Unemployment rate2%
Labor force participation60%age 16+
Broadband at home84.2%households

How workers get to work

  • Drove alone77%
  • Carpooled14%
  • Public transit1.1%
  • Walked3.3%
  • Bicycle0.9%
  • Worked from home3.4%

Education, adults 25+

  • High school or higher92.5%
  • Bachelor's or higher30.8%
  • Graduate or professional degree16.8%

How Hamilton compares

HamiltonRavalli CountyMontanaUnited States
Median household income$49,204$71,283$72,509$80,734
Per-capita income$38,231$39,624$41,711$44,673
Median home value$310,000$476,600$375,800$332,700
Median gross rent$947/mo$1,054/mo$1,081/mo$1,413/mo
Homeownership rate55.7%79.4%69.2%65.2%
Median age51.848.740.438.9
Bachelor's degree or higher30.8%28.7%35.2%35.7%
Poverty rate8.8%8.8%11.5%12.5%
Unemployment rate2%3.2%3.6%5.2%
Mean commute12 min24 min19 min26 min
Worked from home3.4%14.2%12.5%15.1%
Broadband at home84.2%87.1%89.4%91%
Foreign-born residents5.1%2.3%2.3%14.1%

Places near Hamilton

Area codes in Hamilton

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

Hamilton, MT: questions and answers

What county is Hamilton, MT in?
Hamilton is in Ravalli County, Montana.
What ZIP Codes are in Hamilton?
Hamilton is served by 1 residential ZIP Code: 59840.
What is the population of Hamilton?
The Census Bureau estimates 5,451 residents in Hamilton in 2025.
What time zone is Hamilton in?
Hamilton is in the Mountain Time zone (America/Denver).
What is the area code for Hamilton?
Hamilton uses area code 406.

Sources: U.S. Census Bureau, American Community Survey 2020–2024 5-year estimates; 2025 Population Estimates; 2024 Gazetteer and cartographic boundary files. How we build these pages.