Maya Mathematics
A civilization that independently invented zero, positional notation, and remarkably precise astronomical arithmetic — centuries before these ideas reached the Western world.
§ 1 — Cultural & Historical Context
Origins and Civilization Context
The Maya civilization flourished across present-day southern Mexico, Guatemala, Belize, Honduras, and El Salvador for more than two millennia. At its Classic Period peak (c. 250–900 CE), it encompassed dozens of rival city-states — Tikal, Palenque, Copán, Calakmul — each a center of architecture, art, writing, and science. Mathematics was not an abstract pursuit but an instrument of power, theology, and statecraft.
Maya mathematical tradition grew from practical needs: land surveying, tribute accounting, market exchange, and above all the extraordinarily precise coordination of their interlocking calendar systems. Unlike many ancient civilizations where mathematics remained in the hands of a merchant class, among the Maya it was cultivated by a specialized priestly caste called the Ah Kʼin ("He of the Sun"), who functioned simultaneously as astronomers, calendar-keepers, and mathematicians.
Mathematical knowledge was recorded in codices — screenfold books made from bark paper coated with gesso. Of an original corpus likely numbering in the hundreds, only four survived the systematic destruction by Spanish missionaries in the 16th century: the Dresden, Madrid, Paris, and recently authenticated Grolier Codices. The Dresden Codex in particular is a masterwork of astronomical and mathematical calculation, containing Venus tables accurate to within two minutes of arc per year.
Historical Timeline
c. 400 BCE – 200 CE — Preclassic Period: earliest Maya bar-and-dot numbers appear in stelae inscriptions. Long Count in use by 36 BCE.
250 – 900 CE — Classic Period: flourishing of astronomical tables, corbeled-arch architecture, and elaborate Long Count inscriptions. Dresden Codex originates here.
900 – 1200 CE — Terminal Classic & Postclassic: mathematical tradition continues; Madrid and Paris Codices produced.
1562 CE — Bishop Diego de Landa orders the burning of Maya manuscripts at Maní, Yucatán — catastrophic destruction of the written mathematical record.
1880 – present — Ernst Förstemann deciphers Maya arithmetic and the Venus Table (1880); full decipherment of Maya script by the late 20th century.
§ 2 — Notation & Arithmetic
The Vigesimal Numeral System
The Maya used a base-20 (vigesimal) positional system — almost certainly because human beings have twenty digits (fingers and toes). This contrasts with the base-10 system predominant today, which privileges fingers alone. Within the vigesimal frame, the Maya also employed a sub-base of 5, reflected in the grouping of dot units into sets of five represented by a single bar.
The Three Maya Symbols
- Dot (·) — value 1. Up to 4 dots per position.
- Bar (—) — value 5. Up to 3 bars per position (giving 15).
- Shell (𝟘) — value 0. Placeholder and true zero concept.
Any digit 0–19 is written as: ⌊n/5⌋ bars + (n mod 5) dots.
The twenty symbols for digits 0–19 are combined in a vertical positional column, reading from bottom to top. The general place-value formula is:
Place-Value Formula
where dk is the digit at position k, read bottom-up.
Example: Representing 349 in Maya Notation
$$349 = 17 \times 20^1 + 9 \times 20^0$$
Top position (17): 3 bars + 2 dots = 15 + 2 = 17
Bottom position (9): 1 bar + 4 dots = 5 + 4 = 9
Arithmetic Operations
Addition and subtraction follow simple visual rules: 5 dots become 1 bar, and 4 bars become 1 carry into the next position (since 4 × 5 = 20). Multiplication appears implicitly in calendar-cycle calculations — the Dresden Codex reveals sophisticated use of least common multiples to synchronize different cycles.
Comparative Place Values
Base 10: positions represent 1, 10, 100, 1,000, … (powers of 10).
Maya base 20: positions represent 1, 20, 400, 8,000, 160,000, … (powers of 20).
Long Count exception: 1, 20, 360, 7,200, 144,000 days (3rd level uses 18×20 to approximate the solar year).
Video: The Maya Base-20 Number System
A clear visual introduction to the vigesimal (base-20) numeral system used by the ancient Maya.
Video: How Did Mayans Count to Infinity with Just 3 Symbols?
An engaging explanation of how the Maya dot-bar-shell system encodes arbitrarily large numbers.
Video: How Did the Mayans Count?
Overview of Maya counting, the three symbols, and their arithmetic.
§ 3 — The Invention of Zero
Zero: An Independent Discovery
The invention of zero stands among the most profound conceptual achievements in the history of thought. Without it, positional notation — and hence all modern arithmetic, algebra, computing, and science — is impossible. Zero was independently invented only three or four times in human history: by the Babylonians (as a placeholder only, c. 300 BCE), by the Maya (as both placeholder and number, c. 350 CE or earlier), and by Indian mathematicians (Brahmagupta, 628 CE, who first defined zero as a number with its own arithmetic).
What distinguishes the Maya zero is its dual nature. It served as a placeholder in positional notation — indicating the absence of a value at a given position — but there is strong epigraphic evidence that it also functioned as a genuine number in ordinal and calendar contexts. The Maya zero glyph — a stylized conch or turtle shell — appears in dates, period-ending inscriptions, and arithmetic calculations as an active participant.
Zero in Positional Arithmetic
To represent 403 in Maya:
The shell glyph occupies the "20s" position — a true zero that holds the place and makes 1(400) + 3(1) unambiguous.
The Long Count Date 0.0.0.0.0 — Day of Creation
The Maya Long Count date 0.0.0.0.0 — five shell glyphs — denotes the mythological creation date, corresponding to August 11, 3114 BCE. Using zero to represent a complete, non-absent quantity (the Day of Creation itself) is conceptually more demanding than using it purely as a placeholder.
Why the Conch Shell?
Scholars hypothesize that the shell glyph for zero evokes the idea of an empty vessel — a container with nothing inside. The Mesoamerican cultural resonance of the conch as a symbol of origins (the god Quetzalcóatl is associated with the conch) may have made it a fitting image for the primordial "nothing-from-which-something-comes."
§ 4 — Place Value
Positional Notation and Large Numbers
The Maya numeral system is a true positional system: the numerical value of a symbol depends entirely on its position in the column. This property — shared with modern Hindu-Arabic numerals but absent from Egyptian, Greek, or Roman systems — allows arbitrarily large numbers to be represented with a fixed, small set of symbols.
In the Long Count calendar context, one position deviates from pure base-20. The third level (the tun) equals 18 × 20 = 360 rather than 20 × 20 = 400, because 360 approximates the solar year:
Long Count Place Values
Using five positional levels, the Long Count can express dates spanning up to 13 × 144,000 = 1,872,000 days — approximately 5,125 years — encompassing the current "Great Cycle" from 3114 BCE to 2012 CE.
Comparison with Other Ancient Systems
| Civilization | Base | Positional? | Has Zero? |
|---|---|---|---|
| Egyptian | 10 | No | No |
| Babylonian | 60 | Yes (partial) | Placeholder only |
| Greek | 10 | No (alphabetic) | No |
| Roman | 10 | No | No |
| Maya | 20 | Yes (full) | Yes (number + placeholder) |
| Hindu-Arabic | 10 | Yes (full) | Yes (full) |
§ 5 — Mathematics of Time
The Calendar Systems
The Maya calendar complex is arguably the most sophisticated timekeeping system developed in the ancient world. It comprises three interlocking cycles whose interactions require non-trivial number theory — specifically, the computation of least common multiples — to understand and coordinate.
The Tzolkʼin: Sacred Round (260 days)
The Tzolkʼin combines a cycle of 13 numbered days with a cycle of 20 named days. The two sub-cycles run simultaneously, producing lcm(13, 20) = 260 unique day-name combinations. The number 260 has deep ritual significance — it approximately equals the human gestation period and the interval between zenith passages of the sun at Maya latitudes.
Tzolkʼin Period
The Haabʼ: Solar Year (365 days)
The Haabʼ is a civil calendar of 18 months of 20 days each (18 × 20 = 360), plus a 5-day unlucky period called the Wayebʼ, for a total of 365 days. The Maya tracked the accumulated drift from the true solar year separately, achieving remarkable precision without leap-year correction.
The Calendar Round: 52 Years
The Calendar Round is the joint cycle of both the Tzolkʼin and Haabʼ. Any given combination of a Tzolkʼin day-name and a Haabʼ date recurs after lcm(260, 365) days:
Calendar Round Period
Since gcd(260, 365) = 5, the Calendar Round is not 94,900 but the reduced value of 18,980 days. The Maya evidently understood a form of the Euclidean algorithm.
The Long Count: Linear Time
While the Calendar Round is cyclic and cannot distinguish equivalent points 52 years apart, the Long Count provides a linear, absolute count of days elapsed since the creation date. This is an essentially modern conception of time — a unique, non-repeating timestamp for every day in history.
The Chinese Remainder Theorem and Maya Dates
Any Maya Calendar Round date specifies a Tzolkʼin position t ∈ ℤ/260ℤ and a Haabʼ position h ∈ ℤ/365ℤ. Because gcd(260, 365) = 5, only pairs (t, h) with t ≡ h (mod 5) correspond to valid dates. The CRT guarantees that within the 18,980-day cycle, each valid pair occurs exactly once — the Maya were effectively solving systems of linear congruences.
§ 6 — Applied Mathematics
Astronomical Arithmetic
The clearest testament to Maya mathematics is its application to observational astronomy. Working without telescopes, the Maya achieved orbital-period measurements that rival the precision of early modern European astronomy.
The Venus Table (Dresden Codex)
The synodic period of Venus — the time between successive appearances as morning star — is approximately 583.92 days. The Maya used the canonical value of 584 days per synodic period, with periodic correction factors. Over 5 synodic periods, Venus nearly returns to the same position relative to the sun:
Venus Calendar Synchronization
$$\Longrightarrow \quad \text{5 Venus years} \approx \text{8 solar years}$$
$$\text{True value: } 5 \times 583.92 = 2{,}919.6 \text{ days (error: 0.4 days over 8 years)}$$
The Dresden Codex Venus Table extends this over 65 Venus cycles = 104 haabʼ years, using correction factors of −4 and −8 days applied at specific intervals to account for accumulated drift — an ancient numerical method equivalent to a corrector-predictor scheme in modern ODE integration.
Lunar Arithmetic
The Maya tracked the lunar month with extraordinary precision. Many Classic Period monuments include a "Lunar Series" recording the pattern of 29- and 30-day months:
Maya Lunar Approximation
$$\text{Maya approximation: } \frac{149 \text{ months}}{4{,}400 \text{ days}} = 29.5302\ldots \text{ days/month}$$
Precision Summary
| Phenomenon | True Period (days) | Maya Value | Relative Error |
|---|---|---|---|
| Synodic month | 29.53059 | 29.5302 | ~0.001% |
| Solar year | 365.2422 | 365.242 | ~0.0001% |
| Venus synodic period | 583.9214 | 583.920 (corrected) | ~0.0002% |
| Mars synodic period | 779.9361 | 780 | ~0.008% |
Video: The Dresden Codex — The BEST Maya Astronomy
An in-depth look at the Dresden Codex — the ancient Maya book that encodes the Venus Table, eclipse cycles, and other astronomical calculations.
Video: How The Maya Predicted Eclipses (Dresden Codex Secrets)
A detailed explanation of how the Maya used the synodic and nodal months to predict solar eclipses centuries in advance.
Video: Maya Astronomy and Mathematics
A documentary overview covering Maya astronomical observations, their mathematical framework, and the astronomical knowledge embedded in their monuments.
§ 7 — Spatial Mathematics
Maya Geometry and Architecture
Although the Maya left no formal treatise on geometry analogous to Euclid's Elements, their architecture, urban planning, and astronomical alignments reveal a sophisticated grasp of geometric principles. Geometry was not abstract but embedded in sacred cosmology — the correct orientation of a temple, the proportions of a pyramid's faces, and the sight-lines between monuments were matters of both aesthetic and theological precision.
El Castillo: A Pyramid of Days
El Castillo at Chichén Itzá has 4 staircases of 91 steps each, plus the platform at the summit:
El Castillo Step Count
$$\text{One step per day of the solar year (Haab') — including the 5-day Wayeb' period}$$
The pyramid also has 9 terraces on each face, divided by the central staircase into 18 segments — matching the 18 months of the Haabʼ. At the spring and autumn equinoxes, sunlight and shadow create the illusion of a serpent descending the pyramid — requiring precise geometric and geographic calculation to achieve.
The Corbeled Arch: A Mathematical Constraint
The Maya never independently discovered the true arch (with a keystone), yet their architecture required spanning interior spaces. Their solution — the corbeled arch — is a geometric structure in which successive courses of masonry are cantilevered inward. The stability condition is:
Corbel Stability & Maximum Span
$$\text{Maximum total span for } n \text{ courses: } S_n = L \cdot H_n$$
$$\text{where } H_n = 1 + \tfrac{1}{2} + \tfrac{1}{3} + \cdots + \tfrac{1}{n} \text{ (Harmonic series — diverges!)}$$
In principle, with enough courses, any span can be bridged. The Maya corbeled vaults at Palenque and Uxmal approach the practical maximum for the limestone blocks available to them.
§ 8 — Arithmetic Structure
Number Theory in Maya Mathematics
The Maya did not produce a number theory in the Euclidean sense — no theorems, no proofs, no systematic study of primes. Yet their calendar calculations implicitly employ divisibility, the greatest common divisor, the least common multiple, and modular arithmetic.
Modular Arithmetic and the Calendar
Each Maya cycle is inherently modular. The state of the combined Tzolkʼin cycle on day d is:
Tzolkʼin State
Divisibility of Key Numbers
The numbers appearing in Maya timekeeping have remarkable divisibility properties — not accidental, but likely chosen because of the many sub-cycles they support:
| Number | Role | Prime Factorization | Divisors |
|---|---|---|---|
| 260 | Tzolkʼin | 2² · 5 · 13 | 12 |
| 365 | Haabʼ | 5 · 73 | 4 |
| 360 | Tun (calendar) | 2³ · 3² · 5 | 24 |
| 18,980 | Calendar Round | 2² · 5 · 13 · 73 | 24 |
| 584 | Venus cycle | 2³ · 73 | 8 |
| 2,920 | 5 Venus = 8 Haabʼ | 2³ · 5 · 73 | 16 |
Implicit Diophantine Arithmetic
The Maya discovery that 5 Venus cycles ≈ 8 solar years is equivalent to finding the convergent 8/5 of the continued fraction expansion of TVenus/T☉ ≈ 1.5986 — which modern mathematics proves is the best rational approximation with denominator ≤ 5. Without formal algebraic notation, the Maya solved what amounts to systems of linear congruences and Diophantine approximation problems — purely through patient observation and arithmetic.
§ 9 — Problem Workshop
Worked Problems
Problem 1 — Vigesimal Conversion
Problem: Write 7,654 in Maya vigesimal notation, then verify.
$$382 \div 20 = 19 \text{ rem } 2 \Rightarrow d_1 = 2$$
$$19 \div 20 = 0 \text{ rem } 19 \Rightarrow d_2 = 19$$
$$\textbf{Verification: } 19(400) + 2(20) + 14(1) = 7600 + 40 + 14 = 7654 \checkmark$$
In bar-and-dot: top 19 = 3 bars + 4 dots; middle 2 = 2 dots; bottom 14 = 2 bars + 4 dots.
Problem 2 — Calendar Round via Euclidean Algorithm
Problem: Compute lcm(260, 365) step by step.
$$260 = 2 \times 105 + 50$$
$$105 = 2 \times 50 + 5$$
$$50 = 10 \times 5 + 0 \Rightarrow \gcd(260,365) = 5$$
$$\text{lcm}(260,365) = \frac{260 \times 365}{5} = \mathbf{18{,}980 \text{ days} \approx 52 \text{ years}}$$
Problem 3 — Long Count Date Decomposition
Problem: Stela 31 at Tikal has Long Count 9.0.10.0.0. How many days since the Maya creation date?
$$1{,}299{,}600 \div 365.25 \approx 3558 \text{ years after 3114 BCE} \approx \textbf{445 CE}$$
Consistent with the Tikal Early Classic period.
Problem 4 — Venus Table Error Accumulation
Problem: Using 584 days (true: 583.92), when does accumulated error first exceed 1 day?
$$\text{Cycles to exceed 1 day: } n = \lceil 1/0.08 \rceil = 13 \text{ cycles} = 7{,}592 \text{ days} \approx 20.8 \text{ years}$$
$$\text{Dresden Codex correction: subtract 4 days} \Rightarrow \text{error reset to } -0.96 \text{ days}$$
The scribes understood the drift and actively corrected for it — an ancient numerical algorithm for error control.
Problem 5 — Maya Arithmetic: Addition with Carries
Problem: Add 347 and 286 directly in vigesimal.
$$\text{Units: } 7 + 6 = 13 \quad (\text{no carry})$$
$$\text{Twenties: } 17 + 14 = 31 = 1(20) + 11 \quad (\text{carry 1})$$
$$\text{Result: } \begin{pmatrix}1\\11\\13\end{pmatrix} = 400 + 220 + 13 = \mathbf{633} \checkmark$$
§ 10 — Historical Significance
Mathematical Legacy
Maya mathematics is not merely a curiosity of history. It is a profound demonstration of a universal principle: mathematical sophistication is a property of the human mind itself, not of any particular cultural tradition. The Maya developed zero, positional notation, and sophisticated astronomical arithmetic in complete intellectual independence from the Old World.
The Maya calendar calculations touch on surprisingly deep areas of modern mathematics:
- ▸ Calendar Round periods via lcm relate to modular arithmetic and the Chinese Remainder Theorem.
- ▸ Venus correction tables are an ancient example of numerical methods for accumulated error control.
- ▸ Eclipse prediction involves finding integer solutions to aT₁ ≈ bT₂ — a form of Diophantine approximation.
- ▸ The Long Count is structurally identical to a modern mixed-radix number system.
"The Maya did not merely count days. They uncovered the arithmetic structure of the heavens — and built a civilization upon that knowledge."— Anthony Aveni, Skywatchers of Ancient Mexico, 1980
What Was Lost
The surviving codices and monument inscriptions represent a small fraction of the original knowledge base. The systematic destruction of their written record by colonial authorities in the 16th century is one of the great tragedies of intellectual history. We know the Maya could compute planetary periods, predict eclipses, and coordinate multiple calendar systems. Whether they developed algebra, formal geometry, or a theory of prime numbers — we may never know.
§ 11 — Self-Assessment
Module Quiz
QUESTION 1 OF 8 · SCORE: 0/0
Which base does the Maya numeral system use?
§ 12 — Scholarly References