math.wiki
Measurement › Time and money › Twenty four hour time and crossing midnight
Open on the map
Grade 4 · 4.MD.A.2

Twenty four hour time and crossing midnight

The fire station’s log says a call came in at “7:20”. Was that in the morning or the evening, and how long is a night shift that starts on one day and ends on the next?

Where you are 13 in Time and money

When you reach for it

Bogdana, Talara and Dakota work the night shift at a fire station. The shift starts in the evening and ends the next morning. Every call, every truck check and every meal goes into the station log with the time it happened.

A clock with hands goes around twice a day, so “7{:}20” could be twenty past seven in the morning or twenty past seven in the evening. On a twelve-hour clock the label a.m. or p.m. says which half of the day you mean (Morning and afternoon on a twelve hour clock). A label is easy to forget, and in a fire station log a forgotten label could put a call twelve hours off. So the station writes times on the 24-hour clock, which gives every hour of the day its own number. Then no label is needed.

The shift raises a second question. Bogdana starts at 22{:}15 and goes home at 06{:}40. The end time looks smaller than the start time, yet she worked most of the night. Finding how long a stretch of time lasts is Elapsed time: count from the start to the end. This lesson shows how to do that when the count runs through midnight into the next day.

Reach for this lesson when a time is written on the 24-hour clock, when you need to change a time between the two clocks, or when a stretch of time crosses midnight.

The procedure

Part 1: every hour its own number

On the 24-hour clock, the hour number is the number of whole hours since midnight. The day starts at midnight, written 00{:}00. One hour later it is 01{:}00, then 02{:}00, and so on. Noon, twelve hours after midnight, is 12{:}00. The clock does not start again at 1 after noon; it keeps counting. One hour after noon is 13{:}00, two hours after noon is 14{:}00, and the last minute of the day is 23{:}59. One minute after that it is midnight again, 00{:}00 of the next day.

00:00 midnight 06:00 6 a.m. 12:00 noon 18:00 6 p.m. 24:00 midnight
Figure 1One day on the 24-hour clock. The hour number counts the whole hours since midnight, so the afternoon keeps counting past 12 instead of starting again at 1.

A 24-hour time is written with two digits for the hour and two for the minutes, so seven in the morning is 07{:}00, not 7{:}00. The minutes work the same way on both clocks: they run from 00 to 59. People often say 15{:}30 as “fifteen thirty” and 15{:}00 as “fifteen hundred”.

From a.m. and p.m. to the 24-hour clock. Think about how many hours have passed since midnight.

  • A morning hour from 1 a.m. to 11 a.m. is already the number of hours since midnight. Keep it, and write it with two digits: 7{:}20 a.m. is 07{:}20.
  • An afternoon or evening hour from 1 p.m. to 11 p.m. comes after the 12 hours of the morning. Add 12: 3{:}30 p.m. is 3 + 12 = 15, so it is 15{:}30.
  • The hour 12 is the one to watch. 12{:}00 p.m. is noon, 12 hours after midnight, so it stays 12{:}00. 12{:}00 a.m. is midnight itself, zero hours after midnight, so it is 00{:}00. In the same way 12{:}25 a.m. is 00{:}25, twenty-five minutes into the day.

From the 24-hour clock to a.m. and p.m. Go the other way.

  • Hours 00 to 11 are a.m. Hour 00 becomes 12: 00{:}40 is 12{:}40 a.m. Hours 01 to 11 keep their number: 09{:}15 is 9{:}15 a.m.
  • Hours 12 to 23 are p.m. Hour 12 stays 12: 12{:}10 is 12{:}10 p.m. Hours 13 to 23 lose 12: 15{:}30 is 15 - 12 = 3, so 3{:}30 p.m.

Why 12? Because the twelve-hour clock starts its count again at noon, and the morning holds exactly 12 hours. Adding 12 puts the morning’s hours back in front of an afternoon hour; taking 12 away removes them.

