Mayan Numeral Calculator - Vigesimal Base-20 Conversion

Use this Mayan numeral calculator to translate decimal values into a Maya dot, bar, and shell glyph stack, and read the digit at every base-20 level.

Updated: June 16, 2026 • Free Tool

Mayan Numeral Calculator

Whole decimal integer to translate into Maya dots, bars, and shell glyphs.

Results

Maya glyph stack (top to bottom)
0
Active level count 0
Level 1 digit (160,000s place) 0
Level 2 digit (8,000s place) 0
Level 3 digit (400s place) 0
Level 4 digit (20s place) 0
Level 5 digit (1s place) 0

What Is Mayan Numeral Calculator?

A Mayan numeral calculator is a tool that translates a decimal value into the stacked dot, bar, and shell glyphs of the Maya vigesimal system. Type a number from 0 to 3,199,999 and the calculator shows the base-20 digit at each of the five levels. Each digit is 0 to 19, where 0 is the shell, 1 is a dot, and 5 is a horizontal bar.

  • Homework and puzzle solving: Confirm a base-20 conversion by hand against the calculator's level-by-level breakdown.
  • Calendar and archaeology studies: Explore how a Maya Haab year rounds through 18 months of 20 days plus a closing 5-day Uayeb period.
  • Encoding and study notes: Turn a year or date into a Maya glyph stack for a poster or notebook margin.
  • Number system drills: Practice reading positional numeral systems by switching between decimal, base-20, and base-2 in the same worksheet.

The Maya number system is a true positional system, so the meaning of each glyph depends on the level where it sits. The same three dots that mean 3 in the ones place mean 60 in the 20s place and 1,200 in the 400s place. The calculator therefore reports the dot, bar, and shell pattern and the level where each pattern lives, so the result reads the way a Maya scribe would have read it on a stela or in a codex.

For an additive-subtractive numeral system that uses seven letters, the Roman Numeral Converter reads the same 1 to 3,999 range and renders each value as a string of I, V, X, L, C, D, and M glyphs.

How Mayan Numeral Calculator Works

The calculator reads the decimal value, divides it by 20 repeatedly, and writes each remainder as a Maya digit at the next level of the stack, from the bottom 1s place up to the topmost 160,000s place.

value = d1*160,000 + d2*8,000 + d3*400 + d4*20 + d5*1, where each di is 0 to 19
  • value: The decimal integer you enter, clamped to the range 0 to 3,199,999 so all five base-20 levels stay available.
  • d1 to d5: The base-20 digit at levels 1 to 5, where d1 is the top of the stack (160,000s) and d5 is the bottom (1s).
  • digitCount: The number of levels that hold a non-zero digit, between 1 and 5; the ones place is always shown.

The conversion runs in a single pass: each division by 20 peels off the next digit from the bottom, and the stack is built from the last remainder up to the first. Because the result uses full integer arithmetic, the digits are exact at every boundary from 19 to 3,199,999, with no rounding loss.

Worked example: 1,234 in base 20

Decimal input: 1,234.

Divide by 20 three times: 1,234 = 3*400 + 1*20 + 14*1. Write the remainders from the bottom up: ones place = 14, 20s place = 1, 400s place = 3. The two higher places are 0, so the stack uses three levels.

Stack reads top to bottom: 3 dots, 1 dot, 4 dots above 2 bars.

The level 3 digit is 3, the level 4 digit is 1, and the level 5 digit is 14. The level 1 and level 2 digits are 0.

According to Smithsonian National Museum of the American Indian, the Maya number system is a base-20 (vigesimal) positional system in which a single dot represents 1, a horizontal bar represents 5, and a shell or oval glyph represents 0.

To translate the same decimal value into binary, octal, hexadecimal, or any other base, the Base Converter applies the same repeated-division algorithm and reports the matching place values.

Key Concepts Explained

Four short ideas cover the symbols, the base, the place values, and the zero placeholder that the Maya number system is built on.

Three glyphs: dot, bar, shell

