Hours to Milliseconds Converter

Convert hours to milliseconds instantly. Enter any value — the result updates as you type. 1 hour = exactly 3,600,000 milliseconds (60 × 60 × 1,000). This conversion is the backbone of SLA uptime calculations, setTimeout scheduling, broadcast synchronization, and any system where human-scale time planning meets machine-precision execution. Use the swap button to convert milliseconds back to hours.

HoursMilliseconds
0.25900,000
0.51,800,000
13,600,000
1.55,400,000
27,200,000
310,800,000
414,400,000
621,600,000
828,800,000
1243,200,000
2486,400,000
168604,800,000

How to Convert Hours to Milliseconds

Multiply hours by 3,600,000 to get milliseconds. The derivation: 1 hour = 60 minutes × 60 seconds × 1,000 milliseconds = 3,600,000 ms. Every factor is exact, making this one of the cleanest conversions in the series. The formula:

Milliseconds = Hours × 3,600,000 Hours = Milliseconds ÷ 3,600,000 1 hr = 60 min × 60 sec × 1,000 ms = 3,600,000 ms (exact) 3,600,000 = 3,600 s/hr × 1,000 ms/s = 60,000 ms/min × 60 min/hr

The hours-to-milliseconds conversion sits at a unique scale junction: hours are the unit humans plan in (meeting in 2 hours, flight in 4 hours, shift ends in 8 hours), while milliseconds are the unit machines execute in (API call took 230 ms, database query: 45 ms, video frame rendered in 16.7 ms). Every software system that converts between human intent and machine execution passes through this conversion. Mastering it is essential for backend development, SLA design, real-time systems, and performance engineering.

Conversion table (Hours × 3,600,000 = Milliseconds)

0.25 hr = 900,000 ms (15 min = quarter hour) 0.5 hr = 1,800,000 ms (30 min = half hour) 1 hr = 3,600,000 ms (the anchor: 3.6 million ms) 1.5 hr = 5,400,000 ms (90 min = 1 sleep cycle) 2 hr = 7,200,000 ms 3 hr = 10,800,000 ms 4 hr = 14,400,000 ms 6 hr = 21,600,000 ms 8 hr = 28,800,000 ms (standard workday) 12 hr = 43,200,000 ms (half day) 24 hr = 86,400,000 ms (= 1 day exactly) 168 hr = 604,800,000 ms (= 1 week exactly)Key: 1 hr = 3.6M ms. 8 hr = 28.8M ms. 24 hr = 86.4M ms. All multiples of 1 hr give exact integers — no rounding ever.

The Architecture of 3,600,000: Why This Number is Everywhere in Code

3,600,000 appears in every codebase that deals with time. Understanding its structure helps you reason about it instantly:

3,600,000 = 60 × 60 × 1,000 = 3,600 × 1,000 (seconds/hr × ms/s) = 60,000 × 60 (ms/min × min/hr) = 3,600,000 (the canonical form)Quick mental arithmetic: N hours → multiply by 3.6, then add 6 zeros: 2 hr → 2 × 3.6 = 7.2 → 7,200,000 ms ✓ 8 hr → 8 × 3.6 = 28.8 → 28,800,000 ms ✓N ms → divide by 3,600,000 (or: divide by 3.6M): 28,800,000 ms → 28.8 ÷ 3.6 = 8 hr ✓ 1,800,000 ms → 1.8 ÷ 3.6 = 0.5 hr = 30 min ✓Common constants every developer should know: const ONE_HOUR_MS = 3_600_000; const ONE_DAY_MS = 86_400_000; // 24 × ONE_HOUR_MS const ONE_WEEK_MS = 604_800_000; // 168 × ONE_HOUR_MS const ONE_MINUTE_MS = 60_000; // ONE_HOUR_MS / 60 const ONE_SECOND_MS = 1_000; // ONE_HOUR_MS / 3600

Hours to Milliseconds: SLA Uptime and the Cost of Downtime

