Time Calculator
Calculate Time by entering start and end dates or times. Get precise durations in years, months, days, hours, and minutes. Free, works offline in browser.
Time Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Total = Time1 ± Time2 (converted to/from seconds)
Worked example — 6h 15m 0s (6.25 decimal hours)
Reviewed for accuracy by Abdullah, Technical Content Specialist · Editorial policy
Time Calculator Formula
Total = Time1 ± Time2 (converted to/from seconds)
Convert each time value to total seconds, perform the operation, then convert back by dividing by 3600 for hours, 60 for minutes, and remainder for seconds.
Time Calculator — Worked Examples
Example 1: Add 2h 45m + 3h 30m
Problem:Time 1: 2h 45m 0s, Time 2: 3h 30m 0s, Operation: Add
Solution:2×3600 + 45×60 = 9900s; 3×3600 + 30×60 = 12600s; Total = 22500s
Result:6h 15m 0s (6.25 decimal hours)
Example 2: Subtract 14:30 − 09:45
Problem:Time 1: 14h 30m 0s, Time 2: 9h 45m 0s, Operation: Subtract
Solution:14×3600 + 30×60 = 52200s; 9×3600 + 45×60 = 35100s; Difference = 17100s
Result:4h 45m 0s (4.75 decimal hours)
Time Calculator — Frequently Asked Questions
How do I add hours, minutes, and seconds?
Convert each time to total seconds (hours×3600 + minutes×60 + seconds), add them together, then convert back. Example: 2h 45m + 3h 30m = (9900 + 12600) = 22500 seconds = 6h 15m 0s. Time Calculator handles the conversion automatically.
How do I convert time to decimal hours?
Divide total minutes by 60. Example: 2h 45m = 2 + (45/60) = 2.75 decimal hours. For seconds: 2h 45m 30s = (2×3600 + 45×60 + 30) / 3600 = 9930 / 3600 = 2.7583 hours. Decimal hours are used in payroll, billing, and spreadsheets.
What is elapsed time and how is it calculated?
Elapsed time is the total duration between a start and end point. Calculate it by subtracting the start time from the end time. If a process started at 09:45 and ended at 14:30, the elapsed time is 4h 45m. Time Calculator performs that subtraction for you across hours, minutes, and seconds.
How do I convert between time zones?
Identify both time zones' UTC offsets and calculate the difference. EST is UTC-5, PST is UTC-8, so PST is 3 hours behind EST. Add hours when going east, subtract when going west. Online converters handle daylight saving time changes automatically.
What is epoch time (Unix timestamp)?
Epoch time counts the number of seconds since January 1, 1970 00:00:00 UTC. It provides a universal, timezone-independent way to represent time in computing. The current epoch time is over 1.7 billion. The Year 2038 problem affects 32-bit systems that will overflow.
How does daylight saving time work?
Most of the US springs forward one hour in March and falls back in November. Not all regions observe DST (Arizona, Hawaii, and most US territories do not). DST was intended to save energy by extending evening daylight. It complicates scheduling across time zones.
What is the best way to handle time zones in software?
Store all timestamps in UTC and convert to local time only for display. Use timezone-aware datetime libraries. Never calculate offsets manually as DST rules change. Popular libraries include Luxon, date-fns-tz, and Moment Timezone.
Time Calculator — Background & Theory
History of the Time Calculator
Related Calculators
🧮Date Difference Calculator
Calculate the exact number of days, weeks, months, and years between any two dates.
🧮Add Days to Date Calculator
Add or subtract days, weeks, months, or years from any date to find the resulting date.
🧮Date to Julian Day Converter
Convert between calendar dates and Julian Day Numbers used in astronomy and programming.
🧮Date Range Generator
Generate a list of all dates between two dates with customizable intervals.
🧮Stopwatch Lap Time Calculator
Calculate average, best, and worst lap times from a list of split times.
🧮Break Time Calculator
Calculate entitled break times based on shift length and labor law requirements.
🧮Date of Birth Calculator
Calculate date of birth from current age or age at a specific date.
🧮Due Date Calculator by Conception Date (Not LMP)
Calculate pregnancy due date from exact conception date instead of last menstrual period.