Time calculator

8:03 AM

The time now

How long until a time

UntilTime leftWhen

What time was it?

Time between two dates and times

Add up hours and minutes

How time arithmetic works

Clock time runs in base 60 for minutes and seconds, base 24 or 12 for hours, and it wraps around at midnight. That is why ordinary subtraction on a calculator misleads: 5:15 minus 3:45 is not 1.70, it is 1 hour and 30 minutes. The reliable method is to convert to minutes, do the sum, and convert back. 5:15 is 315 minutes, 3:45 is 225, the difference is 90, and 90 minutes is 1:30.

When you cross midnight, add 24 hours to the later time before subtracting. From 10:30 PM to 6:15 AM: 6:15 AM becomes 30:15 in hours past the previous midnight, 10:30 PM is 22:30, and the difference is 7 hours and 45 minutes. A good habit for shifts is to convert everything to 24-hour time first, since it removes the AM and PM step where most mistakes happen.

Hours and minutes against decimal hours

Payroll and time-tracking systems often record decimal hours, and this causes a classic mistake. 7.30 in decimal hours is 7 hours and 18 minutes, not 7 hours and 30 minutes. Those twelve minutes, repeated on every timesheet, add up quickly. These are the conversions people use most:

Minutes6152030455090150
Decimal hours0.10.250.330.50.750.831.52.5

The sum box above shows every total in both forms. A bare number is read as minutes, and 1:30 means an hour and a half. A line starting with a minus sign is subtracted, which handles unpaid breaks: enter 8:30 and then −0:30 to get 8:00.

What daylight saving does to a calculation

Most days have 24 hours, but a day on which the clocks change has 23 or 25 in that zone. This creates three separate problems, and each one has caught out real schedules:

The calculator uses the published time zone rules for your device’s zone. “N hours from now” means N real hours, even if the clock on the wall reads differently, and any change inside the span is pointed out. For the two date-time fields, it warns you if a chosen time is skipped or repeated. To see the rule for a particular place, look at daylight saving time.

Noon, midnight and the 12 o’clock problem

“12 AM” and “12 PM” are a well-known trap. The convention on digital clocks is that 12 AM begins the day and 12 PM is noon, yet the US National Institute of Standards and Technology says the labels are ambiguous and should not be used; “noon”, “midnight” or 24-hour time say the same thing without doubt. Midnight has a second problem: a deadline of “midnight on Friday” might mean the start or the end of that day. For that case NIST suggests 0000 for midnight at the beginning of a day and 2400 for the end. If it matters, write “11:59 PM on Friday” or give the date that follows. In this calculator, 12am means the next 00:00.

Minutes ago and hours from now

For “what time was it” questions, the table above gives you the answer directly, computed from a clock we check against our server, not only your device’s time. Times can move across a date line, so the tool also tells you whether the answer falls today, yesterday or tomorrow. That matters most for spans of more than a few hours: 10 hours before 3 AM is yesterday afternoon.

Time zones

This page works in your device’s time zone. Adding hours is the same anywhere, but a clock reading isn’t: “5 PM” is a different moment in each zone. To convert a time between places, use the time zone converter, and to see the current time in your own zone with an accuracy check, use the exact time.

Which tool to use

Questions

What time was it 30 minutes ago?
The table on this page shows the answer for common amounts and updates every second. For any other amount, enter it above and choose “ago”.
How long until 5 PM?
Type 5pm in the “How long until” box or press its button. The answer is in hours, minutes and seconds. If 5 PM has passed, it counts to 5 PM tomorrow.
How do I add hours and minutes?
Add minutes to minutes and hours to hours, then carry each full 60 minutes into the hours. 1:45 plus 2:30 is 3 hours and 75 minutes, which is 4:15. Or type each duration on its own line in the sum box.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75 hours. Going back, multiply the decimal part by 60: 0.2 hours is 12 minutes.
How many hours are between 9 AM and 5:30 PM?
8 hours and 30 minutes, or 8.5 decimal hours. Subtract any unpaid break to get time worked.
Does daylight saving time change the result?
It can. This calculator counts real elapsed time in your time zone. On the night the clocks change, 8 hours after 10 PM reads as 7 AM or 5 AM on the clock instead of 6 AM, and the page tells you when a change falls in your span.
Is 12 AM midnight or noon?
In common usage 12 AM is midnight at the start of the day and 12 PM is noon, but the US National Institute of Standards and Technology calls the terms ambiguous. Writing “12 noon”, “12 midnight”, or 24-hour time avoids any doubt.

Related tools