Time & duration calculator

Time Calculator

Add or subtract hours and minutes from any starting time. Enter a time and a shift, and the new time updates as you type — even when it rolls past midnight onto a different day.

Enter a time and a shift

Works with 12-hour or 24-hour input. No sign-up, nothing stored.

Shift by

Enter any whole number of hours — totals over 24 hours are handled automatically.

New time

11:30 AM
24-hour time
11:30
Duration applied
+2h 30m

What this time calculator does

This tool answers a question that comes up constantly: what time will it be if I add or subtract a certain number of hours and minutes? Type a starting time, choose add or subtract, and enter the hours and minutes to shift by — the new time appears instantly, in both 12-hour and 24-hour format. If the shift is big enough to cross midnight, a badge tells you it landed on a different day.

It is built for the moments where the arithmetic is fiddly — a shift starting at 10:00 PM and running 8 hours 30 minutes, a flight that lands 6 hours 45 minutes after a 4:20 PM departure, or working backward from a deadline to find the latest time you can start. Those are exactly the cases where mental math slips, and getting the new date wrong is easy to miss.

How to use it

Four quick steps — the result updates the moment you change anything.

  1. Enter your starting time.Pick it from the clock or type it. Both 12-hour (9:00 AM) and 24-hour (09:00) input work.
  2. Choose add or subtract.Tap the toggle to switch between moving the time forward or backward.
  3. Enter the hours and minutes to shift by.Any whole number of hours, plus minutes up to 59. Totals over 24 hours are handled automatically.
  4. Read and reuse the result.Copy it to a message, print it, or download it as a CSV row for your records.

How the new time is calculated

The method is the same one behind the scenes as the hours calculator: convert everything to minutes past midnight, do the arithmetic on those numbers, then convert the result back to a clock time. Adding or subtracting a duration is just addition or subtraction on that number line.

Worked example · 9:00 AM plus 2h 30m
Start 09:00 → 540 minutes
Shift = +2h 30m → +150 minutes
Total = 540 + 150 = 690 minutes
690 ÷ 60 = 11h 30m → 11:30 AM

Totals that cross midnight

When the total goes above 1,440 minutes (24 hours) or below zero, the result has moved onto a different day. The calculator divides the total by 1,440 to work out exactly how many days were crossed, keeps the remainder as the time of day, and shows a day badge so the change is never hidden. Adding 5 hours to 10:00 PM (1,320 + 300 = 1,620 minutes) gives 180 minutes left over after one full day — 3:00 AM, one day later.

Subtracting past midnight

Subtracting works the same way in reverse. If the total drops below zero, the calculator wraps back to the previous day: 1:00 AM minus 3 hours is 60 − 180 = −120 minutes, which lands on 10:00 PM the day before. This is exactly the same wraparound the time duration calculator uses for overnight spans, just run in the other direction.

Quick examples

Common shifts and what they come to, including the ones that cross a day boundary.

StartOperationShiftResultDay change
9:00 AM+ Add2h 30m11:30 AMSame day
10:00 PM+ Add5h 00m3:00 AM+1 day
6:15 AM− Subtract8h 45m9:30 PM−1 day
12:00 PM+ Add12h 00m12:00 AM+1 day
1:00 AM− Subtract3h 00m10:00 PM−1 day
4:20 PM+ Add30h 00m10:20 PM+1 day

Working in 24-hour time and want to double-check a value? The military time converter maps every hour to its 12-hour equivalent. Need to convert the shift itself between units first — say, "150 minutes" into hours? The hours to minutes converter handles that in isolation.

Who uses it, and for what

  • Shift workers figuring out what time a shift ends, given a clock-in time and its length.
  • Travelers estimating a landing time from a departure time plus a flight duration.
  • Cooks and event planners working backward from a deadline to find the latest time they can start.
  • Meeting organizers nudging a call time earlier or later by a fixed offset.
  • Anyone turning "in six and a half hours" or "three hours ago" into an actual clock time.

If you already have two clock times and just need the gap between them, the time duration calculator or the hours calculator is the right tool instead — this one runs the calculation the other way around.

Frequently asked questions

How do I calculate a time by adding or subtracting hours and minutes?

Convert the starting time to minutes past midnight, add or subtract the number of minutes you're shifting by, then convert back to a clock time. For example, 9:00 AM plus 2 hours 30 minutes is 540 + 150 = 690 minutes, which is 11:30 AM. This calculator does that instantly.

What happens when the result crosses midnight?

The calculator tracks how many times the result passes 00:00 and shows a plus or minus day badge next to the new time, so you know it lands on a different date than the starting time.

Can I subtract more time than has passed since midnight?

Yes. If subtracting takes the total below zero, the calculator wraps around to the previous day and shows a day-earlier badge — for example, 1:00 AM minus 3 hours becomes 10:00 PM the day before.

Does it accept 12-hour and 24-hour time?

Yes — the starting time field accepts both formats, and the result is shown in both 12-hour and 24-hour form so you can read it however you need.

Can I add more than 24 hours at once?

Yes. Enter any number of hours and the calculator correctly rolls over multiple days, reporting the total day change — adding 30 hours to 4:20 PM correctly returns 10:20 PM the next day.

Is this the same as the duration calculator?

No. This tool moves a single time forward or backward by an amount you choose. The time duration calculator and hours calculator instead find the gap between two times you already have.

Is it free and private?

It is completely free with no sign-up. The calculation runs entirely in your browser — nothing you enter is uploaded or stored on a server.

About the author

Fletcher Langley
Time & Scheduling Specialist · 24hourto12hour.com

Operations and workforce-systems specialist with 14+ years inside shift-based industries and payroll platforms, and a BS in Industrial Engineering. Fletcher writes and reviews the calculators, converters, and guides here — from overnight-shift math to decimal payroll hours — drawing on years spent translating between 12-hour, 24-hour, and military time for real timesheets.

Written & reviewed by Fletcher Langley · Last updated: August 2026