Weather right now
Asking the National Weather Service…
Where 59840 is
Approximate ZIP boundary (Census ZCTA 2020). ZIP codes are mail routes, not areas, so the shape shown is the Census tabulation area that approximates it.
- 🔢 Type 59840 into a pocket calculator and turn it upside down: OhBGS — not quite a word, sorry.
- ➕ As a number, 59,840 = 2 × 2 × 2 × 2 × 2 × 2 × 5 × 11 × 17. Its digits add up to 26, a total 2,038 other ZIP codes share.
- 💾In binary, the way a computer stores it:
1110100111000000 - 🏠 Its numerical neighbours: 59837 (Hall, MT, 47 mi away) and 59841 (Pinesdale, MT, 13 mi away).
- 🔄 Backwards, 59840 becomes 04895, which is not a ZIP code at all.
- 👥 46 other ZIP codes are made of exactly the same digits (04859, 04958, 04985, 05489, 05849, 09845, …). The farthest-flung twin is 09845 in APO AE, a military post office, 6,054 miles away.
- 🧭 Farther north than 94% of all ZIP codes, and farther west than 88%.
- 🎯896 miles northwest of the geographic center of the Lower 48, near Lebanon, Kansas.
- 🌏 Dig straight through the Earth from 59840 and you would come out at 46.17°S, 65.89°E — 298 miles from Port-aux-Français, French Southern Territories, the nearest big city to that spot.
- ☀Longest day of the year: 15h 47m of daylight. Shortest: 8h 37m.
- 📏 At 537.4 square miles of land, 59840 is bigger than 98% of ZIP codes — room for about 408 Central Parks.
- Working out the sun…
- Checking the USGS…
Source: USGS.
People and housing
| Population | 15,679This ZIP15,679 |
|---|---|
| Households | 6,682This ZIP6,682 |
| Housing units | 7,640This ZIP7,640 |
| Median age | 48.3This ZIP48.3Montana40.4US 38.9 |
| Median household income | $61,752This ZIP$61,752Montana$72,509US $80,734 |
| Median home value | $428,100This ZIP$428,100Montana$375,800US $332,700 |
| Median gross rent | $1,033This ZIP$1,033Montana$1,081US $1,413 |
| Bachelor's degree or higher | 31.2%This ZIP31.2% |
| Mean commute | 14.9 minThis ZIP14.9 min |
| Population density | 29.2 / sq miThis ZIP29.2 / sq mi |
Business and tax activity
| Business establishments | 749This ZIP749 |
|---|---|
| Employees | 6,259This ZIP6,259 |
| Annual payroll | $297,433,000This ZIP$297,433,000 |
| Tax returns filed | 7,420This ZIP7,420 |
| Total adjusted gross income | $629,333,000This ZIP$629,333,000 |
Land area
| Land area | 537.36 sq miThis ZIP537.36 sq mi |
|---|---|
| Water area | 1.61 sq miThis ZIP1.61 sq mi |
Other place names in 59840
Census places whose land this ZIP code overlaps. The Postal Service may accept other city names in an address, too.
ZIP codes near 59840
| ZIP | City | Distance |
|---|---|---|
59835 | Grantsdale, MT | 3.1 mi |
59841 | Pinesdale, MT | 12.9 mi |
59828 | Corvallis, MT | 13.1 mi |
59827 | Conner, MT | 19.0 mi |
59875 | Victor, MT | 20.2 mi |
59871 | Sula, MT | 23.5 mi |
59870 | Stevensville, MT | 24.2 mi |
59829 | Darby, MT | 29.0 mi |
59858 | Philipsburg, MT | 31.6 mi |
59833 | Florence, MT | 33.3 mi |
Find every ZIP code within 10 miles of 59840 →
Questions about this ZIP code
Where is ZIP code 59840?
59840 is in Hamilton, Montana, in Ravalli County. Its published point location is 46.1667, -114.1051.
What county is 59840 in?
59840 lies in Ravalli County.
What area code is 59840?
Hamilton uses area code 406, from NANPA's telephone records.
What time zone is 59840 in?
59840 uses America/Denver.
How many people live in 59840?
About 15,679 people live in ZIP code 59840, in 6,682 households, at 29.2 people per square mile. These are American Community Survey 5-year estimates for the ZIP Code Tabulation Area, not a headcount.
What is the median household income in 59840?
$61,752 a year, against $72,509 across Montana.
What ZIP codes are near 59840?
The closest are 59835 (3.1 mi), 59841 (12.9 mi), 59828 (13.1 mi), 59827 (19 mi) and 59875 (20.2 mi).
Is 59840 a PO Box ZIP code?
59840 is a standard ZIP code. A normal ZIP code with street delivery.
Download or cite
Cite this page
zipcodes.pro. “59840 ZIP Code — Hamilton, Montana (Ravalli County).” Data release 2026-10-12. Retrieved 2026-10-20. https://zipcodes.pro/zip/59840
Machine-readable version of these facts:
curl https://zipcodes.pro/zip/59840.json Underlying data is public domain or openly licensed — sources, vintages and licences.