There is one more good thing about the 24-hour clock. Within one day, a later time always has a larger number, so putting times in order is just comparing numbers. On the twelve-hour clock, 12{:}05 a.m. comes before 1{:}00 a.m., even though 12 is more than 1.

Some schedules write 24{:}00 for the very end of a day, the midnight that closes it. It is the same moment as 00{:}00 of the next day.

Part 2: elapsed time, and crossing midnight

Inside one day. On the 24-hour clock, the time from an earlier time to a later one on the same day is the later time take away the earlier one. Subtract the minutes, then the hours. If there are not enough minutes to subtract from, trade one hour for 60 minutes, because an hour is 60 minutes (Units of time). For example, from 13{:}40 to 16{:}15, write 16{:}15 as 15 hours 75 minutes and subtract: 2 hours 35 minutes. Counting up from the start gives the same answer, and it makes a good check.

Across midnight. Bogdana’s shift runs from 22{:}15 to 06{:}40 the next morning. Taking 22{:}15 away from 06{:}40 makes no sense, because the end belongs to a different day. So split the time at midnight, where the day changes:

22 23 00 01 02 03 04 05 06 07 midnight 22:15 06:40 1 h 45 min 6 h 40 min
Figure 2Bogdana’s night shift, split at midnight. The piece before midnight and the piece after it add to 8 hours 25 minutes.
  • Before midnight: from 22{:}15 to midnight. Write midnight as 24{:}00, which is the same as 23 hours 60 minutes, and subtract: 24{:}00 - 22{:}15 is 1 hour 45 minutes.
  • After midnight: the new day starts at 00{:}00, so a time after midnight already counts its hours since midnight. From 00{:}00 to 06{:}40 is 6 hours 40 minutes.
  • Add the two pieces, regrouping 60 minutes into an hour:
\begin{aligned} 1 \text{ h } 45 \text{ min} + 6 \text{ h } 40 \text{ min} &= 7 \text{ h } 85 \text{ min} \\ &= 8 \text{ h } 25 \text{ min} \end{aligned}

Bogdana’s shift lasts 8 hours 25 minutes. The two pieces cover the whole stretch with no gap and no overlap, because they meet at midnight.

A second way gives the same answer. Keep counting hours from the start of the first day, past 24. Then 06{:}40 the next morning is 24 + 6 = 30 hours 40 minutes after the first midnight, and 30{:}40 - 22{:}15 = 8{:}25. Adding 24 to the end hour says “this time is on the next day”.

The same two ideas find an end time. Add the hours and minutes to the start time. If the hour reaches 24 or more, the clock has passed midnight: take 24 away and move to the next day. To go back from an end time to a start time before midnight, add 24 to the end hour first and then subtract. Keeping track of which day it is, and what that day’s date is, is Calendars and dates.

Worked examples

Examples 1, 2 and 3 go with Part 1, and Examples 4 to 7 with Part 2.

Example 1

Reading the station log

Talara reads four times from the station log: 19{:}20, 07{:}20, 12{:}45 and 00{:}10. Write each one on the twelve-hour clock, with a.m. or p.m.

Solution

Look at the hour of each time to decide which half of the day it is in.

  • 19{:}20: the hour 19 is between 13 and 23, so it is p.m., and the hour is 19 - 12 = 7. It is 7{:}20 p.m.
  • 07{:}20: the hour 07 is between 01 and 11, so it is a.m. and keeps its number. It is 7{:}20 a.m.
  • 12{:}45: the hour 12 is noon’s hour, so it is p.m. and stays 12. It is 12{:}45 p.m.
  • 00{:}10: the hour 00 is midnight’s hour, so it is a.m. and is written 12. It is 12{:}10 a.m.

The first two times both read “7{:}20” on a clock with hands. On the 24-hour clock they are 12 hours apart, which matches 19 - 7 = 12.

Example 2

Writing the shift plan

