Introduction
The Time Duration Calculator finds the exact amount of time between any two points in the day. Enter a start time and an end time, and the tool instantly shows you the difference in hours, minutes, and seconds. It also gives you the total in decimal hours, total minutes, and total seconds, which is helpful for payroll, billing, or tracking how long a task took.
You can use this calculator in two modes. Same-Day Duration mode works when both times fall on the same day, like clocking in at 8:30 AM and clocking out at 5:30 PM. Cross-Date Duration mode lets you pick different dates, so you can measure time spans that stretch across days, weeks, or even months. The results include a full breakdown by years, months, days, hours, minutes, and seconds, along with payroll-friendly decimal formats rounded to the quarter-hour or tenth-hour.
How to use our Time Duration Calculator
Enter a start time and an end time, and this calculator will show you the exact duration between them in hours, minutes, seconds, and more.
Calculator Mode: Pick "Same-Day Duration" if both times fall on the same day. Pick "Cross-Date Duration" if the times span across different dates.
Start Time: Enter the hour, minute, and second for when the time period begins, then choose AM or PM. You can also click the "Now" button to fill in the current time automatically.
End Time: Enter the hour, minute, and second for when the time period ends, then choose AM or PM. Click "Now" to use the current time if needed.
Start Date and End Date (Cross-Date mode only): When using Cross-Date Duration mode, pick the start date and end date from the date fields that appear. If you only need to find the number of days between two dates without worrying about specific times, our Date Duration Calculator is a great companion tool.
Include End Date as a Full Day (Cross-Date mode only): Turn this switch on if you want to add one full day (24 hours) to the result.
Swap Start & End: Click this button to quickly switch the start and end times with each other.
Calculate: Press the "Calculate" button to see your results. The calculator will display the total duration as hours, minutes, and seconds. It will also show the result as total decimal hours, total minutes, total seconds, total days, and total weeks. A payroll section rounds the time to decimal hours, quarter-hours, and tenth-hours for billing or timekeeping. In Cross-Date mode, you will also see a calendar breakdown by years, months, days, hours, minutes, and seconds. A donut chart gives you a visual picture of how the duration is split up.
Reset: Click "Reset" to clear your entries and return the calculator to its default values.
What Is Time Duration?
Time duration is the amount of time that passes between a start point and an end point. For example, if you start work at 8:30 AM and leave at 5:30 PM, the duration is 9 hours. We measure time duration in units like seconds, minutes, hours, and days. Figuring out the exact duration between two times is one of the most common tasks in everyday math, and it comes up in school, work, and daily planning.
How Time Duration Is Calculated
To find the duration between two times, you subtract the start time from the end time. This sounds simple, but it can get tricky because of how our clock system works. We use a 12-hour clock with AM and PM, and each hour has 60 minutes (not 100). Each minute has 60 seconds. This means you can't just subtract the numbers the normal way — you need to convert everything into the same unit first.
Here's the basic method: convert both times to a 24-hour format, turn each time into total seconds since midnight, then subtract. For example, 8:30 AM is 30,600 seconds after midnight (8 × 3,600 + 30 × 60), and 5:30 PM is 63,000 seconds after midnight (17 × 3,600 + 30 × 60). The difference is 32,400 seconds, which equals 540 minutes, or 9 hours.
Same-Day vs. Cross-Date Duration
A same-day calculation means both the start and end times fall on the same calendar day. A cross-date calculation spans two or more days. Cross-date math is more complex because you also need to account for calendar differences — different months have different numbers of days, and leap years add an extra day in February. When dates are involved, the result can be broken down into years, months, days, hours, minutes, and seconds. If you need to find someone's exact age based on their birth date, our Age Calculator handles that specific cross-date calculation. You can also use the Days Until Calculator to count down to a future date.
Decimal Hours and Payroll Rounding
Many workplaces and billing systems don't use hours and minutes. Instead, they use decimal hours. In decimal hours, 30 minutes equals 0.50 hours, and 15 minutes equals 0.25 hours. To convert minutes to decimal, you divide the minutes by 60. So 9 hours and 45 minutes becomes 9.75 decimal hours.
Payroll systems also use rounding rules. Quarter-hour rounding rounds time to the nearest 15-minute mark (0.25 hours). Tenth-hour rounding rounds to the nearest 6-minute mark (0.10 hours). These rounding methods help simplify wage calculations and billing statements. If you're tracking work hours across an entire pay period, our Time Card Calculator and Work Hours Calculator can help you tally up weekly totals. To convert those decimal hours into an annual salary or vice versa, try the Hourly to Salary Calculator or the Salary to Hourly Calculator.
Common Uses for a Time Duration Calculator
- Work hours: Track how many hours you worked in a shift to calculate pay. Pair this with an Overtime Calculator if you need to figure out overtime wages.
- Travel planning: Find out how long a trip takes from departure to arrival. For air travel specifically, a Flight Time Calculator can estimate your total flight duration.
- Cooking and baking: Figure out when something in the oven will be done.
- Project management: Measure how long tasks take to improve scheduling. Our Lead Time Calculator can also help with planning production or delivery timelines.
- School assignments: Solve time arithmetic problems in math class.
- Event planning: Calculate how many days, hours, or minutes remain until a deadline or special date. The Business Days Calculator is useful when you need to count only working days.
Quick Conversion Reference
- 1 minute = 60 seconds
- 1 hour = 60 minutes = 3,600 seconds
- 1 day = 24 hours = 1,440 minutes = 86,400 seconds
- 1 week = 7 days = 168 hours = 604,800 seconds
Keeping these conversions in mind makes it easier to understand results when time is displayed in different units. Whether you need total seconds for a science problem or decimal hours for a timesheet, the same underlying duration just gets expressed in a different way. If you're working on speed or rate problems that involve time, our Speed Calculator and Rate of Change Calculator may also come in handy.