24 Hour to 12 Hour Converter
Convert any 24-hour (military) time to 12-hour AM/PM format and vice versa. Enter values for instant results with step-by-step formulas.
Calculator
Adjust values & calculateCommon Conversions
Complete 24-Hour Reference
Formula
For 24-to-12 conversion: Hours 0-11 are AM, hours 12-23 are PM. Subtract 12 from PM hours (13-23) to get the 12-hour value. Special cases: hour 0 becomes 12 AM (midnight), hour 12 stays 12 PM (noon). Minutes are unchanged.
Last reviewed: December 2025
Worked Examples
Example 1: Afternoon Time Conversion
Example 2: Midnight Conversion
Background & Theory
The 24 Hour to 12 Hour Converter applies the following established principles and formulas. Date and time calculations underpin a vast range of applications from financial settlement to scheduling and age verification. The complexity arises because civil timekeeping uses irregular units: months have 28, 29, 30, or 31 days; years have 365 or 366 days; hours, minutes, and seconds use base-60 arithmetic; and time zones introduce offsets ranging from -12:00 to +14:00 relative to UTC. The Gregorian calendar's leap year rule is a compound condition: a year is a leap year if it is divisible by 4, except for century years, which must be divisible by 400. Thus 1900 was not a leap year but 2000 was. This rule keeps the calendar synchronized with the solar year to within about 26 seconds per year. For algorithmic date calculations, the Julian Day Number provides a continuous integer count of days since January 1, 4713 BCE, eliminating the irregularity of calendar months and making interval arithmetic straightforward. The Unix epoch, by contrast, counts seconds since 00:00:00 UTC on January 1, 1970, and is the basis of POSIX time used in most computing systems. ISO 8601 standardizes date and time representation as YYYY-MM-DD and combined datetime as YYYY-MM-DDTHH:MM:SSยฑHH:MM, ensuring unambiguous machine-readable interchange across locales that would otherwise differ in day/month/year ordering. Business day calculation requires excluding weekends and, optionally, a jurisdiction-specific list of public holidays. Duration calculations expressed in years, months, and days must account for the variable length of months, making them non-commutative: the interval from January 31 to February 28 is different from the interval from February 28 to March 31. Age calculation algorithms must handle the edge case of birthdays on February 29 and ensure that a person born on December 31 is not counted as one year older on January 1 of the following year until the clock passes midnight. Zeller's Congruence provides a closed-form formula to determine the day of the week for any Gregorian or Julian calendar date using only integer arithmetic.
History
The history behind the 24 Hour to 12 Hour Converter traces back through the following developments. The need to track time and predict astronomical events gave rise to calendrical systems independently across many civilizations. The Babylonians, around 2000 BCE, developed a lunisolar calendar with 12 months of alternating 29 and 30 days, inserting an intercalary month periodically to keep pace with the solar year. They also divided the day into 24 hours and the hour into 60 minutes, a sexagesimal convention that persists in every modern clock. The Egyptian civil calendar used 12 months of exactly 30 days plus five epagomenal days, totaling 365 days. Though simple for administrative purposes, it drifted against the solar year by one day every four years. Julius Caesar, advised by the Egyptian astronomer Sosigenes, reformed the Roman calendar in 45 BCE. The Julian calendar introduced a 365-day year with a leap day every four years, a system that served Europe for over sixteen centuries. By the 16th century, the accumulated error of the Julian calendar had shifted the spring equinox ten days from its ecclesiastically mandated date, disrupting the calculation of Easter. Pope Gregory XIII commissioned the calendar reform that bears his name, and the Gregorian calendar was introduced in Catholic countries in October 1582. The transition required skipping ten days: October 4 was followed by October 15. Protestant and Orthodox countries adopted the reform slowly; Britain and its colonies switched in 1752, Russia not until 1918, and Greece in 1923. The expansion of railways in the 1840s created an urgent practical problem: each city operated on its own local solar time, making train timetables impossible to coordinate. British railways adopted Greenwich Mean Time as a standard in 1847. The International Meridian Conference of 1884 in Washington formalized the prime meridian at Greenwich and established the global framework of 24 time zones. Daylight saving time was first adopted nationally during World War I to reduce coal consumption. The development of atomic clocks after World War II led to the definition of Coordinated Universal Time (UTC) in 1960, accurate to nanoseconds. The Y2K problem of 1999-2000 demonstrated that two-digit year storage in legacy systems could cause widespread failures, prompting a global remediation effort costing an estimated 300 to 600 billion dollars.
Frequently Asked Questions
Sources & References
Formula
If hour >= 12: PM, hour12 = hour - 12 (or 12 if 0). If hour < 12: AM, hour12 = hour (or 12 if 0).
For 24-to-12 conversion: Hours 0-11 are AM, hours 12-23 are PM. Subtract 12 from PM hours (13-23) to get the 12-hour value. Special cases: hour 0 becomes 12 AM (midnight), hour 12 stays 12 PM (noon). Minutes are unchanged.
Worked Examples
Example 1: Afternoon Time Conversion
Problem: Convert 14:30 (24-hour) to 12-hour format.
Solution: Hour is 14, which is greater than 12, so it is PM.\nSubtract 12 from the hour: 14 - 12 = 2.\nMinutes stay the same: 30.\nResult: 2:30 PM.\nMilitary spoken form: fourteen thirty hours.
Result: 14:30 = 2:30 PM
Example 2: Midnight Conversion
Problem: Convert 00:15 (24-hour) to 12-hour format.
Solution: Hour is 0, which is the special midnight case.\nIn 12-hour format, hour 0 becomes 12 AM.\nMinutes stay the same: 15.\nResult: 12:15 AM.\nMilitary spoken form: zero zero fifteen hours.
Result: 00:15 = 12:15 AM (fifteen minutes past midnight)
Frequently Asked Questions
How do I convert 24-hour time to 12-hour time?
Converting 24-hour time to 12-hour time follows simple rules. For hours 1 through 11, the number stays the same and you add AM. For hour 0 (midnight), it becomes 12 AM. For hour 12 (noon), it stays 12 but you add PM. For hours 13 through 23, subtract 12 from the hour and add PM. For example, 14:30 becomes 2:30 PM (14 minus 12 equals 2), 09:15 stays 9:15 AM, 00:00 becomes 12:00 AM, and 23:45 becomes 11:45 PM (23 minus 12 equals 11). Minutes always remain the same in both formats. The trickiest conversions for most people are midnight (00:00 equals 12:00 AM) and noon (12:00 equals 12:00 PM).
Why do some countries use 24-hour time and others use 12-hour time?
The choice between 24-hour and 12-hour time formats is primarily cultural and historical. Most countries worldwide actually use the 24-hour format for written communication, with the 12-hour format being more common in everyday speech. The United States, Canada, Australia, and the Philippines are among the countries that predominantly use the 12-hour format in daily life. Europe, Latin America, Asia, and Africa generally prefer the 24-hour format. The 12-hour system has ancient roots in Egyptian sundials and Babylonian timekeeping, while the 24-hour format became widespread through military use, aviation, and international standardization. Many countries use a hybrid approach where people speak in 12-hour format colloquially but write official times in 24-hour format.
What is military time and how is it different from 24-hour time?
Military time is essentially the same as 24-hour time but with some formatting differences and spoken conventions. In standard 24-hour time, you write 14:30 with a colon separator. In military time, you write 1430 without the colon and pronounce it as fourteen thirty hours. Midnight is 0000 (zero hundred hours), noon is 1200 (twelve hundred hours), and times are always spoken with the word hours at the end. Another difference is that military time always uses four digits, so 9:00 AM is written as 0900 rather than 9:00. Military time was adopted by the US military to eliminate ambiguity in communications where confusing AM and PM could have life-threatening consequences. Many emergency services, hospitals, and aviation operations worldwide use this format for the same reason.
How do I quickly tell if a 24-hour time is AM or PM?
The quickest way to determine AM or PM from a 24-hour time is to look at the hour digits. If the hour is between 00 and 11, it is AM. If the hour is between 12 and 23, it is PM. For the PM hours (13-23), simply subtract 12 to get the 12-hour equivalent: 13 becomes 1 PM, 14 becomes 2 PM, and so on up to 23 becoming 11 PM. A helpful mental trick for hours 13-19 is to subtract 10 and then subtract 2 more (or just remember that the ones digit matches the PM hour for 13-19: 13=1, 14=2, etc.). For hours 20-23, subtract 20 and add 8 (20=8, 21=9, 22=10, 23=11). With practice, these conversions become automatic and instantaneous.
Why is 24-hour time used in healthcare?
Healthcare facilities use 24-hour time (often called hospital time) because medication administration, patient monitoring, and medical records require absolute time clarity. An error confusing 2:00 AM with 2:00 PM for a medication dose could lead to a 12-hour delay in treatment, a dangerous double dose, or a missed critical administration window. Studies have shown that AM/PM errors in hospital charting are a real and documented source of medication errors. The Joint Commission, which accredits healthcare organizations, recommends using 24-hour time in medical records. Electronic health record systems typically display times in 24-hour format by default. Emergency medical services, pharmacies, and laboratory results also use 24-hour time to maintain consistency across the healthcare chain.
Can I use 24 Hour to 12 Hour Converter on a mobile device?
Yes. All calculators on NovaCalculator are fully responsive and work on smartphones, tablets, and desktops. The layout adapts automatically to your screen size.
References
Reviewed by Abdullah, Technical Content Specialist ยท Editorial policy