Dakota writes his plan on the twelve-hour clock: the shift starts at 6{:}15 p.m., the hoses are checked at 9{:}05 a.m., a radio test is at 12{:}30 a.m., and lunch is at 12{:}30 p.m. Write each time on the 24-hour clock.

Solution

Count the hours since midnight each time.

  • 6{:}15 p.m. is after the 12 morning hours, so add 12: 6 + 12 = 18. It is 18{:}15.
  • 9{:}05 a.m. is 9 hours after midnight. Keep the hour and write it with two digits: 09{:}05.
  • 12{:}30 a.m. is thirty minutes after midnight, with no whole hour yet. The hour is 00, so it is 00{:}30.
  • 12{:}30 p.m. is thirty minutes after noon, and noon is 12 hours after midnight. It stays 12{:}30.

The two “12{:}30” times are not the same: one is 00{:}30, just after midnight, and the other is 12{:}30, just after noon.

Example 3

Putting calls in order

On one Saturday, the station took four calls. Bogdana wrote them down on the twelve-hour clock as 9{:}40 p.m., 11{:}15 a.m., 12{:}05 a.m. and 4{:}50 p.m. Put them in order from earliest to latest.

Solution

On the twelve-hour clock the numbers do not show the order, so change each time to the 24-hour clock first.

  • 9{:}40 p.m. is 9 + 12 = 21, so 21{:}40.
  • 11{:}15 a.m. stays 11{:}15.
  • 12{:}05 a.m. is five minutes after midnight, so 00{:}05.
  • 4{:}50 p.m. is 4 + 12 = 16, so 16{:}50.

Now a larger number means later in the day. In order: 00{:}05, 11{:}15, 16{:}50, 21{:}40. On the twelve-hour clock that is 12{:}05 a.m., 11{:}15 a.m., 4{:}50 p.m. and 9{:}40 p.m. The call written with the largest hour, 12, was really the first of the day.

Example 4

Truck training before the shift

Talara runs a truck training session from 13{:}40 to 16{:}15. How long is it?

Solution

Both times are on the same day, and the end is later, so subtract the start from the end. The 15 minutes of 16{:}15 are fewer than 40, so trade one of the 16 hours for 60 minutes: 16 hours 15 minutes is 15 hours 75 minutes. Now subtract:

\begin{aligned} 15 \text{ h } 75 \text{ min} - 13 \text{ h } 40 \text{ min} &= 2 \text{ h } 35 \text{ min} \end{aligned}

The session lasts 2 hours 35 minutes. Check by counting up: from 13{:}40 to 14{:}00 is 20 minutes, from 14{:}00 to 16{:}00 is 2 hours, and from 16{:}00 to 16{:}15 is 15 minutes. That is 2 hours and 20 + 15 = 35 minutes.

Example 5

Bogdana’s night shift

Bogdana works from 22{:}15 to 06{:}40 the next morning. How long is her shift?

Solution

The end time is on the next day, so split the shift at midnight, as in the second figure. From 22{:}15 to midnight: 24{:}00 - 22{:}15 is 23 hours 60 minutes take away 22 hours 15 minutes, which is 1 hour 45 minutes. From midnight to 06{:}40 is 6 hours 40 minutes. Add the pieces:

1 \text{ h } 45 \text{ min} + 6 \text{ h } 40 \text{ min} = 7 \text{ h } 85 \text{ min}

Since 85 minutes is 60 + 25, that is one more hour and 25 minutes. The shift lasts 8 hours 25 minutes.

Check the other way: 06{:}40 the next morning is 30{:}40 counted from the first midnight, and

30 \text{ h } 40 \text{ min} - 22 \text{ h } 15 \text{ min} = 8 \text{ h } 25 \text{ min}

The two ways agree.

Example 6

A call that runs past midnight

A call comes in at 23{:}35, and the crew is out for 2 hours 50 minutes. At what time do they get back to the station?

Solution

