⏱ Time Calculator

Add or subtract time durations, find the elapsed time between two clock times, add hours or days to a specific time, and convert between time units — instantly.

⏱ Add / Subtract Duration
Result
Total Duration
Total Seconds
Total Minutes
Decimal Hours

Enter two durations to add or subtract them

⏳ Time Difference
Elapsed Time
Duration
Total Minutes
Decimal Hours
Crosses Midnight?

Enter a start and end time to find the elapsed duration

🕐 Add / Subtract from Clock Time
Resulting Time
New Time
24-Hour Format
Day Shift
🕐

Enter a start time and how much to add or subtract

🔁 Time Unit Converter
Equivalent Values
Seconds
Click to copy
Minutes
Click to copy
Hours
Click to copy
Days
Click to copy
Weeks
Click to copy
🔁

Enter a value to convert between time units

🕘 Recent Results
No calculations yet
Guide

About the Time Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This time calculator is really four tools in one: a time duration calculator that adds or subtracts hours, minutes, and seconds; a time difference calculator that finds the elapsed time between two clock times; a clock time calculator that shifts a specific time forward or backward by days, hours, or minutes; and a full time unit converter between seconds, minutes, hours, days, and weeks. It's aimed at anyone who needs a payroll time calculator, work hours calculator, or general time span calculator for timesheets, schedules, deadlines, or shift lengths without doing the hours-minutes-seconds carrying by hand.

How It Works

As an add time calculator or subtract time calculator, each tab converts your inputs into a single base unit — total seconds for durations, or minutes-since-midnight for clock times — performs the time addition or time subtraction on that base unit, then converts the result back into a readable hours-minutes-seconds calculator format. When you need the time between two times, the Time Difference tab acts as an elapsed time calculator and automatically detects an overnight time difference, so a span like 11:00 PM to 3:00 AM correctly resolves to 4 hours instead of a negative number. The Time Unit Converter tab doubles as a seconds to hours converter and hours to minutes converter, and every duration result also shows as a ready-to-use decimal hours calculator figure.

Why It Matters

Manual time math is a common source of small but costly errors — miscounted work hours on a timesheet, a meeting scheduled across a midnight boundary, or a mismatch between decimal hours and HH:MM format in payroll software. Working from total seconds as a common base unit removes that ambiguity and gives a result that's easy to double-check, whether you're totting up work hours for a payroll run or converting a project deadline expressed in days into hours and minutes.

Tips for Accurate Results

  • For payroll or timesheet entries, use the Decimal Hours output directly — 7h 30m and 7.5 decimal hours are the same value, just formatted differently, which is exactly what most payroll time calculator workflows expect.
  • When calculating elapsed time across midnight, just enter the times as shown on the clock — the calculator automatically detects the overnight time difference and adds the day boundary for you.
  • Use the Time Unit Converter tab for quick sanity checks, such as confirming how many seconds are in a week (604,800) before running a larger time span calculator.
  • When adding hours to time near a shift boundary, double-check the Day Shift indicator in the Add/Subtract from Clock tab — it tells you if the new time rolled over into the next or previous day.
About

How the Time Calculator Works

Duration Arithmetic

Both durations are converted to total seconds, added or subtracted, then converted back to hours, minutes and seconds — the same approach used for timesheets and stopwatch splits.

🌙

Elapsed Time Across Midnight

If the end time is earlier than the start time, the calculator assumes it falls on the next day and adds 24 hours before computing the difference — so 11:00 PM to 3:00 AM correctly returns 4 hours.

🕐

Clock Time Arithmetic

Adding or subtracting days, hours and minutes from a clock time is done entirely in minutes, then wrapped into a 24-hour clock — any rollover into the next or previous day is reported separately.

🔁

Time Unit Conversions

All conversions use seconds as the common base unit: 1 minute = 60s, 1 hour = 3,600s, 1 day = 86,400s, 1 week = 604,800s — the same constants used throughout scheduling and payroll software.

Walkthrough

Step-by-Step: How to Use the Time Calculator

From picking a mode to reading your result, across all four tools

Choose a calculation mode

Select Add/Subtract Duration to combine two time spans, Time Difference to find the elapsed time between two clock times, Add/Subtract from Clock to shift a specific time forward or backward, or Time Unit Converter to convert between seconds, minutes, hours, days and weeks.

Enter your time values

Depending on the mode, type hours/minutes/seconds for a duration, pick a start and end clock time, enter a starting time plus days/hours/minutes to shift, or type a single value with its unit.

Choose add or subtract where applicable

In the Add/Subtract Duration and Add/Subtract from Clock tabs, select + to add or − to subtract before calculating — the Time Difference and Converter tabs don't need this step.