Service Level Agreements (SLAs) express uptime as a percentage of hours, but infrastructure teams track actual downtime in milliseconds. Converting between the two requires hours × 3,600,000:

SLA tier Uptime % Downtime/year (hours) Downtime/year (ms) Three 9s 99.9% 8.766 hr 31,557,600 ms Four 9s 99.99% 0.8766 hr 3,155,760 ms Five 9s 99.999% 0.08766 hr 315,576 ms Six 9s 99.9999% 0.008766 hr 31,558 msBreakdown of Five 9s (99.999%) downtime budget per year: Total: 315,576 ms = 5 min 15.576 sec Per month: 315,576 ÷ 12 = 26,298 ms ≈ 26 seconds/month Per week: 315,576 ÷ 52 = 6,069 ms ≈ 6 seconds/week Per day: 315,576 ÷ 365 = 864 ms per day (less than 1 second!)Real cost of downtime: Amazon: ~$220,000/min of downtime = $3,667/sec = $3.667/ms Netflix: ~$900,000/hr = $250/ms Financial exchange: $100,000–$1,000,000/hr = $28–$278/ms

Hours to Milliseconds: setTimeout, setInterval and the JS Timer Landscape

JavaScript timers are always specified in milliseconds, but developers think in hours and minutes. This conversion is used in every frontend and Node.js application:

Common timer values (hours → milliseconds): 1 minute = 0.01667 hr = 60,000 ms → setTimeout(fn, 60000) 5 minutes = 0.0833 hr = 300,000 ms → auto-save interval 15 minutes = 0.25 hr = 900,000 ms → session timeout warning 30 minutes = 0.5 hr = 1,800,000 ms → session expiry 1 hour = 1 hr = 3,600,000 ms → token refresh 8 hours = 8 hr = 28,800,000 ms → workday session 24 hours = 24 hr = 86,400,000 ms → daily cleanup jobsetTimeout limit: 2,147,483,647 ms = 596.52 hours = 24.855 days → Any setTimeout over 596 hours (24.8 days) silently fires immediately! Use Date comparison for delays beyond 596 hours.setInterval drift: each interval drifts by 0–4 ms per execution. Over 1 hour (3,600,000 ms) with 1ms interval: 3,600,000 calls × up to 4 ms drift = up to 14,400,000 ms (4 hours!) error. Use Date.now() anchoring for precision over multi-hour intervals.

Hours to Milliseconds: Frame Budgets, Video and Real-Time Rendering

Every hour of video, game, or real-time rendering is a precise number of milliseconds divided into frame budgets. This is where hours and milliseconds meet most viscerally in engineering:

Frame rate Frame budget Frames per hour Total ms/hour 24 fps 41.667 ms/frame 86,400 frames 3,600,000 ms 30 fps 33.333 ms/frame 108,000 frames 3,600,000 ms 60 fps 16.667 ms/frame 216,000 frames 3,600,000 ms 90 fps 11.111 ms/frame 324,000 frames 3,600,000 ms 120 fps 8.333 ms/frame 432,000 frames 3,600,000 ms 144 fps 6.944 ms/frame 518,400 frames 3,600,000 ms 240 fps 4.167 ms/frame 864,000 frames 3,600,000 msKey insight: regardless of frame rate, 1 hour = 3,600,000 ms. The frame budget is simply 3,600,000 ÷ fps milliseconds.A 2-hour film at 24 fps = 7,200,000 ms = 172,800 frames. Each frame must render in ≤41.667 ms or a dropped frame occurs. Every dropped frame = 41.667 ms of viewer experience lost.

Hours to Milliseconds: Financial Trading and the Time-Value of a Millisecond

