A Venus page of the Dresden Codex: columns of day signs and bar-and-dot numbers beside three painted panels, the top one a seated god on a blue ground.
All articles

18 October 2026 · 13 min read

How the Maya Counted

Bars, dots and a shell for zero; a count by twenties with one place of eighteen; and calendar cycles that meet after whole numbers of days. Try the numerals and the counts, with the codex pages and the colonial sources beside them.

Their count is from 5 to 5 until 20, and from 20 to 20 until 100, and from 100 to 100 until 400, and from 400 to 400 until 8,000. And they made much use of this count for the trade of cacao. They have other very long counts, and which they extend in infinitum, counting them 8,000 twenty times, which is 160,000, and returning to 20 they double these 160,000, and then continue in this way doubling by 20 until they make an uncountable number: they count on the ground or on a flat thing.
Diego de Landa, Relación de las cosas de Yucatán, §XXIV (1864 edition), p. 134
Page 134 of Brasseur's 1864 edition of Landa, with the section on how the Yucatecans count

Diego de Landa wrote this in the 1560s, a few years after he had burned the Maya books he found at Maní. Three of those books survive anyway, in Dresden, Paris and Madrid, and they are full of numbers: columns of bars and dots in black and red, sums that run into the millions of days. This article goes through the system piece by piece. Each part has something to try, and beside it the page it comes from: Landa's Relación, the colonial dictionaries and books of Chilam Balam, the Dresden Codex itself, and the two scholars who first worked out its arithmetic, Ernst Förstemann and Charles Bowditch.

Twenty, four hundred, eight thousand

Spoken Yucatec counts in twenties. The great Motul dictionary, compiled by Franciscans in the sixteenth century, gives the words for each step.

the number twenty: hunkal. … twenty twenties: hunbak, 400. twenty times 400: hunpic: 8000.
Diccionario de Motul, Spanish-Maya part, p. 417
A page of the Motul dictionary with the Maya words for twenty, four hundred and eight thousand

Hun is one, so hunkal is one twenty, hunbak one four hundred, hunpic one eight thousand. These are the units Landa lists, and the same entry gives hunkatun for twenty years. Each unit is twenty of the one below it. Landa adds that the counts were kept on the ground or on a flat surface, which fits what we find in the codices: a number is a stack of places, each one worth twenty times the place beneath it.

Three marks

The written numbers use three signs. A dot is one, a bar is five, and a shell is zero. Any number from 1 to 19 is some dots over some bars: seven is two dots over a bar, nineteen is four dots over three bars. Twenty cannot be written in one place, so it moves up: one dot in the second place and a shell in the first.

Detail of a Dresden Codex page: rows of bar-and-dot numbers in black, a row of day signs each with a red number, and a red row beneath, next to a painted sky band with a hanging figure.
Bars and dots on a page of the Dresden Codex. Black numbers above, day signs with red numbers in the middle, and more numbers in red and black below. Dresden Codex.

Because a place can hold only nineteen, the position of a mark says what it is worth. This is the same idea as our own place value, built on twenty instead of ten. Try it below: type a number, or press the buttons beside each place.

Write a number the Maya way

8 × 360 = 2,880
2 × 20 = 40
0 × 1 = 0

total 2,920

Places stack from the bottom up, as in the codices. In plain counting every place is worth twenty of the one below; in the calendar the third place is 18 × 20 = 360, so that a tun comes near a year.

The two settings show the one irregularity in the system, which comes in the next section. In plain counting the third place is worth 400. In the calendar it is worth 360.

Zero, and how the scribes multiplied

A place-value system needs a way to say that a place is empty, or the stack falls apart: 400 and 20 and 1 would all be a single dot. The Maya had a zero, written as a shell in the codices and as several other signs in stone. Bowditch, working through the Dresden Codex in 1910, showed what it was by doing the scribe's sums. On Dresden 24 a series rises in steps of 2,920 days, and the fifth term has a zero in it. He works the multiplication the way the scribe would have to.

