A GUIDE TO NUMBER BASES

One number.
Many bases.

Forty-two things stay forty-two things. A base changes how we group and write that quantity. Learn the pattern behind place value, then follow a conversion one step at a time.

FORTY-TWO, IN EVERY ROW
Decimal BASE 10
42
Binary BASE 2
101010
Hexadecimal BASE 16
2A
Vigesimal BASE 20
2,2
Sexagesimal BASE 60
42

Commas separate place digits in bases 20 and 60 on this page.

01 · THE GROUPING RULE

What does a base do?

In a positional number system, the base tells you how many units make one unit of the next place. In base 10, ten ones make a ten, and ten tens make a hundred. In base 2, two ones make a two, and two twos make a four.

The rightmost whole-number place is always worth 1. Each step left multiplies that value by the base: 1, base, base², base³, and so on. A digit tells you how many of that place you have. Zero holds an empty place.

Read 101010 in base 2

Each step left doubles the place value
Place value32168421
Digit101010
Contribution3208020

32 + 8 + 2 = 42

Each digit must be smaller than its base. Binary has 0 and 1; after 1 comes 10, meaning one two and zero ones. So 10 does not always mean ten.

NASA · Place value in binary ↗
02 · TRY A CONVERSION

Change the writing, keep the value.

First read the source digits using their place values. Then divide by the target base to find its digits. These are general conversion methods; individual civilizations had their own arithmetic practices.

For bases 20 and 60: type each place digit as a decimal number, separated by commas. For example, 1,12 in base 60 means 1 × 60 + 12 = 72. The comma is a place separator, never a thousands separator here. Spaces around commas are allowed. Fractions, signs, prefixes, colons, and semicolons are outside this lesson.

THE SAME QUANTITY, WRITTEN TWO WAYS

42 101010

Decimal value: 42. The small subscript names the base; it is not part of the number.

Read the source number

Start with 1 at the right. Multiply each place value by 10 as you move left, then add each digit’s contribution.

From base 10 to decimal
DigitPlace valueContribution
4101 = 104 × 10 = 40
2100 = 12 × 1 = 2

40 + 2 = 42

Write the target number

Divide the decimal value by 2. Keep the remainder, divide the quotient again, and stop when the quotient is 0.

From decimal to base 2
Divide by 2QuotientRemainder
42 ÷ 2210
21 ÷ 2101
10 ÷ 250
5 ÷ 221
2 ÷ 210
1 ÷ 201

↑ Read the remainders from bottom to top.

101010

42 in base 10 equals 101010 in base 2

03 · PEOPLE, TOOLS & TRADITION

Why use different bases?

Number systems grow from counting habits, language, measurement, and the tools people use. A useful convention can be passed down for centuries. We often know how a system worked more confidently than why its earliest users settled on a particular grouping.

Decimal · hands and habit

Ten fingers provide a convenient counting aid, a plausible reason for the widespread use of tens. That is not proof of one shared origin for every decimal tradition. Egypt’s grouping by tens and modern decimal place value use different writing rules.

MacTutor · The question of number bases ↗

Vigesimal · larger body groupings

Counting fingers and toes gives twenty, a common explanation for vigesimal grouping. Treat it as an explanation, rather than a proven origin story for the Maya. Maya numerals use dots, bars, and zero signs and supported trade, astronomy, and calendar work.

Here base 20 means pure powers of twenty. The Maya page explains the distinction from calendar place values.

Smithsonian · Maya mathematics ↗

Sexagesimal · convenient shares

Babylonian scribes inherited sexagesimal traditions from the Sumerians. The original reason for sixty remains uncertain. Its many divisors do make sharing convenient: a half, a third, and a quarter are 30, 20, and 15 sixtieths. Usefulness is not proof of origin.

Familiar traces remain in sixty minutes to an hour and sixty seconds to a minute. Historical cuneiform readings also depended on context to establish scale.

MacTutor · Babylonian numerals ↗
04 · FROM CIRCUITS TO READABLE DIGITS

Why computers use binary, and people use hex.

Binary · two states

Digital circuits can represent two distinguishable states, such as low and high voltage, as 0 and 1. Designing around two separated states makes reliable switching practical. Each binary digit is a bit. Several bits together can represent numbers, letters, colors, instructions, and other information.

IBM · Bits and their physical representation ↗

Hexadecimal · four bits in one digit

Long binary strings are hard to read. Since 16 = 2⁴, exactly four bits fit into one hexadecimal digit. Hex uses 0–9, then A = 10, B = 11, C = 12, D = 13, E = 14, F = 15. After F comes 10, meaning one sixteen and zero ones.

Hex is a compact way for people to read binary data, used in places such as color codes and memory addresses. It does not require a different kind of sixteen-state computer hardware.

NASA · Why hexadecimal fits binary ↗

The sixteen possible four-bit groups

One hex digit is exactly four binary bits
DecimalHexBinary
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
10A1010
11B1011
12C1100
13D1101
14E1110
15F1111
A SHORTCUT BETWEEN BINARY AND HEX

10101101₂ = AD₁₆ = 173₁₀

Group binary digits in fours from the right. Add leading zeros to the leftmost group if needed; they do not change the value. Match each group to one hex digit. To go back, replace each hex digit with its four bits. Eight bits make one byte.