Add the time to the start, hours to hours and minutes to minutes:

23 \text{ h } 35 \text{ min} + 2 \text{ h } 50 \text{ min} = 25 \text{ h } 85 \text{ min}

Regroup 85 minutes as 1 hour 25 minutes, which makes 26 hours 25 minutes. There is no hour 26 on the clock: the hour passed 24, so the crew crossed midnight. Take 24 away, 26 - 24 = 2, and move to the next day. They get back at 02{:}25 the next morning.

Check by splitting at midnight: from 23{:}35 to midnight is 25 minutes. That leaves 2 hours 50 minutes minus 25 minutes, which is 2 hours 25 minutes after midnight, or 02{:}25.

Example 7

Time off the calls

Dakota’s log says the shift ran from 7{:}30 p.m. to 7{:}15 a.m. the next morning, and that the crew spent 3 hours 50 minutes of it out on calls. How much of the shift was not spent on calls?

Solution

First change the times to the 24-hour clock. 7{:}30 p.m. is 7 + 12 = 19, so 19{:}30, and 7{:}15 a.m. is 07{:}15.

The shift crosses midnight, so split it. From 19{:}30 to midnight is 24{:}00 - 19{:}30, which is 23 hours 60 minutes take away 19 hours 30 minutes: 4 hours 30 minutes. From midnight to 07{:}15 is 7 hours 15 minutes. The whole shift is

4 \text{ h } 30 \text{ min} + 7 \text{ h } 15 \text{ min} = 11 \text{ h } 45 \text{ min}

Now take away the time on calls. The 45 minutes are fewer than 50, so trade one hour for 60 minutes: 11 hours 45 minutes is 10 hours 105 minutes.

10 \text{ h } 105 \text{ min} - 3 \text{ h } 50 \text{ min} = 7 \text{ h } 55 \text{ min}

The crew spent 7 hours 55 minutes of the shift at the station. Check: 7 hours 55 minutes plus 3 hours 50 minutes is 10 hours 105 minutes, which is 11 hours 45 minutes, the whole shift.

Boundaries

  • Hours 00 to 23, minutes 00 to 59. A 24-hour time has no hour 24 or more, except that 24{:}00 is sometimes written for the end of a day. An hour of 24 or more in the middle of a sum means midnight was passed: take 24 away and move to the next day.
  • Exactly at twelve. 12{:}00 p.m. is noon and 12{:}00 a.m. is midnight. Many schedules avoid the doubt by writing “noon” and “midnight”, or by using the 24-hour clock.
  • A time does not name the day. 06{:}40 happens every day. Splitting at midnight works when the stretch is shorter than a whole day and you know it ends on the next day. If a stretch could last more than 24 hours, the two times alone cannot tell how long it was; you also need the dates.
  • The same clock for both ends. The subtraction only makes sense when both times are read on the same clock in the same place. Clocks in places that read different hours at the same moment are the business of Time zones.

Where this goes next

The 24-hour clock is how train and bus timetables, hospitals and many countries write the time, and it is the natural clock for Time zones, where a time in one city can land after midnight in another and the date changes. Counting days, weeks and dates when a stretch runs longer than one night is Calendars and dates. The trading of an hour for 60 minutes used here comes back in Multi-step problems with unit conversions.

Exercises

Part 1: every hour its own number

  1. Write 14{:}00 on the twelve-hour clock.
  2. Write 08{:}25 on the twelve-hour clock.
  3. Write 21{:}10 on the twelve-hour clock.
  4. Write 00{:}45 on the twelve-hour clock.
  5. Write 12{:}20 on the twelve-hour clock.
  6. Write 4{:}35 p.m. on the 24-hour clock.
  7. Write 11{:}50 p.m. on the 24-hour clock.
  8. Write 12{:}15 a.m. on the 24-hour clock.
  9. Write 10{:}00 a.m. and 10{:}00 p.m. on the 24-hour clock. How many hours apart are they?
  10. Put these times from one day in order, earliest first: 8{:}30 p.m., 12{:}40 p.m., 3{:}20 a.m., 12{:}20 a.m.