High-frequency trading (HFT) operates at microsecond precision, but trading sessions are measured in hours. The conversion between these scales determines competitive advantage:

  • NYSE trading session: 6.5 hours × 3,600,000 = 23,400,000 ms per trading day. Each millisecond of that session is a potential transaction window for HFT algorithms
  • Latency advantage: A 1 ms latency advantage over a competitor, repeated across 23,400,000 ms/day, provides 23,400 potential first-execution windows per day. Over a 252-day trading year: 5,896,800 windows
  • Co-location arms race: Moving a trading server 1 km closer to the exchange reduces latency by ~3.3 µs = 0.0033 ms. Over 23,400,000 ms/day: 0.0033 ms ÷ 23,400,000 ms = 0.00000000014% of the trading day per km of proximity. Yet firms spend millions on single-digit microsecond gains
  • Flash crashes: The 2010 Flash Crash (May 6, 2010) saw the Dow drop 1,000 points in ~36 minutes = 2,160,000 ms and recover in another 36 minutes. The entire crash-recovery cycle: 72 minutes = 4,320,000 ms
  • Romanian stock exchange (BVB): Trading session 10:00–17:30 = 7.5 hours = 27,000,000 ms. Equities clearing T+2: 2 days × 24 hours × 3,600,000 = 172,800,000 ms to settle

Hours to Milliseconds: MRI, Medical Imaging and Clinical Precision

  • MRI scan duration: A full-body MRI takes 45–90 minutes = 2,700,000–5,400,000 ms. Each slice acquisition within the scan can take as little as 1 ms (EPI sequences). A 60-minute (3,600,000 ms) scan may acquire thousands of slices, each timed to the millisecond
  • Echo time (TE) and repetition time (TR): MRI contrast is controlled by TE (typically 5–120 ms) and TR (50–5,000 ms). A 1-hour scan (3,600,000 ms) with TR = 2,000 ms performs 3,600,000 ÷ 2,000 = 1,800 repetitions
  • CT scan speed: Modern CT scanners acquire a full chest CT in <1 second = <1,000 ms. A 4-hour CT session with 30 patients: 14,400,000 ms total, yet each scan itself = <1,000 ms
  • Cardiac timing: The heart cycle (at 75 bpm) = 800 ms. In 1 hour (3,600,000 ms): 4,500 heartbeats. Cardiac MRI must synchronise acquisition to the R-wave within ±5 ms to avoid motion blur
  • Romanian Hospital Protocols (DSP): SMURD response time target: <8 minutes = <480,000 ms for urban response. Emergency surgery "golden period": 60 minutes = 3,600,000 ms from presentation. ICU monitoring: continuous EEG sampling at 256 Hz = 3.9 ms per sample, 921,600,000 samples per hour

Hours to Milliseconds: History, Events and Human Time at ms Resolution

Event / Period Hours exact Milliseconds World War I (1,567 days) 37,608 hr 135,388,800,000 ms World War II (2,193 days) 52,632 hr 189,475,200,000 ms Stefan cel Mare reign 413,928 hr 1,490,140,800,000 ms Romanian communism 367,992 hr 1,324,771,200,000 ms Romania modern state 1,456,200 hr 5,242,320,000,000 ms Marea Unire → today 931,560 hr 3,353,616,000,000 ms Post-communism (1989–2025) 308,664 hr 1,111,190,400,000 msNotable hour-length events in history: Battle of Waterloo (~12 hr): 43,200,000 ms Apollo 11 lunar EVA (2.5 hr): 9,000,000 ms Titanic sinking (2 hr 40 min): 9,600,000 ms Cuban Missile Crisis (13 days): 1,123,200,000 ms Longest tennis match (11 hr): 39,600,000 ms

