Time Duration Calculator
Find a time difference, elapsed time, or the days between two dates. Results use exact seconds and show days, hours, minutes, and seconds.
How elapsed time and days between dates are counted
Clock and calendar durations are stored as whole seconds. A same-day time difference is the gap between the two clock times. An earlier end time is not treated as overnight unless that option is selected. Date and time counts whole days between the dates, with each calendar day as 24 hours, or 86,400 seconds, and no separate daylight-saving adjustment. Add or subtract moves a clock time by the duration you enter. For age in years and months, use the age calculator.
Worked examples
Example 1
9:15 AM to 5:45:30 PM
On the same day this is 8 hours, 30 minutes, 30 seconds, or 30,630 total seconds.
Example 2
10:30 PM to 6:15 AM the next day
With the next-day option selected, the duration is 7 hours, 45 minutes. Without that option, an earlier end time is rejected.
Example 3
31 January to 1 March 2024 at noon
The calendar span is 30 days. February 2024 has 29 days, so the result is not based on equal 30-day months. Adding 7 hours 45 minutes to 10:30 PM lands at 6:15:00 AM, 1 day later.
Common questions
Why is an earlier end time not counted as overnight automatically?
A clock time alone does not say which day it belongs to. If the end is earlier than the start, select “End time is on the next day.” Otherwise the calculator asks you to confirm the overnight span instead of guessing.
Do multi-day results change for daylight saving?
No. Each calendar day counts as exactly 24 wall-clock hours, or 86,400 seconds. A local clock that skips or repeats an hour during a daylight-saving change is not given a different elapsed-time adjustment.
How do I count the days between two dates?
Open Date and time and enter both dates. The result separates whole days from the remaining hours, minutes, and seconds. Each calendar day is 86,400 seconds. This mode measures the span. It does not add a number of days to a date to produce a new calendar date.
How do I add or subtract time?
Open Add or subtract, enter a clock time, and enter the days, hours, minutes, and seconds to add or subtract. The result is the new clock time and whether it falls on a later or earlier day.
How can the total hours stay exact?
The duration is stored as a whole number of seconds. Total hours or minutes are shown as a short decimal only when that division ends evenly. Otherwise the result stays in whole hours, minutes, and seconds so it is not rounded.
Related calculators
Everyday
Percentage Calculator
Find a percent of a number, a percentage increase, or what one number is of another.
Open calculatorDate & Time
Age Calculator
Find how old you were on a chosen date, in years, months, and days.
Open calculatorScience
Molarity Calculator
Calculate molarity, the solute mass for a solution, and a stock dilution.
Open calculatorFinance
Compound Interest Calculator
Project growth with compounding periods, interest rate, and time horizon.
Open calculatorMath
Math Solver
Simplify expressions, solve linear and quadratic equations, factor, and work with fractions and trigonometry.
Open calculatorAcademics
GPA Calculator
Calculate semester GPA, cumulative GPA, weighted GPA, and the average needed to reach a target GPA.
Open calculatorAcademics
Grade Calculator
Grade one paper or compile a class result, with totals, percentages, and report cards.
Open calculator