Skip to main content
22 tools

Hours Calculator - Calculate Hours Between Two Times Online Free

Calculate exact time duration between two times. Hours and minutes, total minutes, and decimal hours. Handles overnight ranges.

Try the Tool
100% Free No Sign-up Instant Results Privacy First
Calculator
About This Tool

What Is an Hours Calculator?

An hours calculator is a tool that computes the exact time duration between a start time and an end time. Whether you are tracking work hours, planning meetings, calculating payroll, or estimating travel duration, this tool gives you precise results in three formats: hours and minutes, total minutes, and decimal hours.

Unlike simple clock subtraction that you might do mentally, the hours calculator handles edge cases automatically. Overnight ranges (where the end time falls on the next day), midnight crossing, and minute-level precision are all computed correctly without any special input from you.

How Does the Hours Calculator Work?

The calculator uses standard time arithmetic to compute the duration between two times. Here is the process:

  1. Time parsing — The tool reads the start and end times you entered, including hours, minutes, and AM/PM designation.
  2. 24-hour conversion — Both times are converted to a 24-hour format for easier comparison. For example, 2:30 PM becomes 14:30.
  3. Duration calculation — The tool subtracts the start time from the end time. If the end time is smaller (overnight range), it adds 24 hours before subtracting to get the correct positive duration.
  4. Output conversion — The raw duration is then expressed in three formats: hours and minutes, total minutes, and decimal hours.

For example, a shift from 7:00 AM to 3:30 PM produces: 8 hours 30 minutes, 510 total minutes, and 8.5 decimal hours.

Output Formats Explained

  • Hours and Minutes — The traditional format showing whole hours and remaining minutes (e.g., "8 hours and 30 minutes"). Best for general communication and scheduling.
  • Total Minutes — The entire duration expressed as a single number of minutes (e.g., "510 minutes"). Useful for granular time tracking and scientific calculations.
  • Decimal Hours — The duration expressed as a decimal number (e.g., "8.5 hours"). The standard format for payroll systems, timesheet software, and billing calculations.

Understanding Overnight Ranges

An overnight range occurs when the end time is earlier than the start time, indicating the duration crosses midnight. Common examples include:

  • Night shifts: 10:00 PM to 6:00 AM = 8 hours
  • Late work sessions: 11:00 PM to 2:00 AM = 3 hours
  • Early morning flights: 1:30 AM to 5:45 AM = 4 hours 15 minutes

The calculator detects this automatically and adds 24 hours to the end time before performing the subtraction, so you never need to manually account for midnight crossing.

How to Use This Tool

  1. Enter the start time — Use the Hour, Minute, and AM/PM selectors under "Start Time" to enter when the activity began.
  2. Enter the end time — Use the Hour, Minute, and AM/PM selectors under "End Time" to enter when the activity ended.
  3. Click Calculate — The tool instantly displays the duration in hours and minutes, total minutes, and decimal hours.

For date-based calculations (counting days between two dates), try our Days Calculator.

Use Cases

Freelancer Time Tracking

Freelancers and consultants bill clients by the hour. Use the hours calculator to determine the exact duration of each work session, then multiply by your hourly rate. The decimal hours output makes it easy to convert time to invoiced amounts.

Shift Work Scheduling

Managers scheduling 24-hour operations need to calculate shift lengths accurately. The tool handles overnight shifts automatically, making it easy to verify that each shift is the correct length and that staffing coverage is balanced across all shifts.

Meeting Duration Planning

Plan your calendar by calculating how long meetings will last. Enter the planned start and end times to ensure meetings fit within their allotted blocks and do not overlap with other commitments.

Payroll Calculations

Human resources and payroll departments use the decimal hours output to process timesheets. Most payroll systems calculate wages based on decimal hours (e.g., 7.75 hours at $25/hour = $193.75), making this format essential for accurate pay computation.

Travel Time Estimation

Calculate the duration of flights, train rides, road trips, and commutes by entering departure and arrival times. This helps with travel planning, layover calculations, and arrival time estimates.

Privacy

All time calculations are performed entirely in your browser using JavaScript. No time values or calculation results are sent to our servers. We do not store, log, or share any information you enter. The tool works offline once the page has loaded.

Time calculations are based on standard clock arithmetic and do not account for daylight saving time transitions, leap seconds, or time zone changes. For payroll calculations, always verify results against your organization's timekeeping policies and applicable labor laws.

AI Overview

An hours calculator is a tool that computes the time duration between two specified times (a start time and an end time). It outputs the result in three formats: hours and minutes, total minutes, and decimal hours. The tool automatically handles overnight durations where the end time falls on the next day.

Quick Answers

Q:

How do I calculate hours between two times?

A:

Enter the start time and end time using the hour, minute, and AM/PM selectors, then click Calculate. The tool displays the duration in hours and minutes, total minutes, and decimal hours.

Q:

How does the tool handle overnight shifts?

A:

If the end time is earlier than the start time (e.g., 10:00 PM to 6:00 AM), the tool automatically wraps around midnight and calculates the correct duration. You do not need to enter any special settings.

Q:

What are decimal hours?

A:

Decimal hours express time as a decimal number. For example, 7 hours and 30 minutes = 7.5 decimal hours. This format is commonly used for payroll and billing because it simplifies rate calculations.

Q:

Can I calculate total minutes instead of hours?

A:

Yes. The tool provides a "Total Minutes" output alongside the hours-and-minutes format. For example, 2 hours and 15 minutes = 135 total minutes.

Q:

Does the tool account for lunch breaks?

A:

No. The tool calculates the raw time difference between start and end times. If you need to subtract a lunch break, subtract it from the total duration manually.