Tips and Recommendations

  • Formula: Milliseconds = Hours × 3,600,000. Inverse: Hours = Milliseconds ÷ 3,600,000. Exact integer for all integer or quarter-hour inputs.
  • In JavaScript: const ms = hours * 3600000;. Declare as constant: const ONE_HOUR_MS = 3_600_000;. Hours ago: Date.now() - hours * 3600000. Hours since event: (Date.now() - eventMs) / 3600000
  • In Python: ms = hours * 3_600_000. From timedelta: delta.total_seconds() * 1000 then note total_seconds includes hours. Hours from ms: ms / 3_600_000
  • In Excel: =A1*3600000. Hours between dates: =(B1-A1)*24. Hours to ms from dates: =(B1-A1)*24*3600000. If cell contains time (fraction of day): =A1*86400000 (days × ms/day)
  • setTimeout trap: Max safe setTimeout = 2,147,483,647 ms = 596.52 hours. Never use setTimeout for delays longer than ~596 hours — it will fire immediately. Use recurring setInterval or Date comparison instead
  • Quick check: 1 hr = 3.6M ms. Divide your ms by 3.6 million to get hours. A number ending in 6 zeros is likely a round number of hours (3,600,000 = 1 hr; 36,000,000 = 10 hr; 3,600,000,000 = 1,000 hr)

Hours to Milliseconds — Frequently Asked Questions

How many milliseconds are in 1 hour?

1 hour = exactly 3,600,000 milliseconds (60 × 60 × 1,000 = 3,600,000). This is an exact integer with zero rounding error. Every whole or fractional hour (quarter, half, third) also gives an exact integer number of milliseconds.

How many milliseconds are in 8 hours?

8 × 3,600,000 = 28,800,000 milliseconds. This is the standard workday in milliseconds — every cookie with maxAge: 28800 seconds (= 28,800,000 ms) expires after exactly 1 workday.

How many milliseconds are in 24 hours?

24 × 3,600,000 = 86,400,000 milliseconds = exactly 1 day. This is the most commonly used constant in web development: 86400000 is "1 day in milliseconds" for cookies, JWT expiry, and cache headers.

How many hours is 3,600,000 milliseconds?

3,600,000 ÷ 3,600,000 = 1 hour exactly. 3,600,000 ms is the canonical constant for "one hour" in all programming languages.

How many hours is 1,000,000 milliseconds?

1,000,000 ÷ 3,600,000 = 0.2778 hours = 16 minutes 40 seconds. 1 million milliseconds is slightly less than a quarter of an hour.

What is the maximum setTimeout value in hours?

2,147,483,647 ms ÷ 3,600,000 = 596.52 hours ≈ 24.855 days. Any setTimeout with a delay longer than 596 hours fires immediately due to 32-bit integer overflow.

How do I convert hours to milliseconds in JavaScript?

const ms = hours * 3600000;. As a named constant: const ONE_HOUR_MS = 3_600_000;. Hours ago: Date.now() - hours * 3600000. Hours since event: (Date.now() - eventMs) / 3600000.

How do I convert hours to milliseconds in Excel?

=A1*3600000. From date-time cells (stored as days): =A1*86400000. Hours between two dates: =(B1-A1)*24 then × 3600000.

How many milliseconds is a 99.99% SLA in hours per year?

Four 9s (99.99%) allows 0.8766 hours = 3,155,760 milliseconds of downtime per year ≈ 52 minutes 36 seconds. Per month: ~263,000 ms = ~4 minutes 23 seconds of allowed downtime.

How many frames are in 1 hour at 60 fps in milliseconds?

1 hour = 3,600,000 ms. At 60 fps, each frame takes 1000/60 = 16.667 ms. Total frames: 3,600,000 ÷ 16.667 = 216,000 frames per hour. Each frame has a budget of 16.667 ms.

Why is 3,600,000 used everywhere in programming?

Because it bridges the two most common time units in software: hours (human planning) and milliseconds (machine execution). Every language's Date API uses milliseconds internally, and most human-meaningful durations (sessions, caches, alerts) are specified in hours. 3,600,000 is the exact, integer conversion constant between them.

How many milliseconds is the golden hour in medicine?

The "golden hour" in trauma care = 60 minutes = 3,600,000 milliseconds from injury to definitive treatment. Every 3,600 milliseconds (1 second) within this window matters for patient outcomes.