The dot counts 1, the horizontal bar counts 5, and the shell or oval stands for 0; every Maya digit from 0 to 19 is built by combining these three symbols.

Vigesimal base 20

Each level is worth 20 times the level below it, so the place values are 1, 20, 400, 8,000, and 160,000 from the bottom of the stack to the top.

Vertical stack with the highest at the top

Maya numerals are written from bottom to top, with the largest place value at the top and the ones place at the bottom, which is the opposite of how a Western number reads from left to right.

Shell as a true zero placeholder

The shell glyph is the first documented use of a true zero in the Americas, allowing Maya scribes to write numbers like 20 or 400 with an empty middle position.

These four ideas are the backbone of every Maya numeral. Once a student can read 7 as one bar and two dots, the rest of the system is just a question of which level the glyph sits on. The shell is the only true zero placeholder that survives in modern Mayan languages, and the same idea shows up in modern positional systems like decimal and binary.

For the same idea applied to base-2, base-8, and base-16 positional systems, the Change of Base Calculator walks through the change-of-base step and lists the place values for each level.

How to Use This Calculator

Type a decimal value, then read the matching Maya glyph stack and the base-20 digit at every level.

  1. 1 Enter a decimal value: Type a whole number from 0 to 3,199,999 in the input field; the calculator clamps out-of-range and non-integer values to the nearest valid whole number.
  2. 2 Read the Maya glyph stack: The result panel prints the five levels from the 160,000s place at the top to the 1s place at the bottom, with each level showing the dot, bar, and shell glyph that represents its base-20 digit.
  3. 3 Read the digit at every level: The secondary result list shows the base-20 digit value from 0 to 19 for level 1 through level 5, so you can read the same stack as a list of five numbers.
  4. 4 Check the active level count: The active level count tells you how many levels the stack actually uses, between 1 and 5, so a small number like 7 does not look empty.
  5. 5 Try a boundary value: Change the input to 20, 400, 8,000, or 160,000 to see the stack grow by one level each time the value crosses a new place-value threshold.
  6. 6 Reset and try a new value: Use the Reset button to restore the default value of 1,234 and start a fresh conversion without retyping the input.

Suppose you want to translate the year 2025 into a Maya glyph stack. Enter 2025 in the input field; the calculator reports the active level count as 3, with the level 3 digit equal to 5 (400s place), the level 4 digit equal to 1 (20s place), and the level 5 digit equal to 5 (1s place). The glyph stack shows a single bar at the 400s level, a single dot at the 20s level, and a single bar at the 1s level.

To translate the same input into the base-2 version of the same positional idea, the Binary Converter lists the binary digits at the matching power-of-2 levels.

Benefits of Using This Calculator

A short list of why a calculator is useful when you are learning the Maya number system.

  • Visual reading of Maya glyphs: Stacks dots, bars, and a shell into a text block, so the result reads the way a Maya stela or codex would read.
  • Level-by-level digit list: Reports the base-20 digit at every one of the five levels, so the same result works as a clean base-20 list for a worksheet or a quiz.
  • Handles the full 5-level range: Supports values from 0 to 3,199,999, the largest value that fits in five base-20 levels.
  • Real-time updates as you type: Updates the result panel every time the input changes, so you can experiment with 20, 400, 8,000, and 160,000 in seconds.
  • Highlights the ones place: Lists the level 5 digit separately, which is the digit students need to read first when checking a conversion by hand.

For a teacher, the Mayan numeral calculator is a quick way to confirm a class answer key without redoing the layout. For a student, the level-by-level digit list is the most reliable way to learn that 14 in the ones place is the same pattern as 14 in the 20s place; only the level changes, the glyph does not.

To read the same input in plain English words in addition to the Maya glyph stack, the Number to Words Converter spells out the decimal value digit by digit.

Factors That Affect Your Results

The decimal input is the only thing that changes the result, but the place values and the calendar variation are easy to mix up when you are reading a Maya number for the first time.

Base-20 place values

