Time & Date Tools

Hour Difference Calculator

Calculate hours and minutes between two times, total work hours with breaks, weekly time card totals, overnight shift duration, pay earned from hours worked, and time-to-decimal conversion — with full step-by-step working.

5 Calculation Modes
Overnight Shifts
Weekly Time Card
Pay from Hours
100% Free

Hour Difference Calculator

Enter your times — get hours, minutes, decimals, pay earned, and a full visual breakdown

days
Supports overnight shifts automatically — if end time is before start time, one day is added. Use Extra Days for shifts spanning 2+ days. Input uses 24-hour format (e.g. 17:00 = 5:00 PM).
9 AM – 5 PM (8 hrs)
8:30–5:30 (9 hrs)
Night shift 10PM–6AM
7:45–4:15 PM
Near full day
⏱️ TIME DIFFERENCE
Time Summary
Step-by-Step Calculation
Context & Notes
All Time Representations
Full Details
    Share Result

    Complete Time Calculation Formula Reference — Every Formula with Examples

    All formulas for hours, minutes, decimals, overtime, and pay — with worked examples

    CalculationFormulaExample
    Time DifferenceEnd Minutes − Start Minutes17:30 − 09:00 = 510 min = 8h 30m
    Overnight Shift(End + 1440) − Start22:00→06:00: (360+1440)−1320 = 480 min = 8h
    Net Work (with break)Total Elapsed − Break Minutes9h total − 30 min lunch = 8h 30m net
    Decimal HoursHours + (Minutes ÷ 60)7h 45m = 7 + 45÷60 = 7.75 hrs
    Minutes to H:M⌊min÷60⌋h + (min mod 60)m510 min = ⌊510÷60⌋ = 8h, 510 mod 60 = 30m = 8h 30m
    Regular PayRegular Hours × Hourly Rate40 hrs × $22.50 = $900.00
    Overtime PayOT Hours × Rate × Multiplier8 hrs × $25 × 1.5 = $300.00
    Weekly OT (FLSA)Total Hours − 40 = OT Hours48 hrs − 40 = 8 OT hrs
    Annual SalaryHourly Rate × 40 × 52$25/hr × 2,080 hrs = $52,000/yr
    Hourly from SalaryAnnual Salary ÷ 2,080$62,400 ÷ 2,080 = $30.00/hr
    Daily PayHourly Rate × Daily Hours$18 × 8.5 hrs = $153.00/day
    Hours to DaysTotal Hours ÷ 2436 hrs ÷ 24 = 1.5 days

    Time Calculation Essentials — Everything You Need to Know About Work Hours

    Time formats, decimal conversion, overtime rules, shift types, and payroll compliance explained

    Calculating hours between two times is fundamentally simple — but becomes complex in real-world scenarios involving overnight shifts, lunch breaks, multiple days, and overtime thresholds. The foundation is always the same: convert both times to a common unit (minutes since midnight), subtract, then convert back to hours and minutes.

    The decimal hour format is essential for payroll. Because time-keeping software, spreadsheets, and pay stubs use decimal numbers (not hours:minutes), converting correctly is critical. The rule: divide minutes by 60. So 7 hours 30 minutes = 7.5 hours (not 7.30 — a common, costly mistake).

    ⚠️ Most common time calculation mistake: treating 7h 30m as 7.30 decimal hours instead of 7.50. At $25/hour over a year (52 weeks × 5 days), this error adds up to $2,600 in underpaid wages. Always divide minutes by 60, not just append them as decimals.
    🌙
    Overnight Shifts Explained
    When end time is earlier than start time, the shift crosses midnight. Add 24 hours (1440 minutes) to the end time before subtracting. Example: 10:00 PM (22:00) to 6:00 AM = (6:00 + 24:00) − 22:00 = 30:00 − 22:00 = 8 hours. Most time calculation errors with overnight shifts stem from forgetting this step.
    Paid vs Unpaid Breaks
    Under the FLSA, short rest breaks of 5–20 minutes must be paid. Meal breaks of 30+ minutes where the employee is fully relieved of duties are generally unpaid. Many time cards subtract only unpaid meal breaks from total hours. Check your employer's policy — some pay all breaks, some pay short breaks only, and some (incorrectly) deduct all breaks. State laws may add additional requirements.
    📊
    Overtime Thresholds by Region
    US Federal (FLSA): OT after 40 hrs/week at 1.5×. California: OT after 8 hrs/day AND after 40 hrs/week; double time after 12 hrs/day. Canada: varies by province (typically 44 hrs/week). UK: no legal OT rate — contractual only. EU: max 48 hrs/week (Working Time Directive). Australia: varies by award/agreement, typically 38 hrs/week. Always check local law.
    🗓️
    Annual Hours by Work Pattern
    Full-time (5×8): 40 hrs/wk × 52 = 2,080 hrs/yr. Part-time (5×4): 20 hrs/wk × 52 = 1,040 hrs/yr. 4-day week (4×9): 36 hrs/wk × 52 = 1,872 hrs/yr. Compressed (4×10): 40 hrs/wk × 52 = 2,080 hrs/yr. Accounting for US holidays (~10 days) and 2 weeks vacation reduces billable hours to ~1,880/yr. Freelancers often calculate rates on 1,800 billable hours.

    Minutes to Decimal Hours Conversion Table — All 60 Minutes

    Quick reference for converting any minutes value to its decimal hour equivalent

    MinutesDecimal HrsFraction
    MinutesDecimal HrsFraction
    💡 Quick formula: Decimal Hours = Hours + (Minutes ÷ 60). Remember: 30 min = 0.50, 15 min = 0.25, 45 min = 0.75. These are the most common — memorise them for quick mental calculations.

    8 Time & Work Hours Facts, Tips & Strategies Every Worker Should Know

    Practical insights on time tracking, overtime, scheduling, and maximising accuracy

    💸
    The Decimal Mistake That Costs Billions

    Studies estimate that time-rounding and decimal conversion errors cost US workers billions annually in lost wages. The most common: recording 7:30 hours as 7.30 instead of 7.50. Over a year, this 0.20-hour daily error at $20/hour = $1,040 in underpaid wages. Always use the Hours + (Minutes÷60) formula. For payroll software, verify by multiplying decimal hours × 60 to confirm the minutes match.

    📱
    Time Rounding Rules in Payroll

    The FLSA permits employers to round employee time to the nearest 5, 6, or 15 minutes — but only if rounding is neutral over time (as many rounds up as down). The most common is "rounding to the nearest quarter hour": 1–7 minutes rounds down, 8–14 rounds up to the next 15 minutes. If an employer consistently rounds down, this is a wage violation. Track your own exact hours and compare to your pay stub to catch systematic under-rounding.

    🌙
    Night Shift Differential Pay

    Many employers pay a shift differential — extra pay (typically 10–20%) for working evenings or nights. Federal workers under the FLSA are not automatically entitled to shift differentials, but many collective bargaining agreements and employer policies require them. Common differentials: Evening (3–11 PM): +10–15%, Night (11 PM–7 AM): +15–25%, Weekend nights: +20–30%. Calculate your total pay by multiplying your differential hours by your adjusted rate.

    📋
    Why Accurate Time Cards Matter

    Time card accuracy is a two-way street. Under-recording hours is a form of wage theft against yourself. Over-recording is a policy violation and can result in termination. The FLSA requires employers to keep records of hours worked for at least 2 years. Best practices: record start and end times (not just hours worked), note break times separately, and review your pay stub every period. Discrepancies should be reported immediately — the statute of limitations is 2–3 years.

    The 4-Day Workweek and Hours

    The 4-day workweek can be structured two ways: Compressed (4×10) — same 40 hours over 4 days (still triggers OT after 40hrs/week under FLSA). Reduced (4×8 or 4×9) — fewer total hours. Microsoft Japan's trial of a 4-day, 32-hour week showed 40% productivity gains. Iceland's trials of 35–36 hour weeks showed maintained or improved performance with better well-being. Hour calculation remains the same — just with a different weekly total.

    🔢
    Converting Between Time and Salary

    The standard full-time equivalent is 2,080 hours/year (40 hrs × 52 weeks). To convert: Hourly → Annual: ×2,080. Annual → Hourly: ÷2,080. Quick estimates: $10/hr = $20,800/yr. $20/hr = $41,600/yr. $50,000/yr ÷ 2,080 = $24.04/hr. $100,000/yr ÷ 2,080 = $48.08/hr. Note: these are gross figures before any taxes or benefits deductions.

    🌍
    Global Work Hours by Country

    Average annual hours worked varies dramatically worldwide. Highest: Mexico ~2,128 hrs, South Korea ~1,901 hrs, US ~1,811 hrs. Lowest: Germany ~1,349 hrs, Netherlands ~1,427 hrs, Norway ~1,427 hrs. The difference between the US and Germany is ~462 hours/year — nearly 12 full 40-hour work weeks. Productivity per hour, however, often trends inversely — countries with fewer hours frequently show higher output per hour worked.

    Tracking Billable Hours as a Freelancer

    Freelancers typically use one of three billing models: Hourly — track exact time with apps (Toggl, Harvest, Clockify). Project-based — estimate hours upfront, track to ensure profitability. Retainer — fixed monthly fee for a set number of hours. Best practice: log time in 15-minute increments, track all client communication time (not just "work" time), and review weekly utilisation (billable hours ÷ total hours worked × 100). 75–85% utilisation is a healthy target for a solo freelancer.

    How to Use This Hour Difference Calculator — All 5 Modes Explained

    Step-by-step guide to every calculation mode with tips on getting accurate results

    • 1
      Basic Mode — Hours Between Any Two Times

      Enter a start time and end time using the time pickers (24-hour format). The calculator handles overnight shifts automatically — if end time is earlier than start time, it assumes the shift crosses midnight and adds 24 hours. For shifts spanning more than one full calendar day, enter the number of extra days. The result shows hours and minutes, decimal hours, total minutes, and total seconds. The visual clock display shows start → duration → end at a glance.

    • 2
      With Break Mode — Net Work Hours After Deducting Breaks

      Enter shift start, shift end, lunch break duration, and any additional breaks (all in minutes). The calculator computes total elapsed time, total break time, and net work time (elapsed − breaks). Optionally enter your hourly rate to see how much you earned during the net work period. The timeline bar chart visually shows work time vs break time as proportions of the total shift.

    • 3
      Time Card Mode — Full Weekly Hours & Overtime

      Enter start time, end time, and break minutes for each day of the week. Daily hours update live as you type. The weekly total automatically shows regular hours, overtime hours (above the threshold you set), total pay (if rate entered), and overtime premium pay. Click the example presets to instantly fill a standard week, 4-day week, or an overtime week to see how the calculations work before entering your own data.

    • 4
      Pay Mode — Earnings from Hours Worked

      Enter hours worked, any extra minutes, your hourly rate, overtime hours (out of the total), and the overtime multiplier. The calculator computes regular pay, overtime premium pay, total gross pay, and derived annual salary equivalent. Particularly useful for verifying a paycheck — enter exactly what your time card shows and compare to what you were paid. The step-by-step working shows each calculation clearly.

    • 5
      Convert Mode — Time Format Conversion (Live)

      All four fields (hours, minutes, decimal hours, total minutes) update instantly as you type in any field. This is the fastest way to convert between formats — type a decimal like 8.75 and instantly see it's 8 hours 45 minutes. Or type 510 minutes and see 8 hours 30 minutes and 8.5 decimal hours simultaneously. The result section also shows days, seconds, and milliseconds for completeness.

    Hour Difference Calculator — Frequently Asked Questions

    Expert answers to the most commonly searched time calculation questions

    How do I calculate hours between two times?
    Convert both times to minutes since midnight (hours × 60 + minutes), then subtract: Total Minutes = End Minutes − Start Minutes. If the result is negative (overnight shift), add 1440 (24 hours × 60). Divide by 60 for decimal hours, or use ÷60 for the hours part and mod 60 for the remaining minutes. Example: 9:15 AM to 5:45 PM = (17×60+45) − (9×60+15) = 1065 − 555 = 510 minutes = 8 hours 30 minutes = 8.50 decimal hours.
    How do I convert minutes to decimal hours?
    Divide the minutes by 60 and add to the hours: Decimal = Hours + (Minutes ÷ 60). Examples: 7h 30m = 7.500, 8h 15m = 8.250, 6h 45m = 6.750, 4h 20m = 4.333, 9h 50m = 9.833. Common fractions: 15 min = 0.25, 20 min = 0.333, 30 min = 0.50, 40 min = 0.667, 45 min = 0.75. To verify, multiply the decimal part by 60 to get back the minutes. Critical warning: 7h 30m ≠ 7.30 hours. This is the most common payroll mistake — always divide minutes by 60.
    How do I calculate an overnight shift?
    For any shift where the end time is before the start time, add 24 hours to the end time: Duration = (End Time + 24:00) − Start Time. Example: Night shift 10:00 PM to 6:00 AM = (06:00 + 24:00) − 22:00 = 30:00 − 22:00 = 8 hours. In minutes: (360 + 1440) − 1320 = 1800 − 1320 = 480 minutes = 8 hours. This calculator handles overnight shifts automatically — simply enter the times as-is and it detects when the shift crosses midnight.
    How do I calculate hours worked per week with overtime?
    Add up daily hours for all days worked. If total exceeds 40 hours (US FLSA), the excess is overtime. Regular hours = min(total, 40). OT hours = max(0, total − 40). Regular Pay = Regular Hours × Rate. OT Pay = OT Hours × Rate × 1.5. Total Pay = Regular + OT. Example: 42 hours at $20/hour = (40 × $20) + (2 × $20 × 1.5) = $800 + $60 = $860. California additionally requires daily overtime after 8 hours per day and double time after 12 hours per day.
    What is the standard number of working hours per year?
    The standard full-time annual hours in the US is 2,080 hours (40 hours/week × 52 weeks). However, after accounting for paid holidays (~10 days = 80 hours) and typical vacation (10 days = 80 hours), actual hours worked are closer to 1,920 hours. Freelancers and consultants typically plan for 1,800 billable hours/year to account for non-billable administration, business development, and downtime. To convert hourly rate to annual: multiply by 2,080. To convert annual salary to hourly: divide by 2,080.
    How do I calculate break time from total hours?
    Net Work Hours = Total Elapsed Time − Total Break Time. Convert breaks to decimal hours first: 30 min = 0.50h, 45 min = 0.75h, 60 min = 1.00h. Example: Shift 8:00 AM to 5:30 PM (9.5 hours elapsed) − 45 min lunch (0.75h) − 15 min break (0.25h) = 9.5 − 1.0 = 8.5 net work hours. Under FLSA, short breaks under 20 minutes are paid, so they should NOT be deducted. Only deduct unpaid meal breaks (typically 30+ minutes where employee is fully relieved).
    How do I calculate pay from hours and minutes?
    First convert hours and minutes to decimal hours: Decimal = Hours + (Minutes ÷ 60). Then multiply by the hourly rate. Example: 7 hours 45 minutes = 7.75 decimal hours. At $22/hour: 7.75 × $22 = $170.50. For overtime: Regular Pay = min(total decimal hours, 40) × rate. OT Pay = max(0, total − 40) × rate × 1.5. Add both for total gross pay. Always use the decimal hours representation for any multiplication involving money — never multiply hours and minutes separately.
    What is the difference between elapsed time and work time?
    Elapsed time is the total clock time from when you arrived to when you left — including all breaks. Work time (or net work time) is the elapsed time minus any unpaid break periods. Elapsed: 8:00 AM to 5:00 PM = 9 hours. Work time after 30 min unpaid lunch: 8.5 hours. Payroll systems track work time for pay purposes. Time tracking apps like Toggl often track elapsed time and let you assign time to break categories. For payroll, ensure you are recording and being paid for work time, not elapsed time minus any additional deductions your employer shouldn't be taking.