Tool to convert to/from Mayan numbers system. The Maya numeral system uses a mix of base 20 (vigesimal) and base 5 (and also 360) numerals
Mayan Numerals - dCode
Tag(s) : Numeral System, History, Symbol Substitution
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Mayan numbers constitute a system of numeration used by the Mayan civilization in Central America, between approximately -2000 and 1500 AD. Their particularity is the use of base 20, called vigesimal (or vicesimal) base where each Mayan number represents a value from 0 to 19.
The Mayan numeral system is additive and positional. In the Mayan system, numbers are composed of simple symbols:
— a dot • represents 1
— a horizontal bar âž– represents 5
— the symbol .png) represents 0 (originally it was a shell shape, but some say it represents an egg or an American football/rugby ball).
 represents 0 (originally it was a shell shape, but some say it represents an egg or an American football/rugby ball).
The numbers from 0 to 19 are written by combining these symbols through addition.
Example: The number 14 (written in French/Arabic numerals, in base 10) is written with 2 bars and 4 dots, because 2 Ă— 5 + 4 Ă— 1 = 14
Numbers are arranged vertically, with the units at the bottom, then the twenties above, then the hundreds, and so on.
The number $ 26 $ is written on two levels:.png)
.png)
The upper level (1 dot) is worth $ 1 \times 20 = 20 $ and the lower level (1 dot and 1 bar) is worth $ 1 + 5 = 6 $, for a total of $ 26 $.
From the third level onward, the Mayan numeral system diverges. Written records reveal two notations, including a specific rule, a modified vigesimal system (called the Long Count), particularly when referring to dates. The value of the third level is no longer $ 20^2 = 400 $, but $ 18 \times 20 = 360 $, to better align with the solar year.
To convert a Mayan number to base 10 (Arabic numerals):
— Identify the number of dots and bars on each level.
— Calculate the value of each level: bottom level: units $ \times 1 $), next level: twenties ($ \times 20 $), next level: $ 20^2 = 400 $ or $ 18 \times 20 = 360 $ depending on the system, etc.
— Add the values obtained.
Example: a single line with 2 dots and 3 bars: $ 2 \times 1 + 3 \times 5 = 17 $
Example: a number on 2 lines with 1 dot then (level below) 2 dots: $ 1 \times 20 + 2 \times 1 = 22 $
For values greater than 360, identify if the system used is the modified version of the Long Count.
The dates in Maya are based on the Mesoamerican Long Count calendar. They use the kin, which is 1 day, then the winal which is 20 days, the tun, an 18 winal period which is therefore 360 days, about 1 solar year (365.24 days), then the katun (20 tun = 7200 days = about 20 years), then the baktun (20 katun, 144000 days = about 394 years).
Day 0 seems to match August 11, 3114 BC of our era (precision to be relativised with the Gregorian / Julian calendar chosen)
To write a birthdate or anniversary date in a contemporary way, dCode recommends to use the values of the 3 numbers (day, month, year) written in Maya and separated by a dash - or a bar / (slash), the year with the font changed to 360.
There are two other calendar variations: the Tzolkin (or Tzolk'in) and the Haab, whose cycles are still slightly different.
Today, for counting, base 10 is used, up to 9, the 10 digits 0,1,2,3,4,5,6,7,8,9 use only one character/symbol /glyph, beyond 9, it is necessary to use 2 symbols/numbers to write 10 (a 1 and a 0). Similarly, the Mayan numeral uses base 20 to count, so beyond 19 it is necessary to use 2 symbols/glyphs.
It is generally accepted that the Maya chose the base-20 system because they counted using their fingers and toes, which together accounted for 20 extremities.
This vigesimal system also existed among other Mesoamerican peoples and reflects a practical approach to body counting.
The number $ 20 $ therefore represents a change of level: a dot on the top line (worth $ 1 Ă— 20 $) and a zero (shell) on the bottom line.
Writing $ 20 $ with four bars would violate the base-20 place value rule. This notation would be unusual and confusing, so it should be avoided.
It's a bit like asking why not write 10 with a new symbol, like â±°; some might understand, others might not.
Maya numeration uses generally stacked lines and dots.
The Mayan civilization lived in Central America around -2000 BC as their pyramids testify.
Although there are similarities, the Mayan civilization is different from the Aztecs or the Incas.
Any reference to Mexico, Belize, Guatemala, El Salvador or Honduras (current areas where the Mayans lived) are clues.
dCode retains ownership of the "Mayan Numerals" source code. Any algorithm for the "Mayan Numerals" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Mayan Numerals" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Mayan Numerals" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
 Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
 
The content of the page "Mayan Numerals" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: 
In a scientific article or book, the recommended bibliographic citation is: Mayan Numerals on dCode.fr [online website], retrieved on 2025-10-31,