Part 2: elapsed time, and crossing midnight

  1. How long is it from 09{:}20 to 11{:}45 on the same day?
  2. How long is it from 14{:}50 to 17{:}10 on the same day?
  3. Dinner at the station is cooked from 18{:}35 to 23{:}05, a slow stew. How long does it cook?
  4. A shift runs from 21{:}00 to 05{:}00 the next morning. How long is it?
  5. A call starts at 23{:}20 and ends at 02{:}10 the next morning. How long is it?
  6. Talara works from 20{:}45 to 07{:}30 the next morning. How long is her shift?
  7. A training drill starts at 22{:}40 and lasts 3 hours 35 minutes. When does it end?
  8. A call starts at 19{:}55 and the crew is out for 5 hours 20 minutes. When do they get back?
  9. A truck repair ended at 01{:}20 after taking 2 hours 45 minutes. When did it start?
  10. A call lasted from 10{:}50 p.m. to 1{:}25 a.m. the next morning. How long was it?
  11. Talara goes to bed in the station bunk room at 23{:}30, and the alarm rings for her shift change at 06{:}15. A call takes her out of bed from 01{:}40 to 03{:}05. How long was she in bed?

Reasoning

  1. Explain why you add 12 to change 5{:}00 p.m. to the 24-hour clock, but do not add 12 to change 12{:}00 p.m.
  2. A shift runs from 21{:}30 to 04{:}50 the next morning. Dakota subtracts 21{:}30 - 04{:}50 and gets 16 hours 40 minutes. What did he really find? How long is the shift?
  3. Bogdana writes a time of 24{:}30 in the log. Explain why that is not a time on the 24-hour clock, and write the time she means.
  4. One shift runs from 19{:}00 to 07{:}00 the next morning, and the day shift runs from 07{:}00 to 19{:}00. Show that each lasts 12 hours and that together they cover a whole day. Then explain why, for any two different times, the time from the first to the second plus the time from the second back around to the first is always 24 hours.