Click "Calculate" or "Convert"

The calculator converts your inputs to a common base unit — total seconds for durations, minutes-since-midnight for clock times — performs the operation, then converts the result back to a readable format.

Review your result and history

Read the highlighted result along with its total seconds, minutes, decimal hours, 24-hour format, or day-shift detail, and check the Recent Results panel for up to 15 of your latest calculations from this session.

Example

Worked Example

Two real scenarios, computed the same way the calculator computes them

Scenario 1 — Add Two Durations

A freelancer logs 2 hours 45 minutes on one task and 1 hour 30 minutes on another, and wants the combined billable time.

Duration 12h 45m 0s
Duration 21h 30m 0s
OperationAdd (+)
Step 1 — Convert Duration 1 to seconds: (2 × 3,600) + (45 × 60) + 0 = 7,200 + 2,700 = 9,900 seconds.
Step 2 — Convert Duration 2 to seconds: (1 × 3,600) + (30 × 60) + 0 = 3,600 + 1,800 = 5,400 seconds.
Step 3 — Add the two totals: 9,900 + 5,400 = 15,300 seconds.
Step 4 — Convert back to H:M:S: 15,300 ÷ 3,600 = 4 hours remainder 900 seconds; 900 ÷ 60 = 15 minutes remainder 0 seconds, giving 4h 15m.
Total Duration
4h 15m
Total Minutes
255
Decimal Hours
4.25

Scenario 2 — Time Difference Crossing Midnight

A night-shift worker clocks in at 10:00 PM and clocks out at 2:00 AM the next day, and needs the total shift length.

Start Time10:00 PM (22:00)
End Time2:00 AM (02:00)
Crosses Midnight?Yes
Step 1 — Convert both times to minutes since midnight: 10:00 PM = 22 × 60 = 1,320 minutes; 2:00 AM = 2 × 60 = 120 minutes.
Step 2 — Detect the overnight span: because 120 is less than 1,320, the calculator assumes the end time falls on the next day and adds 24 hours (1,440 minutes): 120 + 1,440 = 1,560 minutes.
Step 3 — Subtract to find the elapsed minutes: 1,560 − 1,320 = 240 minutes.
Step 4 — Convert to hours and minutes: 240 ÷ 60 = 4 hours, 0 minutes remaining, giving 4h 0m.
Duration
4h 0m
Decimal Hours
4
Crosses Midnight?
Yes

Explanation: Both examples rely on the same underlying trick — collapse every time value into one consistent base unit (total seconds for durations, minutes-since-midnight for clock times), do the arithmetic in that base unit, then convert back to a human-readable H:M:S or clock-time format. That's also exactly why the overnight span in Scenario 2 doesn't come out negative: adding 24 hours before subtracting is what correctly handles the midnight rollover.

Interpretation

Understanding Your Time Calculation Result

What each output field means across the four tools

Result FieldAppears InWhat It Means
Total Duration (H:M:S)Add/Subtract DurationThe combined or net duration in hours, minutes and seconds; a leading minus sign means the second duration was larger than the first when subtracting.
Total Seconds / Total MinutesAdd/Subtract DurationThe same result expressed purely in seconds or minutes — useful for scripts, spreadsheets, or double-checking totals.
Decimal HoursDuration, Time DifferenceThe duration written as a single decimal number (e.g. 4.25 hours instead of 4h 15m) — the format most payroll systems expect.
Elapsed DurationTime DifferenceThe gap between your start and end clock times, shown in hours and minutes.
Crosses Midnight?Time Difference"Yes" means the end time was earlier than the start time, so the calculator treated it as falling on the next calendar day.
New Time (12-hour)Add/Subtract from ClockThe resulting clock time in familiar 12-hour AM/PM format.
24-Hour FormatAdd/Subtract from ClockThe same resulting time written in 24-hour (military) notation — handy for logs, tickets, or international schedules.
Day ShiftAdd/Subtract from ClockHow many calendar days the result rolled forward or backward, e.g. "+1 day" if adding hours pushed the time past midnight.
Equivalent ValuesTime Unit ConverterYour entered value expressed simultaneously in seconds, minutes, hours, days and weeks — click any box to copy that figure.
Use Cases

Practical Use Cases for the Time Calculator

Where fast, accurate time arithmetic actually gets used day to day

💼

Payroll and timesheet totals

Add up clock-in/clock-out spans and convert straight to decimal hours for payroll software.

📋

Project and task time tracking

Sum billable durations logged across multiple tasks into one combined total.

🍪

Cooking and baking timers

Add prep time and cook time together, or work out when a dish started needs to come out.

