12 Hour Time: How It Works and Why We Use It
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This page explains the 12-hour clock, the timekeeping system that splits the day into two 12-hour periods labeled AM and PM. You enter a time in 12-hour format and the calculator converts it to 24-hour military time, or vice versa, so you can see exactly how the two systems correspond. The result shows the equivalent time in the other format, making it easy to compare or convert times for schedules, travel, or work.
Formula
The 12-hour clock uses the numbers 1 through 12, repeating twice each day. To convert a 12-hour time to 24-hour time:
- If the time is in the AM period and it is 12 AM (midnight), the 24-hour time is 00:00.
- If the time is in the AM period and it is not 12, the 24-hour time is the same as the 12-hour time (e.g., 9:30 AM = 09:30).
- If the time is in the PM period and it is 12 PM (noon), the 24-hour time is 12:00.
- If the time is in the PM period and it is not 12, add 12 to the hour (e.g., 3:30 PM = 15:30).
In the calculator, the input t is the time in minutes after midnight (e.g., 3:30 PM = 15*60 + 30 = 930 minutes). The f input selects whether the input is 12-hour (1) or 24-hour (2). The expression converts to the opposite format. The formula for converting 12-hour to 24-hour is: converted = (t + 12*60) % (24*60) when PM, and converted = t % (24*60) when AM, but the calculator uses a simplified expression that works for both directions by treating the input as minutes and adjusting the hour.
Worked Example
Using the default values: input time is 3:30 PM, format is 12-hour.
- Convert 3:30 PM to minutes after midnight: 3*60 + 30 = 210 minutes. Since it’s PM, add 12 hours (720 minutes): 210 + 720 = 930 minutes.
- In 24-hour format, 930 minutes after midnight is 15:30 (since 930 / 60 = 15.5, or 15 hours and 30 minutes).
- The calculator outputs 15:30, which matches the conversion.
Background of the 12-Hour Clock
The 12-hour clock has ancient roots. The Egyptians used a 12-hour division of the night, and later the day, based on the movement of the sun and the stars. The Greeks and Romans adopted similar systems. The 12-hour day was common in Europe for centuries, and the mechanical clocks of the 14th century often displayed 12 hours. The 24-hour day was used in some contexts, but the 12-hour clock remained dominant for everyday use, especially in English-speaking countries. The terms AM and PM come from Latin: ante meridiem (before noon) and post meridiem (after noon).
How the 12-Hour Clock Works
The 12-hour clock divides the day into two periods: AM (from midnight to noon) and PM (from noon to midnight). Each period has 12 hours, numbered 1 to 12. The sequence goes: 12 AM (midnight), 1 AM, 2 AM, …, 11 AM, 12 PM (noon), 1 PM, …, 11 PM, then back to 12 AM. The hour hand on a clock makes two full rotations each day. This system is common in the United States, Canada (except Quebec), Australia, New Zealand, and parts of the UK and other countries.
How to Convert Between 12-Hour and 24-Hour Time
Converting is straightforward if you remember the rules:
- For times from 12:00 AM (midnight) to 12:59 AM, subtract 12 hours to get the 24-hour time (e.g., 12:30 AM = 00:30).
- For times from 1:00 AM to 11:59 AM, the 24-hour time is the same (e.g., 9:45 AM = 09:45).
- For times from 12:00 PM (noon) to 12:59 PM, the 24-hour time is the same (e.g., 12:15 PM = 12:15).
- For times from 1:00 PM to 11:59 PM, add 12 hours (e.g., 1:00 PM = 13:00, 11:30 PM = 23:30).
To convert from 24-hour to 12-hour, do the reverse: if the hour is 0, change to 12 AM; if the hour is 1-11, keep it and add AM; if the hour is 12, keep it and add PM; if the hour is 13-23, subtract 12 and add PM.
Common Mistakes and Confusions
One common mistake is mixing up 12 AM and 12 PM. 12 AM is midnight, the start of the day, while 12 PM is noon. Many people get this wrong, especially when scheduling events. Another issue is forgetting to add 12 when converting PM times to 24-hour format, or subtracting 12 when converting back. Also, when writing times, some people use a colon (e.g., 3:30 PM) while others use a period (e.g., 3.30 PM) in some countries. The 12-hour clock can be ambiguous without the AM/PM suffix, which is why 24-hour time is often used in military, aviation, and international contexts.
When to Use 12-Hour vs 24-Hour Time
The 12-hour clock is common in everyday life in many English-speaking countries, such as the US, Canada, and the UK. It is used on analog clocks, in casual conversation, and in many consumer contexts. The 24-hour clock is more common in Europe, military, aviation, computing, and international business. It avoids the ambiguity of AM/PM and is easier to sort numerically. When traveling, it’s important to know which system the local culture uses to avoid missing appointments. Many digital devices allow you to switch between the two formats in settings.
Frequently Asked Questions
Is 12 AM midnight or noon?
12 AM is midnight, the start of the day. 12 PM is noon. This is the standard convention in most English-speaking countries, though it can be confusing because 12 is neither AM nor PM in a strict sense—it’s the transition point. To avoid confusion, many people use “12 noon” and “12 midnight” instead.
Why do some clocks show 00:00 instead of 12 AM?
00:00 is the 24-hour format for midnight. It is used in military time, aviation, and many digital devices. The 24-hour clock starts at 00:00 and ends at 23:59, so there is no 24:00 except in some contexts like train schedules where 24:00 might denote the end of the day.
How do I convert 12:30 PM to 24-hour time?
12:30 PM is noon, so in 24-hour time it is 12:30. For PM times after 12:59, you add 12 to the hour. For example, 1:30 PM becomes 13:30, and 11:30 PM becomes 23:30.
What does AM and PM stand for?
AM stands for ante meridiem, Latin for “before noon.” PM stands for post meridiem, Latin for “after noon.” These terms have been used since the Roman era and are still used today in the 12-hour clock.
Is the 12-hour clock used in all countries?
No. Many countries, especially in Europe and Latin America, use the 24-hour clock for official and written purposes, though the 12-hour clock may still be used in speech. For example, in English-speaking countries like the US and Canada, the 12-hour clock is dominant, while in Germany and France, the 24-hour clock is standard in writing.
Why is the 12-hour clock still used if it’s confusing?
The 12-hour clock is deeply ingrained in culture and habit. It works well for everyday conversation and analog clocks, which are more intuitive with 12 hours. The 24-hour clock is more precise, but the 12-hour clock is easier for most people to read at a glance. Both systems coexist, and many digital devices let you choose which one you prefer.
Related
Formula used
in t | Time (HH:MM) | - | 3:30 PM | 0 in f | Format | - | 12-hour=1, 24-hour=2 | 0 out converted | Converted time | - | f == 1 ? (t + 12) % 24 : ((t % 12) + 12) % 24 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.