Answers
  1. 2{:}00 p.m. The hour 14 is between 13 and 23, so it is p.m., and 14 - 12 = 2.
  2. 8{:}25 a.m. The hour 08 is between 01 and 11, so it is a.m. and keeps its number.
  3. 9{:}10 p.m. The hour 21 is p.m., and 21 - 12 = 9.
  4. 12{:}45 a.m. The hour 00 is midnight’s hour, so it is a.m. and is written 12.
  5. 12{:}20 p.m. The hour 12 is noon’s hour, so it is p.m. and stays 12.
  6. 16{:}35. An afternoon hour comes after the 12 morning hours, so 4 + 12 = 16.
  7. 23{:}50. 11 + 12 = 23, ten minutes before midnight.
  8. 00{:}15. 12{:}15 a.m. is fifteen minutes after midnight, before any whole hour has passed, so the hour is 00.
  9. 10{:}00 and 22{:}00. The morning hour keeps its number, and the evening one is 10 + 12 = 22. They are 22 - 10 = 12 hours apart.
  10. 12{:}20 a.m., 3{:}20 a.m., 12{:}40 p.m., 8{:}30 p.m. On the 24-hour clock they are 20{:}30, 12{:}40, 03{:}20 and 00{:}20, and in order of size: 00{:}20, 03{:}20, 12{:}40, 20{:}30.
  11. 2 hours 25 minutes. 45 - 20 = 25 minutes and 11 - 9 = 2 hours.
  12. 2 hours 20 minutes. The 10 minutes are fewer than 50, so write 17{:}10 as 16 hours 70 minutes. Then 70 - 50 = 20 and 16 - 14 = 2.
  13. 4 hours 30 minutes. Write 23{:}05 as 22 hours 65 minutes. Then 65 - 35 = 30 and 22 - 18 = 4.
  14. 8 hours. From 21{:}00 to midnight is 3 hours, and from midnight to 05{:}00 is 5 hours, so 3 + 5 = 8.
  15. 2 hours 50 minutes. From 23{:}20 to midnight is 40 minutes, and from midnight to 02{:}10 is 2 hours 10 minutes. Together: 2 hours and 40 + 10 = 50 minutes.
  16. 10 hours 45 minutes. From 20{:}45 to midnight is 23 hours 60 minutes take away 20 hours 45 minutes, which is 3 hours 15 minutes. From midnight to 07{:}30 is 7 hours 30 minutes. Together: 10 hours 45 minutes.
  17. 02{:}15 the next morning. 22 hours 40 minutes plus 3 hours 35 minutes is 25 hours 75 minutes, which regroups to 26 hours 15 minutes. The hour passed 24, so take 24 away: 26 - 24 = 2, on the next day.
  18. 01{:}15 the next morning. 19 hours 55 minutes plus 5 hours 20 minutes is 24 hours 75 minutes, which is 25 hours 15 minutes, and 25 - 24 = 1, on the next day.
  19. 22{:}35 the day before. The end, 01{:}20, is 1 hour 20 minutes after midnight. The other 2 hours 45 minutes take away 1 hour 20 minutes, which is 1 hour 25 minutes, came before midnight. 1 hour 25 minutes before 24{:}00 is 22{:}35. Check: from 22{:}35 to midnight is 1 hour 25 minutes, and adding 1 hour 20 minutes gives 2 hours 45 minutes.
  20. 2 hours 35 minutes. On the 24-hour clock the call ran from 22{:}50 to 01{:}25. From 22{:}50 to midnight is 1 hour 10 minutes, and from midnight to 01{:}25 is 1 hour 25 minutes. Together: 2 hours 35 minutes.
  21. 5 hours 20 minutes. From 23{:}30 to 06{:}15 is 30 minutes plus 6 hours 15 minutes, which is 6 hours 45 minutes. The call took her from 01{:}40 to 03{:}05: write 03{:}05 as 2 hours 65 minutes, so it lasted 1 hour 25 minutes. In bed: 6 hours 45 minutes take away 1 hour 25 minutes, which is 5 hours 20 minutes.
  22. The 24-hour clock counts hours since midnight. 5{:}00 p.m. is 5 hours after noon, and noon is 12 hours after midnight, so it is 5 + 12 = 17 hours after midnight: 17{:}00. But 12{:}00 p.m. is noon itself, which is 12 hours after midnight, not 12 hours after noon. Adding 12 would give 24, the end of the day. So it stays 12{:}00.
  23. Dakota found the time from 04{:}50 to 21{:}30 on the same day, the part of the day that is not in the shift. The shift itself is 2 hours 30 minutes before midnight plus 4 hours 50 minutes after, which is 6 hours 80 minutes, or 7 hours 20 minutes. His answer and the shift together make 16 hours 40 minutes plus 7 hours 20 minutes, which is 24 hours, the whole day.
  24. The hours of the 24-hour clock run only from 00 to 23, because after 23{:}59 a new day starts at 00{:}00. Hour 24 is midnight again, so 24{:}30 is thirty minutes into the next day: 00{:}30 the next morning, or 12{:}30 a.m.
  25. From 19{:}00 to midnight is 5 hours, and from midnight to 07{:}00 is 7 hours, so the night shift is 5 + 7 = 12 hours. The day shift is 19 - 7 = 12 hours. Together they make 12 + 12 = 24 hours, a whole day, and they meet at 07{:}00 and 19{:}00 with no gap. In general, going from the first time to the second and then on from the second until the first time comes around again takes you exactly once around the clock, with no piece counted twice, and once around the clock is 24 hours.
kg1128 · updated 2026-10-20 · CC-BY-SA-4.0