Hours Between Times

Calculate the exact hours and minutes between two times or datetimes.

How to Calculate Hours Between Times

Enter a start date and time and an end date and time on daycalctools.com, then click Calculate. The tool instantly shows the difference expressed in hours and minutes, and also converts the total to days (as a decimal), total minutes, and total seconds. The calculation works across midnight and across multiple days.

The calculator computes the absolute difference between the two timestamps in milliseconds, then converts that to human-readable units. It handles cases where the end time is earlier than the start time by always returning the positive difference, so the order you enter the times does not matter.

When Do You Need to Calculate Hours Between Times?

Precise time duration calculations are useful in many professional and personal contexts:

  • Shift work and timesheets — Calculate the exact number of hours worked in a shift to submit an accurate timesheet or invoice.
  • Freelance billing — Determine billable hours between project start and end times for client invoicing.
  • Overtime calculation — Find out how many hours beyond the standard workday or week an employee has worked.
  • Travel time — Calculate how long a flight, road trip, or train journey takes from departure to arrival.
  • Study and focus sessions — Track how many hours were spent studying or working on a project.
  • Medical and clinical contexts — Calculate the duration of a procedure, hospital stay, or medication interval in precise hours and minutes.
  • Event planning — Calculate how long an event, conference session, or sports match lasted.

Frequently Asked Questions

Can I calculate hours across midnight?
Yes. The tool uses full date-time inputs (not just time), so it correctly handles spans that cross midnight or span multiple days. For example, if a shift starts at 10 PM on one day and ends at 6 AM the next morning, the tool will correctly return 8 hours.
What is the precision of the calculation?
The input fields accept hours and minutes (to the nearest minute). The calculation is precise to the second level once the total is computed from the millisecond difference between the two timestamps. The total seconds output reflects this full precision.
Does it handle different time zones?
This tool treats both times as being in the same time zone (your local device time zone). If you need to calculate the duration between two times in different time zones, first use the Time Zone Converter to convert one time to match the other, then use this tool.
What does the "days" decimal mean in the result?
The days value is the total duration expressed as a decimal fraction of one day (24 hours). For example, 12 hours would show as 0.50 days, and 36 hours would show as 1.50 days. This is useful in contexts where fractional days are used for billing or scheduling.
Can this tool replace a timesheet calculator?
For simple single-shift calculations, yes. Enter your clock-in time and clock-out time and the tool will show the exact hours and minutes worked. For multi-shift weekly timesheet calculations with lunch breaks, you would need to run separate calculations for each shift and add the results together.