To perform the multiplication we should say, “Five times zero units give no units; put down the zero; five times 2 twenties give 10 twenties; put down the 10; five times 8 three-hundred-and-sixties give 40; but this is the same as 2 of the fourth place, with none left of the third place; therefore put down zero in the third place and 2 in the fourth place, as shown in the codex.”
Bowditch, The Numeration, Calendar Systems and Astronomical Knowledge of the Mayas (1910), p. 46
Page 46 of Bowditch, on the red zero of Dresden 24

So 2,920 is written 8 · 2 · 0 (eight 360s, two 20s, no units), and 5 × 2,920 = 14,600 is 2 · 0 · 10 · 0. The scribe carries just as we do, except that 18 in the third place makes one in the fourth, not 20. Press 14,600 in the number builder above to see it written out. On the monuments the zero is sometimes a face. Bowditch identified one form by the same reasoning, from what the number had to be for the date to come out.

the form of the head with a hand across the face must mean zero, since the day given in A6 is Ahau, and any other kin number (among those which we have heretofore found in such connection) if counted from Ahau, either forward or backward, would bring some other day than Ahau.
Bowditch, The Numeration, Calendar Systems and Astronomical Knowledge of the Mayas (1910), p. 98
Page 98 of Bowditch, on the head form of zero

Eighteen in the second place: the Long Count

When the Maya counted days, they broke the pattern once. Twenty days make a winal, but eighteen winals, not twenty, make a tun of 360 days, close to a year. Above that the count is in twenties again.

To express higher numbers the Mayas used the vigesimal system up to the katun and beyond, as will be explained later, except in the second term. Thus, 20 kins = 1 uinal. 18 uinals = 1 tun. 20 tuns = 1 katun.
Bowditch, The Numeration, Calendar Systems and Astronomical Knowledge of the Mayas (1910), p. 58
Page 58 of Bowditch, setting out the units of the long count

Twenty tuns make a k'atun of 7,200 days, and twenty k'atuns a b'ak'tun of 144,000. The monuments give dates as a count of days in these units from a fixed starting day, so that 9.9.2.4.8 means nine b'ak'tuns, nine k'atuns, two tuns, four winals and eight days. That starting day is written 13.0.0.0.0 and named 4 Ajaw 8 Kumk'u. The second name is its place in two other counts, the 260-day count and the 365-day year, both of which run alongside the Long Count.

Choose a date below to see it in every count at once. To turn a Maya day number into a date in our calendar you need to know which of our days was day zero. The standard answer, the Goodman-Martinez-Thompson correlation, puts it on 11 August 3114 BCE. Radiocarbon dates from carved wooden lintels at Tikal agree with it (Kennett and others, Scientific Reports, 2013). A variant two days later is in some astronomy software, and the converter lets you switch.

One day, every count

13b'ak'tun (144,000)
0k'atun (7,200)
0tun (360)
0winal (20)
0k'in (1)
Long Count
13.0.0.0.0
260-day count
4 Ajaw
365-day year
3 K'ank'in
Lord of the Night
G9
Our calendar
21 December 2012
Days since base
1,872,000
Every count is a remainder of one number: the days since the era base. The 260-day count is that number divided by 13 and by 20; the 365-day year, by 365; the Lords of the Night, by 9. The correlation is the day in our reckoning on which that number was zero. Dates before 1582 are shown in the proleptic Gregorian calendar.

Gears, and fifty-two years

The 260-day count pairs a number from 1 to 13 with one of twenty day names. Both advance every day: 1 Imix, 2 Ik', 3 Ak'b'al, and so on, until 13 Ben is followed by 1 Ix. Because 13 and 20 have no common factor, every pairing occurs once before the cycle repeats, after 260 days. The 365-day year runs beside it, eighteen months of twenty days and five more at the end. A given day in both counts comes back only when both have come round, after 18,980 days, or 52 years. Landa describes how the four day names that can begin a year divided the years among four gods, which is the subject of another article.

