Mayan Calendar Calculator - Tzolk'in, Haab, Long Count, and Lord of the Night
Mayan calendar calculator: convert a Gregorian date to a long count, Tzolk'in sacred round, Haab solar year, and Lord of the Night, or read a long count back to a Gregorian date with BCE support.
Mayan Calendar Calculator
Results
What Is the Mayan Calendar Calculator?
A Mayan calendar calculator is a one-page tool that converts a Gregorian date into the four interlocking Mayan date labels (long count, Tzolk'in sacred round, Haab solar year, and Lord of the Night), and that also reads a long count such as 13.0.0.0.0 back to a Gregorian date. It uses the Goodman-Martinez-Thompson (GMT) correlation at JDN 584,283.
- • Birthday lookup: Find what Tzolk'in, Haab, and Lord of the Night labels fall on a modern Gregorian birthday.
- • Historical archaeology: Convert a Maya inscription's long count back to a Gregorian date to compare with the European record.
- • 2012 end-of-cycle study: Confirm that 21 December 2012 corresponds to long count 13.0.0.0.0, the start of the 13th b'ak'tun.
- • Calendar math: Verify how a 260-day sacred round and a 365-day solar year interlock with the long count position.
The Maya tracked time with four parallel calendars: the 260-day Tzolk'in, the 365-day Haab, the five-position long count, and the nine-position Lord of the Night. The long count makes the system repeat only once every 5,125 years.
To read each long count position as dots, bars, and a shell glyph for zero, Mayan Numeral Calculator turns any decimal value up to 3,199,999 into the base-20 Maya glyph stack.
How the Mayan Calendar Calculator Works
The calculator reads the direction selector and the active input block, converts to a Julian Day Number (JDN), subtracts 584,283 to get the elapsed days since creation, then peels off the long count plus the Tzolk'in, Haab, and Lord of the Night labels from that elapsed-days value.
- direction: gregorian-to-mayan reads the date inputs and emits the four Mayan labels; long-count-to-gregorian reads the five long count positions and emits the matching Gregorian date plus the four labels.
- gregorianYear / gregorianMonth / gregorianDay: Gregorian date inputs. Year accepts negative integers for BCE dates down to -3113.
- baktun, katun, tun, uinal, kin: Long count positions for long-count-to-gregorian. b'ak'tun accepts 0 to 19, matching the Maya vigesimal range; uinal caps at 17 and the rest at 19.
The Tzolk'in position comes from elapsed days modulo 13 for the number and modulo 20 for the day name. The Haab position comes from elapsed days modulo 365, with days 360 to 364 falling in the five-day wayeb' unlucky period. The Lord of the Night comes from elapsed days modulo 9, anchored so the creation day reads G 9.
Gregorian 17 July 2021 to all four Mayan labels
Year = 2021, Month = 7, Day = 17.
JDN = 2,459,413; elapsed = 1,875,130 days.
Long count 13.0.8.12.10, Tzolk'in 1 Ok, Haab 8 Xul, Lord G 7.
All four labels come from the same elapsed-days value, so changing the day by one advances each label by its own period.
Long count 12.19.6.1.9 back to a Gregorian date
b'ak'tun = 12, k'atun = 19, tun = 6, uinal = 1, k'in = 9.
JDN = 2,451,272.
Long count 12.19.6.1.9, Gregorian 03/04/1999, Tzolk'in 11 Muluk, Haab 2 Wayeb, Lord G 2.
Sum the long count positions, add 584,283, and the JDN-to-Gregorian algorithm returns the date.
According to World History Encyclopedia: Mesoamerican Long Count Calendar, the Long Count uses 1 b'ak'tun = 144,000 days, 1 k'atun = 7,200 days, 1 tun = 360 days, 1 uinal = 20 days, and 1 k'in = 1 day, anchored to 11 August 3114 BCE.
Key Concepts Behind the Mayan Calendar
Four short ideas cover the pieces of the Mayan calendar system that the calculator returns. Once they are clear, the four label rows on the result panel stop being four unrelated strings and start being one date described from four angles.
The long count as a day counter
The long count is a vigesimal (base-20) day counter that wraps every 144,000 days into a new b'ak'tun, 7,200 days into a k'atun, 360 days into a tun, 20 days into a uinal, and 1 day into a k'in. The creation day is 0.0.0.0.0.
The Tzolk'in sacred round
The Tzolk'in combines a 13-day number cycle with a 20-day name cycle (Imix, Ik', ... Ajaw) so each day has a unique pair like 5 Lamat. The full sacred round takes 13 x 20 = 260 days to repeat.
The Haab solar year and wayeb'
The Haab has 18 named months of 20 days each, plus a five-day wayeb' period the Maya considered unlucky. 18 x 20 + 5 = 365 days, close to the true solar year but with no leap-year correction.
The Lords of the Night
The Lord of the Night is a nine-god cycle that runs alongside the long count, identified by G plus a number 1 to 9 (G 1 Xiuhtecuhtli through G 9 Tlaloc).
These four pieces turn a single Gregorian day into four overlapping labels: the long count gives the absolute position, the Tzolk'in gives the ritual position, the Haab gives the solar position, and the Lord of the Night gives the underworld-day position.
According to World History Encyclopedia: Tzolk'in Calendar, the sacred round combines a 13-day number cycle with a 20-day name cycle (Imix through Ajaw), producing 13 x 20 = 260 unique day combinations before it repeats.
To see the same Gregorian-to-foreign-year conversion for a planetary year, Age On Other Planets Calculator takes a birthday and returns an age in Mercury, Venus, Mars, Jupiter, and Saturn years.
How to Use the Mayan Calendar Calculator
Pick a direction, type either a Gregorian date or a long count, and the result panel updates in real time.
- 1 Pick the conversion direction: Choose Gregorian date -> Mayan labels or Long count -> Gregorian date plus the four labels.
- 2 Type a Gregorian date (or use a negative year for BCE): Enter the year, month, and day. For BCE, type the year as a negative number (e.g. -3113 for 11 August 3114 BCE). February allows 29 only in leap years.
- 3 Or type a long count: Switch to long-count-to-gregorian and enter b'ak'tun, k'atun, tun, uinal, k'in as five numbers.
- 4 Read the long count row: The Long Count row shows the five-number position, for example 13.0.8.12.10. Each k'in is one day.
- 5 Read the Tzolk'in, Haab, and Lord of the Night rows: Tzolk'in shows a 1-13 number plus a 20-day name. Haab shows a 1-20 day plus an 18-month name, or a wayeb' day. Lord of the Night shows G 1 through G 9 plus the deity name.
- 6 Cross-check with the Gregorian Date row: The Gregorian Date row formats the input date (or the date implied by the long count) as dd/mm/yyyy with a BCE suffix when needed.
Example: a teacher wants to show students that 21 December 2012 was the start of the 13th b'ak'tun, not an apocalypse. They pick the gregorian-to-mayan direction, type year 2012, month 12, day 21, and read long count 13.0.0.0.0.
For plain days, weeks, or months between two modern Gregorian dates, Date Difference Calculator returns the same kind of day count from any start and end date.
Benefits of Using This Mayan Calendar Calculator
The Mayan calendar looks complex because it uses four labels instead of one, but each label is deterministic and the math behind it is short.
- • Four labels in one place: The long count, Tzolk'in, Haab, and Lord of the Night all update from the same elapsed-days value.
- • Two-way conversion: Switch the direction to read a long count from an inscription back to a Gregorian date, then verify the result by switching back.
- • BCE dates back to the creation day: Type a negative year to enter a date as far back as 11 August 3114 BCE.
- • Live update on every change: Change any input and the result panel updates instantly. No Calculate button to forget.
- • Validation for impossible dates: The calculator rejects 30 February, 31 April, 29 February in non-leap years, and dates before the creation day.
- • Same source as scholarly references: The 584,283 creation-day offset matches the GMT correlation, the most widely cited correlation in Mayan studies.
The biggest practical win is that the four labels cannot drift apart: they all come from the same elapsed-days value, and a single change to any input rewrites all four rows at once.
For the same date math on a modern problem, like total years, months, and days of employment across multiple jobs, Work Experience Calculator sums date ranges and subtracts overlaps or gaps from work histories.
Factors That Affect the Result and Its Limits
The four Mayan labels are deterministic, but the inputs that drive them have a few important limits.
Correlation constant (584,283)
The JDN offset 584,283 maps the Mayan creation day 0.0.0.0.0 to 11 August 3114 BCE. This is the GMT correlation.
Direction selector
gregorian-to-mayan reads the date inputs and emits the four labels; long-count-to-gregorian reads the five long count positions.
Long count b'ak'tun is capped at 0 to 19
Each long count position follows the Maya vigesimal range, so b'ak'tun, k'atun, tun, and k'in cap at 19, uinal at 17. The form rejects values outside that range.
Haab has no leap year
The Haab cycle is exactly 365 days. The Maya accepted the slow drift and did not insert a leap day.
- • The calculator uses the GMT correlation. An inscription written using a different Mayan correlation will be off by a small fixed number of days.
- • The Haab and Tzolk'in labels assume the Maya convention that the day starts at sunrise.
Within those limits the calculator matches the published GMT correlation at JDN 584,283, the same constant used in standard Long Count references.
According to World History Encyclopedia: Haab' Calendar, the Haab' is a 365-day solar year made up of 18 named months of 20 days each (Pop through Kumk'u) plus a five-day wayeb' period.
To see how a numeric day offset can anchor a calendar, Unix Time Calculator uses a Unix epoch offset the same way this calculator uses the GMT JDN 584,283 anchor.
Frequently Asked Questions
Q: What is the Mayan calendar calculator?
A: The Mayan calendar calculator is a one-page tool that converts a Gregorian date to the four Mayan labels (long count, Tzolk'in sacred round, Haab solar year, and Lord of the Night) and that also reads a long count such as 13.0.0.0.0 back to a Gregorian date, using the GMT correlation.
Q: How do I convert a Gregorian date to a Mayan long count?
A: Pick the gregorian-to-mayan direction, type the year, month, and day, and read the long count row. For dates before 1 CE, type the year as a negative number (for example -3113 for 11 August 3114 BCE). The calculator computes the JDN internally and subtracts 584,283.
Q: What does a Mayan long count date like 13.0.0.0.0 mean?
A: A long count is five numbers separated by periods, written largest first: b'ak'tun.k'atun.tun.uinal.k'in. 13.0.0.0.0 means the 13th b'ak'tun has just started, with zero k'atun, tun, uinal, and k'in elapsed. It corresponds to 21 December 2012 in the GMT correlation.
Q: How do I convert a long count date back to a Gregorian date?
A: Pick the long-count-to-gregorian direction, enter the five long count numbers in order, and read the Gregorian Date row. The calculator multiplies each position by its day count, sums them, adds 584,283, and runs the Fliegel-Van Flandern JDN-to-Gregorian algorithm.
Q: What is the Tzolk'in 260-day sacred round?
A: The Tzolk'in sacred round combines a 13-day number cycle with a 20-day name cycle, producing 13 x 20 = 260 unique day combinations before the round repeats. The number cycles 1 to 13 and the day name cycles Imix, Ik', Ak'b'al, K'an, Chikchan, Kimi, Manik', Lamat, Muluk, Ok, Chuwen, Eb', B'en, Ix, Men, Kib', Kab'an, Etz'nab', Kawak, and Ajaw.
Q: What is the Haab 365-day calendar and what is wayeb'?
A: The Haab is the 365-day Maya solar year, made up of 18 named months of 20 days each (Pop, Wo', Sip, Sotz', Sek, Xul, Yaxk'in, Mol, Ch'en, Yax, Sak', Keh, Mak, K'ank'in, Muwan, Pax, K'ayab', Kumk'u) followed by a five-day wayeb' period that the Maya considered unlucky.