Hours Calculator
Calculate hours worked between a start and end time, with optional breaks and pay.
Enter times
Result
Calculating worked hours and pay
This calculator converts your start and end clock times into total minutes since midnight, subtracts to find the elapsed minutes, then converts back to hours and minutes for a readable result. If your end time is earlier than your start time — say a night shift running from 22:00 to 06:00 — the calculator automatically assumes the shift crosses midnight and adds 24 hours before subtracting, rather than returning a negative or nonsensical duration.
Unpaid breaks (lunch, rest periods) are subtracted from the raw elapsed time before the final total is shown, matching how most payroll systems calculate billable or worked hours. The result is shown two ways: as hours and minutes (e.g. "7h 30m") for quick reading, and as a decimal (e.g. "7.50 h") because decimal hours are what most payroll and invoicing software expects when you're entering time for pay calculations.
If you enter an hourly rate, the calculator multiplies the decimal hours by that rate to estimate pay for the shift — useful for freelancers, hourly employees checking a paycheck, or anyone budgeting gig-work income. Keep in mind this is a straightforward multiplication and doesn't account for overtime rules, shift differentials, or tax withholding, which vary by employer and jurisdiction — treat the pay estimate as a starting point for your own records, not a substitute for an official timesheet or payslip.
Frequently asked questions
How does the calculator handle overnight shifts? If your end time is earlier than your start time, it assumes the shift crosses midnight and adds a full day automatically, so a 10 PM–6 AM shift correctly comes out to 8 hours.
Does it account for unpaid breaks? Enter your break length in the break field and it will be subtracted from the total worked time before pay is calculated, so lunch breaks don't inflate your hours.
Can I use this for overtime pay? The base calculation gives straight-time pay at your entered rate; for overtime, calculate regular and overtime hours separately using two runs of the calculator at the appropriate rates.
Worked example
Clocking in at 8:15 AM and out at 4:45 PM, minus a 30-minute unpaid lunch, gives 8 hours 0 minutes worked — the calculator takes the raw span (8h 30m) and subtracts the break automatically.
Is this useful for payroll? Yes — it's commonly used to total hourly-worker shifts before multiplying by an hourly rate, though always check your employer's specific rounding rules (some round to the nearest quarter-hour).
What if I work overnight, crossing midnight? Enter the clock-out time as being on the “next day” if your interface allows it, or calculate the two segments (before and after midnight) separately and add them together.