The counts behave like meshing gears with one tooth for each day: a gear of 13 teeth, one of 20 and one of 365, all turning a tooth a day. The colonial books drew the k'atuns on a wheel; gears are a modern picture of the same arithmetic. Each gear has a gold mark that starts on the reading line. Turn them and see how long it takes for all the marks to come back to it together.

The counts as gears

ImixIk'Ak'b'alK'anChikchanKimiManik'LamatMulukOkChuwenEb'B'enIxMenKib'Kab'anEtz'nab'KawakAjaw12345678910111213Pop12345678910111213141516171819Wo'12345678910111213141516171819Sip12345678910111213141516171819Sotz'12345678910111213141516171819Sek12345678910111213141516171819Xul12345678910111213141516171819Yaxk'in12345678910111213141516171819Mol12345678910111213141516171819Ch'en12345678910111213141516171819Yax12345678910111213141516171819Sak'12345678910111213141516171819Keh12345678910111213141516171819Mak12345678910111213141516171819K'ank'in12345678910111213141516171819Muwan12345678910111213141516171819Pax12345678910111213141516171819K'ayab'12345678910111213141516171819Kumk'u12345678910111213141516171819Wayeb'1234
Day names · 20 teeth
Ajaw
Numbers · 13 teeth
4
365-day year · 365 teeth
8 Kumk'u
Days turned
0
Gold marks together
every 18,980 days: together now, at the start
Thirteen numbers and twenty names make the 260-day count; the 365-day year turns beside them. The three marks meet again after 18,980 days, 52 years. Here the gears really mesh: the same tooth spacing on all three, so the year gear is too big to show whole.

The same arithmetic explains three rows of numbers in the Book of Chilam Balam of Kaua, a Yucatec manuscript copied in the eighteenth century and photographed by Teobert Maler in 1887. The page lists the numbers that come round when one counts by months and by k'atuns.

There was another number that they call Katun, which served almost as a key to find and establish the Katuns according to the order of their movement. … Katuns: 13. 11. 9. 7. 5. 3. 1. 12. 10. 8. 6. 4. 2.
Book of Chilam Balam of Kaua, Maler's photographs, p. 278
A page of the Kaua manuscript with rows of numbers for the months and the k'atuns

A k'atun is 7,200 days, and 7,200 is 553 thirteens with 11 left over. So each k'atun moves the day number on by 11, which in a count of 13 is the same as going back 2. The k'atuns were named by the day on which they ended, always a day Ajaw, and their numbers fall by two each time. The other two rows on the page come out the same way from 20 days and 360 days.

The three rows on the Kaua page

7,200 = 553 × 13 + 11, so each step moves the number on by 11 (or back by 2)

Counted13119753112108642
Kaua, “Katuns”13119753112108642
✓✓✓✓✓✓✓✓✓✓✓✓✓
Each step adds the same number of days, so the day number moves on by that many days counted in thirteens. A k'atun of 7,200 days is 553 thirteens and 11 over, and adding 11 in a count of 13 is the same as going back 2: so the k'atuns come 13, 11, 9, 7…

Whole numbers instead of fractions

Venus takes about 583.92 days to return to the same place in the sky as seen from the Earth. The Maya scribes had no fractions. What they had instead was the habit of looking for a number of days in which several cycles all come out even. Five Venus cycles of 584 days are 2,920 days, and so are eight years of 365. Five pages of the Dresden Codex are built on this.

