12 Hour to 24 Hour Time Conversion Calculator
This calculator converts a 12-hour clock time (with AM or PM) into 24-hour military time. You enter the hour, minutes, and select AM or PM, and the tool returns the equivalent time in the 00:00 to 23:59 format used by most of the world, the military, and computer systems.
Time Converter
Formula
The conversion follows a simple rule set based on the hour and the AM/PM marker. Let H be the hour (1 to 12), M be the minutes (0 to 59), and P be the period (AM or PM). The 24-hour hour value, H24, is calculated as:
- If P = AM and H = 12, then H24 = 0 (midnight)
- If P = AM and H is 1-11, then H24 = H
- If P = PM and H = 12, then H24 = 12 (noon)
- If P = PM and H is 1-11, then H24 = H + 12
The final time is written as H24:M, always with two digits for the hour (e.g., 03:45, not 3:45).
Worked Example
Using the default values from the calculator above: 3:45 PM.
- Identify the period: PM, so we check the PM rules.
- The hour is 3, which is not 12, so we add 12: 3 + 12 = 15.
- The minutes remain 45.
- Combine them as 15:45.
The calculator returns 15:45, which matches the manual calculation.
When to Use This Conversion
You need this conversion for scheduling international calls, booking flights or trains, reading military or medical schedules, programming timers, or simply understanding time displays on devices set to 24-hour mode. Many countries in Europe, Asia, and South America use the 24-hour clock as standard, while the US, Canada (mostly), and a few others use the 12-hour clock with AM/PM.
How to Read the Result
The output is a four-digit number with a colon. The first two digits represent the hour from 00 to 23. 00 is midnight, 01 is 1 AM, 12 is noon, 13 is 1 PM, and 23 is 11 PM. The last two digits are always the minutes from the original input. There is no AM or PM suffix in the 24-hour format.
Common Mistakes and Tips
The most frequent error is forgetting the special cases for 12 AM and 12 PM. 12 AM is midnight (00:xx), not 12:xx. 12 PM is noon (12:xx), not 00:xx. Another common mistake is writing a single digit for hours like 9:30 instead of 09:30; the 24-hour format always uses two digits for the hour. Always double-check the AM/PM marker before converting, as a single misread changes the result by 12 hours.
Limits of the Formula
This formula only works for valid 12-hour clock inputs. Hours must be between 1 and 12, and minutes between 0 and 59. It does not handle seconds, time zones, or daylight saving adjustments. For those, you need a full date-time calculator or a time zone converter. The formula also assumes the standard convention where 12 AM is the start of the day.
Frequently Asked Questions
What is 12:00 AM in 24-hour time?
12:00 AM is midnight, which is 00:00 in the 24-hour format. This is the start of the day.
What is 12:00 PM in 24-hour time?
12:00 PM is noon, which is 12:00 in the 24-hour format. It is the middle of the day.
Why does 24-hour time not use AM or PM?
Because the 24-hour cycle is self-explanatory. Each hour of the day has a unique number from 00 to 23, so there is no ambiguity about which part of the day is meant.
Is 24-hour time the same as military time?
Yes, for most practical purposes they are the same. The military often omits the colon (e.g., 1545 instead of 15:45) and may add the word “hours” (e.g., “fifteen forty-five hours”).
How do I convert 11:59 PM to 24-hour time?
Since it is PM and the hour is 11 (not 12), add 12: 11 + 12 = 23. The minutes stay 59, so the result is 23:59, which is one minute before midnight.
What about seconds in the conversion?
Seconds are unaffected by the AM/PM to 24-hour conversion. If you have 3:45:30 PM, the seconds (30) remain the same, and the hour converts to 15, giving 15:45:30.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.