The five levels are worth 1, 20, 400, 8,000, and 160,000 from bottom to top, so a digit of 1 at the top of the stack adds 160,000 to the value, not 1.

Glyph for 0

The shell glyph stands for 0, and a level of pure 0s is allowed at the top of the stack; the Mayans used this zero placeholder more than 1,000 years ago.

Calendar variation

The pure mathematical system is base 20 at every level, but the Haab calendar uses 18 months of 20 days plus a 5-day Uayeb, so the third level is 360 days instead of 400.

Maximum input value

The largest value the calculator displays is 3,199,999, which fills all five levels with the digit 19; any larger value is clamped to that upper bound.

Non-integer or negative input

The input is treated as a whole decimal integer; non-integer values are floored, negative values become 0, and values above 3,199,999 are clamped to 3,199,999.

  • The calculator uses the pure mathematical base-20 (vigesimal) system at every level, not the calendar-modified version where the third level is 360 days instead of 400; a Haab calendar year would need a separate tool.
  • The output is rendered with Unicode dot, bar, and shell characters in a text block; the visual layout is text-based rather than a hand-drawn Maya stela.

If a number comes from a Maya codex or a Haab calendar, the third level may be 360 instead of 400. A pure mathematical number like 1,234 always uses 400 at the third level, and the calculator reports that pure mathematical version, so the digit list matches what a modern base-20 mathematician would write, not what a Maya calendar keeper would write.

According to Britannica, the Maya used a vigesimal (base-20) positional system with a dot for 1, a bar for 5, and a shell for 0, and they wrote numerals vertically with the largest place value at the top.

Per MacTutor History of Mathematics, the Maya numerals use a dot for 1, a bar for 5, and a shell for 0, and they stack vertically in base-20 levels of 1, 20, 400, 8,000, and 160,000 with the largest place value at the top.

Mayan numeral calculator showing a Maya dot, bar, and shell glyph stack with five base-20 levels for a decimal value
Mayan numeral calculator showing a Maya dot, bar, and shell glyph stack with five base-20 levels for a decimal value

Frequently Asked Questions

Q: How do I read a Mayan numeral?

A: Read a Mayan numeral from top to bottom, just like a Maya scribe would. The top level is the highest place value, and the bottom level is the 1s place. Each level is a base-20 digit from 0 to 19, written as a shell for 0, dots for 1 through 4, bars for 5, and a mix of bars and dots for 6 through 19.

Q: What is the value of one Mayan dot, one bar, and the shell?

A: One dot has the value 1, one horizontal bar has the value 5, and the shell glyph has the value 0. You can combine up to four dots with up to three bars at the same level, so the largest single-level digit is 19, written as four dots stacked above three bars.

Q: What is the maximum number a Mayan numeral calculator can show?

A: With five base-20 levels, the calculator can show values from 0 to 3,199,999, which is 20 to the fifth power minus 1. For larger values, an additional level of 3,200,000 would be needed, and that level is not part of the standard five-level Maya layout.

Q: Why does the Mayan numeral system use base 20?

A: The Mayans used base 20 partly because the system grew out of counting fingers and toes, and partly because 20 divides evenly by 2, 4, 5, and 10, which made the system convenient for both trade and calendar arithmetic. The result is a positional system whose place values are 1, 20, 400, 8,000, and 160,000 from the bottom of the stack to the top.

Q: Why is the shell the symbol for zero in Mayan numerals?

A: The Mayans used a shell or oval glyph for zero because it looked like a complete or closed container, which matched the idea of an empty place in a positional number. Maya scribes recorded this use of zero more than a thousand years ago, making the Maya system one of the earliest known positional number systems to include a true zero placeholder.

Q: What is the difference between Mayan numerals and Roman numerals?

A: Roman numerals are an additive-subtractive system that uses seven letters and a fixed 1 to 3,999 range, while Mayan numerals are a true base-20 positional system that uses three symbols (dot, bar, shell) and can represent any value from 0 up to the highest level in the stack. Maya numbers also use a true zero placeholder, which Roman numerals do not.