How to Use the Hours Calculator - Calculate Hours Between Two Times Online Free

  1. Select the hour and minute for the start of your time range using the Start Time dropdowns. Use AM/PM to specify morning or afternoon.
  2. Select the hour and minute for the end of your time range. The end time can be before the start time to calculate overnight durations (e.g., 10 PM to 6 AM).
  3. Click Calculate to see your duration in hours and minutes, total minutes, and decimal hours. The tool automatically handles overnight ranges.

Benefits

  • Handles Overnight Ranges
  • Three Output Formats
  • 100% Free, No Registration
  • Instant Results
  • Works on Any Device
  • Accurate Minute-Level Precision

Common Mistakes

  • Forgetting to set AM or PM correctly — entering 9:00 AM as 9:00 PM will produce a completely different result
  • Not accounting for overnight shifts — if your shift runs from 10 PM to 6 AM, the tool handles this automatically when the end time is before the start time
  • Confusing 24-hour format with 12-hour format — make sure the AM/PM selector matches your intended time
  • Rounding to the nearest hour instead of using exact minutes — the tool provides minute-level precision for accurate time tracking
  • Expecting the tool to account for lunch breaks or rest periods — it calculates the raw time difference; subtract break time manually if needed

Professional Tips

  • For payroll calculations, enter exact clock-in and clock-out times and the tool will give you total minutes, which you can convert to decimal hours for timesheet entry
  • When tracking billable hours, use the decimal hours output for easy conversion to hourly rates (e.g., 7.5 hours at $50/hour = $375)
  • For shift scheduling, calculate the duration of each shift to ensure adequate staffing coverage across 24-hour periods
  • Remember that the US Fair Labor Standards Act (FLSA) requires overtime pay for hours exceeding 40 per week — use this tool to track cumulative weekly hours
  • Combine with our <a href="/calculator-tools/days-calculator">Days Calculator</a> for multi-day duration calculations

Common Use Cases

Freelancer Time Tracking

Track billable hours for client projects by calculating the duration between start and end times for each work session.

Shift Work Scheduling

Calculate the length of work shifts, including overnight rotations, to plan staffing schedules and ensure compliance with labor regulations.

Meeting Duration Planning

Determine how long a meeting will last by entering the planned start and end times, helping you schedule back-to-back meetings efficiently.

Payroll Calculations

Convert clock-in and clock-out times into total hours and minutes for accurate timesheet completion and payroll processing.

Travel Time Estimation

Calculate the duration of flights, train rides, or road trips by entering departure and arrival times to plan your travel itinerary.

Study Session Tracking

Log study hours by calculating the duration of each study session to meet daily or weekly study goals.

Related Concepts

Time Duration

The length of time between a start point and an end point, expressed in hours, minutes, and seconds. Time duration is the fundamental measurement for scheduling and payroll.

Time Tracking

The process of recording the amount of time spent on specific tasks or activities. Used by freelancers, employees, and organizations for billing, productivity analysis, and payroll.

Shift Scheduling

The practice of assigning work shifts to employees across a 24-hour period, ensuring adequate coverage while complying with labor laws regarding maximum shift lengths and rest periods.

Decimal Hours

Time expressed as a decimal number rather than hours and minutes. For example, 8 hours and 30 minutes equals 8.5 decimal hours. Commonly used for payroll and billing calculations.

FLSA (Fair Labor Standards Act)

US federal law that establishes minimum wage, overtime pay eligibility, recordkeeping, and child labor standards. Requires overtime pay at 1.5x for hours exceeding 40 per week.

Overtime

Hours worked beyond the standard work week (typically 40 hours in the US). Under the FLSA, non-exempt employees must receive overtime compensation at 1.5 times their regular rate.

Frequently Asked Questions

Select a start time and an end time using the hour, minute, and AM/PM selectors, then click Calculate. The tool displays the duration in hours and minutes, total minutes, and decimal hours.

When the end time is earlier than the start time (e.g., starting at 10:00 PM and ending at 6:00 AM the next day), the tool automatically detects this and calculates the duration across midnight. For the example above, the result would be 8 hours and 0 minutes.

Hours and minutes is the traditional format (e.g., 7 hours 30 minutes). Decimal hours converts the minutes to a decimal fraction (e.g., 7.5 hours). Decimal hours are easier to use for payroll calculations and rate-based billing.

There are 480 minutes in 8 hours. The calculator converts hours to minutes automatically by multiplying the hours by 60 and adding any remaining minutes.

Yes. Enter your clock-in and clock-out times to get the total duration. Use the decimal hours output for timesheet entry, as most payroll systems calculate pay based on decimal hours (e.g., 8.25 hours).

References

Author

The ToolsConverters editorial team reviews and maintains all tool descriptions, how-to guides, and FAQ content to ensure accuracy and usefulness for everyday users.

Reviewed By

ToolsConverters Technical Reviewer

Technical review ensures that time duration calculation methods, overnight range handling, and decimal hour conversions described on this page are accurate and current.

Last Updated


Accuracy Statement

This page was last reviewed for accuracy in August 2026. Time calculations follow standard 12-hour and 24-hour clock arithmetic. Decimal hour conversions use the standard minutes/60 formula.

Editorial Process

Tool descriptions and guides are written by the editorial team, reviewed for technical accuracy, and updated periodically to reflect changes in time calculation standards and content.

Educational Purpose

This page is designed to help users understand how time duration calculations work, the difference between hours/minutes and decimal hours, and how overnight ranges are handled correctly.

Explore our complete collection of calculator tools.

More in This Hub

Cookie
We care about your data and would love to use cookies to improve your experience.