Time Duration Calculator – Hours Between Two Times
Find the exact hours and minutes between any two times. This free time duration calculator handles overnight shifts automatically and can deduct your break for true working hours.
Calculate Duration
| In decimal hours | – |
| In minutes | – |
| Overnight? | – |
How to Use the Time Duration Calculator
Pick your start time and end time using the time pickers, then press Calculate Duration. The result shows the duration as hours and minutes, as decimal hours (useful for timesheets and billing), and as total minutes. If your end time is earlier than your start time — say 10:00 PM to 6:00 AM — the calculator assumes an overnight shift and adds 24 hours rather than giving you a negative answer.
The optional break field deducts unpaid time: enter 60 for a one-hour lunch and the result is your true working time. The break can never equal or exceed the total shift — the tool will tell you if it does.
How the Calculation Works
Both times are converted to minutes since midnight, then subtracted. The overnight rule is the only subtlety:
So 22:00 to 06:00 becomes (360 − 1,320) + 1,440 = 480 minutes = 8 hours. A 30-minute break then gives 7 h 30 min net, or 7.50 decimal hours. Decimal hours are what payroll systems want: 7.5 × hourly rate is trivial, while 7 h 30 min × rate invites arithmetic slips.
Worked Example
A security guard works 10:00 PM to 6:00 AM with a 30-minute break:
| Step | Calculation | Result |
|---|---|---|
| 1. Start in minutes | 22 × 60 | 1,320 |
| 2. End in minutes | 6 × 60 | 360 |
| 3. Overnight adjustment | (360 − 1,320) + 1,440 | 480 min = 8 h |
| 4. Deduct break | 480 − 30 | 7 h 30 min |
| 5. Decimal hours | 450 ÷ 60 | 7.50 hours |
At $25/hour, that shift pays 7.5 × 25 = $187.50. Without the overnight rule, step 3 would have produced −960 minutes — the classic error this calculator exists to prevent.
Shift-Work and Overtime Examples — Beyond the Basics
| Scenario | Times | Result |
|---|---|---|
| Office day with lunch | 9:00 AM – 6:00 PM, 60-min break | 8 h (9 h − 1 h) |
| Night factory shift | 10:00 PM – 6:00 AM, 30-min break | 7 h 30 min |
| Split restaurant shift | 11:00 AM – 3:00 PM + 7:00 PM – 11:00 PM | 8 h (run the tool twice, add) |
| Overtime check | 8:00 AM – 8:00 PM, 60-min break | 11 h → 3 h overtime over an 8-h day |
Two practical tips. First, split shifts: calculate each block separately and add the results — the tool handles one continuous block at a time. Second, overtime disputes: screenshot or note the decimal-hours figure each week; "7.50 hours × 6 days = 45 hours" is unambiguous in a way "about seven and a half" is not, and it matches how most payroll software records time.
Limitations
The calculator assumes a single continuous block of at most 24 hours — multi-day durations belong in the date difference calculator. It does not know about public holidays, weekends or different overtime rates; it gives you hours, and your pay rules turn hours into dollars. Time inputs have minute precision, so seconds are ignored. The tool uses plain clock arithmetic, so daylight-saving transitions — which most US states observe — are not modeled: durations measured across a spring-forward or fall-back change won't be adjusted for the lost or gained hour.
Knowing how long something took is half of digital hygiene; knowing what you exposed while doing it is the other half. The Social Privacy Checkup audits what your social profiles reveal to strangers — a ten-minute review worth scheduling like any other recurring task.
Guides for This Tool
Frequently Asked Questions
How do I calculate hours between two times?
How does the calculator handle overnight shifts?
How do I subtract a lunch break?
What is 8:30 AM to 5:00 PM in hours?
How do I convert the result to decimal hours?
Can a shift be longer than 24 hours?
Related Tools
Stain Removal Guide
Free interactive stain removal guide: pick from 40 common stains and your fabric type for step-by-step removal…
WhatsApp Chat Analyzer — Free Chat Stats
Analyze any WhatsApp chat export (.txt) free: message stats, busiest hours, top words, emojis and per-person…
WhatsApp Wrapped — Year in Review
Your WhatsApp chats, Wrapped-style: story cards with awards for most messages, longest streak, night owl, emoji…
Sign PDF Free — Electronic Signature Online
Sign any PDF in your browser: draw, type or upload your signature and place it on the document. Free, unlimited…
Freezer Inventory Tracker
Free freezer inventory tracker: log everything you freeze, get USDA-based use-by dates, auto-flag items to use soon…
Overshare Checker
Paste text before you post: Overshare Checker finds emails, phone numbers, SSNs, credit cards, API keys and addresses —…