🏋️

Workout interval planning

Total up work and rest intervals to plan a circuit or HIIT session's overall length.

📅

Meeting scheduling across a workday

Check how much time sits between back-to-back meetings, or find when a meeting block ends.

🎓

Students doing math homework

Verify time-arithmetic homework answers, including problems that cross midnight.

🎬

Video and audio clip durations

Editors can add up clip lengths or find the gap between two timestamps in a timeline.

☎️

Call-center shift planning

Plan overnight or rotating shifts and confirm total shift length across a midnight boundary.

🧾

Freelancer billable hours

Convert logged H:M:S time into decimal hours for accurate client invoicing.

✈️

Travel layover duration

Find the elapsed time between a landing time and the next departure, including overnight layovers.

📖

Study session planning

Add planned study blocks together or calculate how long a session ran from start to finish.

🔁

Quick unit conversions

Convert a duration expressed in one unit (e.g. days) into seconds, minutes, hours or weeks instantly.

🕐

Deadline and appointment shifting

Add or subtract hours/days from a starting time to find a new appointment or deadline time.

🛠️

Shift-swap and overtime checks

Quickly confirm how many extra hours a covered or extended shift actually adds up to.

Pros & Cons

Advantages and Limitations

What this time calculator does well, and where it can't replace a dedicated system

✅ Advantages

  • Four tools in one: duration math, time difference, clock-time shifting, and unit conversion
  • Free, instant, and requires no signup or account
  • Runs entirely in your browser — nothing you type is sent to a server
  • Automatically handles the 60-second → minute and 60-minute → hour carry, so you never do it by hand
  • Automatically detects and handles overnight (midnight-crossing) time spans
  • Shows results in multiple formats at once — H:M:S, total seconds, total minutes, and decimal hours
  • Displays both 12-hour and 24-hour formats side by side
  • Supports negative results for duration subtraction, clearly marked with a minus sign
  • Keeps a short session history so you can compare recent calculations
  • One-click copy on every Time Unit Converter value
  • Mobile-friendly, with native time pickers on phones and tablets
  • No fixed cap on hours entered, so it handles multi-day duration totals

⚠️ Limitations

  • Does not handle time zones automatically — all times are treated as plain clock values, not zone-aware timestamps
  • Does not account for daylight saving time transitions
  • Assumes a standard 60-second minute and 60-minute hour throughout — it doesn't model leap seconds
  • Not a substitute for a payroll system's official time-clock rules, rounding policies, or labor-law overtime calculations
  • The Time Difference and clock-time tools only understand times within a single 24-hour cycle per entry, not full calendar dates
  • History log is session-only and clears when the page is closed or refreshed
  • Decimal and seconds/minutes figures are rounded to three decimal places, so extremely precise sub-second work may need a dedicated tool
  • Doesn't validate against real-world business rules like minimum break times or maximum shift lengths
Reference

Time Unit & Format Quick-Reference

The constants and conversions this calculator uses internally

UnitIn SecondsIn MinutesIn Hours
1 minute6010.0167
1 hour3,600601
1 day86,4001,44024
1 week604,80010,080168
12-Hour (AM/PM)24-Hour (Military)
12:00 AM (midnight)00:00
9:00 AM09:00
12:00 PM (noon)12:00
1:00 PM13:00
5:30 PM17:30
10:00 PM22:00
11:59 PM23:59

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Mixing up AM and PM when typing a time difference, producing a wildly wrong "crosses midnight" result
  • Forgetting that minutes and seconds must stay under 60 when manually double-checking a duration by hand
  • Assuming decimal hours and HH:MM are interchangeable without converting — 4.5 hours is 4h 30m, not 4h 50m
  • Entering a duration subtraction the wrong way round and being confused by the resulting negative sign
  • Reading the Day Shift field as a time instead of a day-offset count when using Add/Subtract from Clock
  • Expecting the calculator to auto-adjust for a different time zone or daylight saving time
  • Relying on the session history across page reloads — it clears every time the page is refreshed

💡 Expert Tips & Best Practices

  • For payroll, always read the Decimal Hours figure rather than converting H:M:S by hand
  • When a shift spans midnight, just enter the times as shown on the clock — let the calculator detect the overnight span
  • Use the Time Unit Converter as a quick sanity check before trusting a larger manual calculation
  • Watch the Day Shift indicator whenever you add hours near a day boundary, so you know if the result landed on a different day
  • Copy Time Unit Converter values directly with a click instead of retyping them elsewhere
  • Pair this tool with NeftCal's Time Zone Converter if your calculation spans more than one time zone
📝