A Venus page of the Dresden Codex: columns of glyphs and numbers on the left, and three painted panels on the right, the middle one a figure with a spear, the bottom one a speared animal.
One of the five Venus pages of the Dresden Codex (Förstemann's pages 46 to 50). The columns hold day names and the intervals between them; the paintings show Venus as a spear-thrower and the one it strikes. Dresden Codex.
Now 2920 = 5 × 584 = 8 × 365. But 583.92 days is the length of the synodical revolution of the planet Venus, and 365.25 days is the length of the solar revolution of the earth.
Bowditch, The Numeration, Calendar Systems and Astronomical Knowledge of the Mayas (1910), p. 55
Page 55 of Bowditch, on the Venus pages of the Dresden Codex

The table runs the 2,920-day count thirteen times, so that it also comes out even with the 260-day count. Bowditch shows that the whole table returns to the day it started from.

The whole thirteen rows will then cover 13 × 2920 days, or 37,960 days, or 8 × 13 = 104 years of 365 days, or 65 synodical revolutions of Venus.
Bowditch, The Numeration, Calendar Systems and Astronomical Knowledge of the Mayas (1910), p. 56
Page 56 of Bowditch, on the 37,960 days of the Venus table

37,960 days is 146 runs of the 260-day count, 104 years and 65 Venus cycles. Choose cycles below to see where they meet. Whole days cannot match the sky exactly: by the end of the 37,960 days the 584-day Venus count has run about five days ahead of the planet. The table has places that look like corrections for this, and how they work is still argued over.

When do the cycles meet?

2,920 days

8 × 365 = 5 × 584

8 years · -1.9 d5 Venus cycles · +0.4 d
Each row marks where one cycle ends, laid out to the day all the chosen cycles end together. The tables count whole days only, so they run slightly off the sky; the last column shows how far by the meeting day, using modern lengths for the year and the synodic periods of the planets.

The counts as gears

1 Imix8 Imix2 Imix9 Imix3 Imix10 Imix4 Imix11 Imix5 Imix12 Imix6 Imix13 Imix7 Imix260-day countPopWo'SipSotz'SekXulYaxk'inMolCh'enYaxSak'KehMakK'ank'inMuwanPaxK'ayab'Kumk'uWayeb'365-day yearmorning star 236unseen 90evening star 250Venus
260-day count · 260 teeth
4 Ajaw
365-day year · 365 teeth
8 Kumk'u
Venus · 584 teeth
day 1 of 584
Days turned
0
Gold marks together
every 37,960 days: together now, at the start
The Dresden Venus pages: 5 × 584 = 8 × 365, and thirteen times that, 37,960 days, the 260-day count comes round too. The bands on the Venus gear are the four parts of the cycle as Bowditch reads the table. These gears are drawn the same size, so their teeth are not to scale.

A multiplication table, and the moon

Dresden 24, the page with the zero Bowditch worked through, is in effect a multiplication table.

On Dresden 24 this number 2920 is used as a factor or difference, the page affording a kind of multiplication table up to 13 times 2920, or 5.5.8.0.
Bowditch, The Numeration, Calendar Systems and Astronomical Knowledge of the Mayas (1910), p. 211
Page 211 of Bowditch, opening the chapter on other astronomical knowledge

The moon is harder, because a lunar month is about 29.53 days and no small whole number of months comes out even. The eclipse table on Dresden 51 to 58 lists 405 lunar months. Förstemann read how the scribe made it add up: months of 29 and 30 days grouped into runs of six, with a few runs of five.

Now the Mayas had determined the lunar revolution so exactly that they perceived the incompatibility of the period of 11,960 days with a multiple of lunar revolutions. They found that 405 lunar revolutions amounted approximately to 11,958 days, which is, in fact, the largest number on the second half of page 58.
Förstemann, Commentary on the Maya Manuscript in the Royal Public Library of Dresden (1906), p. 160
A page of Förstemann's commentary on the lunar table of the Dresden Codex

At the modern length of the month, 405 months are 11,959.9 days. Förstemann goes on to show the steps the table uses: 177 days for six months (three of 29 and three of 30) and 148 for five, mixed so that the average month comes out close to the true one. The span of the table, 11,960 days, is also exactly 46 runs of the 260-day count, so the table starts again on the same day of the ritual calendar.

Serpent numbers

The largest numbers in the codex are painted inside the coils of serpents on pages 61 to 69. They are counts of more than twelve million days, more than 34,000 years, and each one lands on a chosen day in both the 260-day count and the year. Förstemann, checking them, noticed how closely they were related.

Further, it is to be noted that the largest of the eight numbers, 12,489,781, is separated from the lowest, 12,388,121 (i.e., the black number from the red one of the first serpent), by only 101,660. … 101,660 = 5 × 18,980 + 26 × 260 or 391 × 260 or 7,820 × 13.
Förstemann, Commentary on the Maya Manuscript in the Royal Public Library of Dresden (1906), p. 190
A page of Förstemann's commentary on the serpent numbers

The difference between the two numbers is a whole number of 260-day counts, so both land on the same day of that count. Förstemann ends the passage by asking how the person who made the table worked the values out. The method is the one this article has followed from the start: place value in twenties, with eighteen in the third place, and cycles that meet after a whole number of days.

What has been found since

Bowditch and Förstemann had the three codices and a few hundred inscriptions. Most of what has changed since then has come out of the ground.

The oldest dated day. In 2022 David Stuart, Heather Hurst, Boris Beltrán and William Saturno published two fragments of painted plaster from San Bartolo in Guatemala that carry the day 7 Deer, written as a bar and two dots beside a deer's head. Charcoal from the same sealed layer dates them to roughly 300 to 200 BCE, which makes them the earliest securely dated record of the 260-day count (Stuart and others, Science Advances, 2022). The count was already written down, bars and dots and all, some fifteen centuries before the Dresden Codex.

Older still, in the buildings. A lidar survey of 415 ceremonial complexes on the southern Gulf Coast of Mexico, built between about 1100 BCE and 250 CE, found most of them aligned to sunrises on dates spaced by multiples of 13 and 20 days, the units of the 260-day count. Ivan Šprajc, Takeshi Inomata and Anthony Aveni read this as the count in use centuries before any surviving inscription (Science Advances, 2023). Aguada Fénix, the largest early Maya platform, is among them.

Tables on a wall. At Xultun in Guatemala, in a small room painted in the early ninth century, Saturno, Stuart, Aveni and Franco Rossi found columns of numbers written on the plaster: lunar tables, and possibly tables for Venus and Mars, some five hundred years older than the Dresden Codex. One array of 4,784 days, 162 lunar months, is laid out much like the Dresden eclipse table (Stuart, Maya Decipherment, 2012; the report is in Science 336, 2012). The astronomy of the codices had a long working life behind it.

The 819-day count. Many Classic inscriptions give a fourth count, of 819 days, which is 7 × 9 × 13. Its purpose was long unclear. John Linden and Victoria Bricker proposed in 2023 that it was meant to be run twenty times: 20 × 819 = 16,380 days, which is a whole number of 260-day counts and of 780-day Mars cycles, and close to whole numbers of the other visible planets (Ancient Mesoamerica, 2023). Choose the 819-day count and Mars in the cycles above, or the third set of gears, to see where they meet. It is the same method as the Venus pages.

How the eclipse table was used. John Justeson and Justin Lowry argued in 2025 that the Dresden table began as a lunar calendar, fitted to the 260-day count through the 46 runs it contains, and was then reset at its end in ways that kept its eclipse warnings usable for centuries (reported in Sky & Telescope; the paper is in Science Advances, 2025).

Stuart's book The Order of Days is the readable account of how these counts fit into Maya ideas about time, written in the run-up to 2012. Its main point about that year is the one the arithmetic above makes: 13.0.0.0.0 was the completion of a count, and the counts kept going. Inscriptions at Palenque name dates thousands of years beyond it.

The English of Landa, the Motul dictionary and the Kaua book is the library's translation. Bowditch and Förstemann are quoted from their printed English. The Paris Codex and Brinton's Maya Chronicles, on the colonial count of k'atuns, are also in the library. The date converter uses the proleptic Gregorian calendar for all dates.

How this article was made

This is an AI-assisted article. Derek Lomas set the question; AI models searched the library, read the sources and drafted the text, which was reviewed before it was published.

Every quotation is checked by machine against the scanned page it comes from and links to that page, so you can read the original yourself. The article is a living document: it is revised when a reader finds an error or the library gains a better source.

How these articles are made · Revision history · Spot an error? Suggest an edit

More from the same category first, then the newest articles.