Time Duration Calculator
Creator
Reviewer
Duration
8:30 (8.5 hrs)
This is the elapsed time between your two clock times, on the same day.
8:30 in hours and minutes is 8.5 decimal hours.
How long is it between two moments? This time duration calculator works that out exactly. Use the Two Clock Times tab whenever you just need to calculate time between two times on a single day, like a start of 9:00 and an end of 17:30, with no date needed at all. Use the Two Dates & Times tab when the gap might cross one or more calendar days, and the calculator will show the elapsed duration broken into days, hours, minutes and seconds, down to the second.
Nothing is uploaded anywhere: every value stays in your browser, and the total is shown next to the breakdown so you can see both at a glance. As a straightforward elapsed time calculator, it also works as its own check: a simple time addition of the days, hours, minutes and seconds shown always adds back up to the original gap.
How the Two Clock Times tab of the time duration calculator works
The first tab compares two plain clock times, such as 9:00 and 17:30, resolving the time between two times with no calendar date attached at all. Both times convert to a count of minutes since midnight, the end is subtracted from the start, and if that subtraction comes out negative, a full day is added back in on the assumption that the end time fell the next day rather than earlier the same day. Because it reports the hours between two times as a single figure plus any leftover minutes, this tab works as a plain hours and minutes calculator whenever a date is not needed. That is exactly the same calculation, and the exact same function, behind the top calculator on the Hours Calculator, just without that page's extra unpaid-break field. For the full manual method behind this subtraction, including the borrow-style carry needed when the end time's minutes are smaller than the start time's, see how to calculate the duration between two times or dates. For a fast minute calculator time check between two clock readings on the same day, this tab is the quickest route, since no date is required at all.
How the two dates and times tab is calculated
The calculator treats the start date and time as one single point in time, and the end date and time as another, then simply measures the gap between them. Each point is built from its calendar date (year, month, day) and its clock time (hours, minutes, seconds) using the same rules a calendar actually follows, including how many days are in each month and whether the current year is a leap year. The gap between the two points, measured in whole seconds, is the raw material for everything the result panel shows. A duration calculation almost always starts from the same plain question: how long does it take to get from one moment to the next? This is the duration between two datetimes in the fullest sense, not just a same-day gap: the time between dates and times spanning weeks, months or even years works exactly the same way once both moments are converted into one comparable point in time, and every one of the calculations with time below builds on that single idea.
Worked example. Take a start of February 28, 2024 at 12:00:00 PM and an end of March 1, 2024 at 12:00:00 PM. 2024 is a leap year, so February has 29 days, meaning February 28 is followed by February 29, which is followed by March 1. From noon on the 28th to noon on the 29th is exactly one full day, and from noon on the 29th to noon on March 1 is another full day, for exactly two full days in total, with no leftover hours, minutes or seconds. In whole seconds, two days is 2 × 24 × 60 × 60 = 172,800 seconds. A calculator that simply subtracted calendar dates without checking the actual number of days in February could get this wrong; treating both moments as one continuous timeline gets it right regardless of which month or year the gap crosses, which is how this tool can count duration of time accurately across any calendar boundary.
How the days, hours, minutes and seconds breakdown works
Once the total gap is known in seconds, it is broken down into a more readable shape, which is exactly how to calculate hrs and mins from a raw number of seconds. The number of whole days is however many full 24 hour blocks (86,400 seconds each) fit into the total. Whatever time is left over after removing those whole days is then broken into whole hours (3,600 seconds each), then whatever remains after that into whole minutes (60 seconds each), with any final leftover reported as seconds. Every unit in the breakdown is a genuine remainder of the one before it, so adding the days, hours, minutes and seconds back together always reconstructs the original total exactly.
For example, a total of 115,200 seconds (32 hours) breaks down as 1 full day (86,400 seconds) plus a remainder of 28,800 seconds, which is exactly 8 hours with nothing left over, giving a breakdown of 1 day, 8 hours, 0 minutes, 0 seconds. That is the same 32 hour gap you would get from starting at 10:00 PM on one day and ending at 6:00 AM two calendar dates later, even though three separate calendar dates were touched along the way.
How this differs from the Hours Calculator and Day Counter Calculator
This site also has two related tools worth knowing about. The Hours Calculator covers the same same-day, clock-times-only question as the Two Clock Times tab above, plus an unpaid-break field for a payroll-style shift, such as a shift that starts at 9:00 AM and ends at 5:30 PM with a lunch break subtracted. The Day Counter Calculator only counts whole calendar days between two dates, with no time of day involved, which is enough for questions like "how many days until my next exam". This page's own Two Dates & Times tab is the more precise version of that question: it takes a full date and time at both ends, so it is the right tool whenever the gap you care about might cross midnight, span several days, or needs to be precise down to the minute or second rather than just the day. Both this page and the Hours Calculator answer the same time between times question and work as a time between calculator for that same-day case; this page's own Two Dates & Times tab is the fuller time in between calculator for when the gap crosses days. Whichever tab you use, it is fundamentally still a question of the time between time periods you actually care about, whether that is a single work shift or a multi-day trip.
Elapsed duration versus a calendar age breakdown
The days, hours, minutes and seconds breakdown above measures elapsed time as one continuous count: it converts the whole gap to seconds first, then divides that count back into fixed-size units, 86,400 seconds to a day, 3,600 to an hour, 60 to a minute. That is exactly right for answering how much time passed, and it is why this calculator can hand back an answer like 2 days, 15 hours and 15 minutes for a gap spanning a month or a year boundary without any special-case logic for how long a particular month happens to be. If you only have a start point and want to know how long it has been since then, entering the current date and time as the end works as a simple time since calculator.
A related but different question, familiar from age calculators and anniversary counters, asks for a duration in calendar terms instead: a number of years, months and days, the way people naturally describe an age. That calculation works field by field rather than as one continuous count, subtracting the day, then the month, then the year, and borrowing from the next-larger unit whenever a field would otherwise go negative, the same way ordinary subtraction borrows a ten from the next column.
A short example shows why the two methods report the same gap differently. From March 15, 2020 to June 10, 2024 is a calendar-style breakdown of 4 years, 2 months and 26 days: 4 full years to reach 2024, 2 more months to reach May 15, and 26 more days from there to June 10, since May has 31 days. Converted into this calculator's own elapsed format, the identical gap becomes a single count of days, hours, minutes and seconds with no separate year or month figure at all, because a calendar month and year are not fixed lengths the way a day, hour, minute or second is.
Because months and years vary in length, a calendar-style breakdown needs the actual calendar to stay accurate, the same way this calculator's Two Dates & Times tab does. A shortcut that assumes every month is 30 days, or every year is 365 days, drifts further from the true answer the longer the gap runs, since it never corrects for months with 28 to 31 days or for the extra day a leap year adds. Both February 2020 and February 2024 in the example above are leap years, and the calendar-field method absorbs that automatically, simply by counting from one real calendar date to another.
Which format is more useful depends on what the number is for. A shift length, a video runtime, or a cooking time is naturally read in hours, minutes and seconds, exactly what this calculator's Two Clock Times tab reports. A person's age or how long a project has been running is naturally read in years, months and days, a calendar-field question rather than a fixed-unit one. This calculator focuses on the fixed-unit case; a calendar-age breakdown uses the same underlying date arithmetic, just working field by field with borrowing instead of totalling everything into seconds first. Knowing how long it will take to finish a task, or how long will it take to reach a deadline, is usually this fixed-unit question rather than a calendar-field one. Either way, it works as a time calculator minutes and all, right down to the seconds.
Frequently asked questions
What is the difference between the two tabs on this page?
How is the Two Clock Times tab different from the Hours Calculator?
How is this different from the Day Counter Calculator?
Why does the day count sometimes look one lower than I expect?
Can I calculate a duration that spans a leap day, like February 29?
What happens if I enter an end date and time earlier than the start?
Does this calculator account for time zones?
Why does the result show seconds when I only typed hours and minutes?
What counts as an invalid date or time here?
Related tools: Hours Calculator, Time Calculator and Date Calculator. More are grouped under Everyday Calculators, and every tool on the site is listed at all calculators.