Summary: This time calculator handles duration addition/subtraction, elapsed-time calculation between two clock times, clock-time shifting, and unit conversion — all working from seconds or minutes-since-midnight as a common base so the 60-second and 60-minute carrying, plus midnight rollovers, are handled automatically. Pair it with NeftCal's Date Difference Calculator or Business Days Calculator when your calculation spans full calendar dates rather than just clock times.

FAQ

Frequently Asked Questions

Common questions about time arithmetic and conversion

How do I add or subtract two time durations?
Use the Add/Subtract Duration tab. Enter both durations in hours, minutes and seconds, choose + or −, and the calculator converts both to total seconds, applies the operation, then converts the result back to hours, minutes and seconds automatically.
How do I calculate the time difference between two clock times, including overnight spans?
Use the Time Difference tab. Enter a start time and an end time. If the end time is earlier than the start time (for example, 11:00 PM to 3:00 AM), the calculator automatically assumes the end time falls on the next day and adds 24 hours before computing the elapsed duration.
How do I add hours or days to a specific time?
Use the Add/Subtract from Clock Time tab. Enter a starting time, choose + or −, and enter the days, hours and minutes to apply. The result shows the new clock time plus how many days it shifted forward or backward, handling midnight rollovers automatically.
How many seconds are in an hour, day or week?
1 hour = 3,600 seconds, 1 day = 86,400 seconds, and 1 week = 604,800 seconds. Use the Time Unit Converter tab to instantly convert any value between seconds, minutes, hours, days and weeks.
Does this calculator handle times that cross midnight?
Yes. Both the Time Difference tab and the Add/Subtract from Clock Time tab automatically detect and handle midnight rollovers, so a start time of 10:00 PM and an end time of 2:00 AM correctly computes as 4 hours rather than a negative duration.
Can I use 24-hour or 12-hour time format?
The time inputs use your browser's native time picker, which automatically displays in your system's preferred 12-hour (AM/PM) or 24-hour format, while results are shown in both 12-hour and 24-hour format for clarity.
How do I convert decimal hours to hours and minutes for payroll?
Decimal hours like 7.5 mean 7 hours and 0.5 × 60 = 30 minutes (7h 30m). The Time Unit Converter tab shows the decimal-hours equivalent for any duration, and the Add/Subtract Duration tab shows the reverse — total decimal hours for any H:M:S duration — which is exactly what payroll and timesheet calculations need.
Can this calculator produce a negative duration result?
Yes. In the Add/Subtract Duration tab, if you subtract a larger duration from a smaller one, the total is negative and the result is shown with a leading minus sign, for example "-1h 15m", so you can immediately see the second duration was longer.
What is the difference between the Time Difference tab and the Add/Subtract Duration tab?
Time Difference takes two clock times (like 9:00 AM and 5:30 PM) and finds the elapsed duration between them. Add/Subtract Duration takes two durations you already know (like 2h 45m and 1h 30m) and adds or subtracts them directly — no clock times involved.
Does the calculator save my results after I close the page?
No. The Recent Results history log keeps up to 15 calculations, but it exists only in your browser's memory for the current visit. Refreshing or closing the page clears it, since nothing is sent to or stored on a server.
Does this calculator adjust for time zones or daylight saving time?
No. All four tabs treat the times you enter as plain clock values on the same 24-hour cycle — they don't look up your location, apply time zone offsets, or account for daylight saving time transitions. For time zone conversions, use NeftCal's dedicated Time Zone Converter.
Is there a limit to how many hours I can enter in a duration?
There's no fixed upper limit on the hours field in the Add/Subtract Duration or Add/Subtract from Clock tabs, so you can enter durations well beyond 24 hours (useful for multi-day project totals); minutes and seconds fields are capped at 59 to keep entries valid.
How is the "Day Shift" value calculated in the Add/Subtract from Clock tab?
The calculator converts your start time and the days/hours/minutes you're adding or subtracting into total minutes, applies the shift, then divides by 1,440 (minutes in a day) to determine how many full days the result rolled forward or backward, while the remainder becomes the new clock time.
Does the calculator round its results?
Seconds, minutes and decimal hour figures are rounded to three decimal places for readability, while the main HH:MM:SS and clock-time displays use whole seconds and minutes, so small fractional rounding differences are normal and expected.
Can I use this time calculator on my phone?
Yes. The layout is mobile-responsive and the clock-time fields use your device's native time picker, so the Time Difference and Add/Subtract from Clock tabs are just as easy to use on a phone as on a desktop.
Learn More

Authoritative Resources on Time Measurement

Official references on how time is standardized and kept — not a substitute for your organization's official timekeeping policy

Related Calculators

Explore other time and date utility tools