10

From Zero to Engineer

Number systems: binary, octal, duodecimal and hexadecimal

Place values as powers of the base, the symbols each system uses, and converting a number written in binary, octal, duodecimal or hexadecimal into a decimal number.

The decimal system is not the only one possible - it is simply the one we are used to. Every system rests on the same principle: a place value is a power of the base. The base and the set of symbols change, everything else stays. This lesson shows four such systems and one conversion method that works in all of them.

Number systems - the decimal number system

2765,323
place values10310^{3}10210^{2}10110^{1}10010^{0}10110^{-1}10210^{-2}10310^{-3}
10001000100100101011110\tfrac{1}{10}1100\tfrac{1}{100}11000\tfrac{1}{1000}

The place values are powers of 10, hence the decimal number system.

The binary number system (base 2)

1011,101
place values232^{3}222^{2}212^{1}202^{0}212^{-1}222^{-2}232^{-3}
8844221112\tfrac{1}{2}14\tfrac{1}{4}18\tfrac{1}{8}

The place values are powers of 2.

Converting a binary number to a decimal number

a)1011.1012=11.62510\text{a)}\quad 1011.101_{2} = 11.625_{10}
18+04+12+11+112+014+118=11+12+18=1158=11.625\begin{aligned}&1 \cdot 8 + 0 \cdot 4 + 1 \cdot 2 + 1 \cdot 1 + 1 \cdot \tfrac{1}{2} + 0 \cdot \tfrac{1}{4} + 1 \cdot \tfrac{1}{8} \\&= 11 + \tfrac{1}{2} + \tfrac{1}{8} = 11\tfrac{5}{8} = 11.625\end{aligned}
b)1101.0112=13.37510\text{b)}\quad 1101.011_{2} = 13.375_{10}
18+14+02+11+012+114+118=13+14+18=1338=13.375\begin{aligned}&1 \cdot 8 + 1 \cdot 4 + 0 \cdot 2 + 1 \cdot 1 + 0 \cdot \tfrac{1}{2} + 1 \cdot \tfrac{1}{4} + 1 \cdot \tfrac{1}{8} \\&= 13 + \tfrac{1}{4} + \tfrac{1}{8} = 13\tfrac{3}{8} = 13.375\end{aligned}

The small subscripts 2 and 10 indicate the bases of the two number systems.

The octal number system (base 8)

The octal number system uses the following symbols: 0, 1, 2, 3, 4, 5, 6, 7.

357,321
place values828^{2}818^{1}808^{0}818^{-1}828^{-2}838^{-3}
6464881118\tfrac{1}{8}164\tfrac{1}{64}1512\tfrac{1}{512}

The place values are powers of 8.

Converting an octal number to a decimal number

a)357.3218=239.40810\text{a)}\quad 357.321_{8} = 239.408_{10}
364+58+71+318+2164+11512=192+40+7+38+132+1512=239209512=239.408\begin{aligned}&3 \cdot 64 + 5 \cdot 8 + 7 \cdot 1 + 3 \cdot \tfrac{1}{8} + 2 \cdot \tfrac{1}{64} + 1 \cdot \tfrac{1}{512} \\&= 192 + 40 + 7 + \tfrac{3}{8} + \tfrac{1}{32} + \tfrac{1}{512} \\&= 239\tfrac{209}{512} = 239.408\end{aligned}

correct to three decimal places

b)263.4528=179.58210\text{b)}\quad 263.452_{8} = 179.582_{10}
264+68+31+418+5164+21512=128+48+3+12+564+1256=179149256=179.582\begin{aligned}&2 \cdot 64 + 6 \cdot 8 + 3 \cdot 1 + 4 \cdot \tfrac{1}{8} + 5 \cdot \tfrac{1}{64} + 2 \cdot \tfrac{1}{512} \\&= 128 + 48 + 3 + \tfrac{1}{2} + \tfrac{5}{64} + \tfrac{1}{256} \\&= 179\tfrac{149}{256} = 179.582\end{aligned}

correct to three decimal places

The duodecimal number system (base 12)

The duodecimal number system uses the following symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, X, Λ.

2X5,136
place values12212^{2}12112^{1}12012^{0}12112^{-1}12212^{-2}12312^{-3}
144144121211112\tfrac{1}{12}1144\tfrac{1}{144}11728\tfrac{1}{1728}

The place values are powers of 12.

Converting a duodecimal number to a decimal number

a)2X5.13612=413.10810\text{a)}\quad 2X5.136_{12} = 413.108_{10}
2144+1012+51+1112+31144+611728=288+120+5+112+3144+1288=41331288=413.108\begin{aligned}&2 \cdot 144 + 10 \cdot 12 + 5 \cdot 1 + 1 \cdot \tfrac{1}{12} + 3 \cdot \tfrac{1}{144} + 6 \cdot \tfrac{1}{1728} \\&= 288 + 120 + 5 + \tfrac{1}{12} + \tfrac{3}{144} + \tfrac{1}{288} \\&= 413\tfrac{31}{288} = 413.108\end{aligned}

correct to three decimal places

b)3Λ4.26512=568.21110\text{b)}\quad 3\Lambda 4.265_{12} = 568.211_{10}
3144+1112+41+2112+61144+511728=432+132+4+16+124+51728=5683651728=568.211\begin{aligned}&3 \cdot 144 + 11 \cdot 12 + 4 \cdot 1 + 2 \cdot \tfrac{1}{12} + 6 \cdot \tfrac{1}{144} + 5 \cdot \tfrac{1}{1728} \\&= 432 + 132 + 4 + \tfrac{1}{6} + \tfrac{1}{24} + \tfrac{5}{1728} \\&= 568\tfrac{365}{1728} = 568.211\end{aligned}

correct to three decimal places

The hexadecimal number system

The hexadecimal number system uses the following symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.

2A7,3E2
place values16216^{2}16116^{1}16016^{0}16116^{-1}16216^{-2}16316^{-3}
256256161611116\tfrac{1}{16}1256\tfrac{1}{256}14096\tfrac{1}{4096}

The place values are powers of 16.

Converting a hexadecimal number to a decimal number

a)2A7.3E216=679.24310\text{a)}\quad 2A7.3E2_{16} = 679.243_{10}
2256+1016+71+3116+141256+214096=512+160+7+316+7128+12048=6794972048=679.243\begin{aligned}&2 \cdot 256 + 10 \cdot 16 + 7 \cdot 1 + 3 \cdot \tfrac{1}{16} + 14 \cdot \tfrac{1}{256} + 2 \cdot \tfrac{1}{4096} \\&= 512 + 160 + 7 + \tfrac{3}{16} + \tfrac{7}{128} + \tfrac{1}{2048} \\&= 679\tfrac{497}{2048} = 679.243\end{aligned}

correct to three decimal places

b)3C4.21F16=964.13310\text{b)}\quad 3C4.21F_{16} = 964.133_{10}
3256+1216+41+2116+11256+1514096=768+192+4+18+1256+154096=9645434096=964.133\begin{aligned}&3 \cdot 256 + 12 \cdot 16 + 4 \cdot 1 + 2 \cdot \tfrac{1}{16} + 1 \cdot \tfrac{1}{256} + 15 \cdot \tfrac{1}{4096} \\&= 768 + 192 + 4 + \tfrac{1}{8} + \tfrac{1}{256} + \tfrac{15}{4096} \\&= 964\tfrac{543}{4096} = 964.133\end{aligned}

correct to three decimal places

Frequently asked questions

How do you convert a binary number to a decimal number?

Multiply each digit by its place value, that is by the appropriate power of two, and add the results. For 1011.101 that gives 8 + 2 + 1 + 1/2 + 1/8, which is 11.625.

What symbols does the hexadecimal system use?

The digits 0 to 9 and the letters A to F, where A stands for ten and F for fifteen. That way each position holds sixteen different values using a single character.

What does the small subscript next to a number mean?

The base of the system the number is written in. The notation 1011₂ = 11₁₀ reads: the number 1011 in base two is 11 in base ten.

Why does the duodecimal system need extra symbols?

Because a single position has to hold twelve values, and there are only ten digits from 0 to 9. The two missing ones are written with the separate symbols X and Λ, standing for ten and eleven.

PhiBoard

A modern, interactive board for study and work. Create, teach and collaborate - completely free.

Coming soon to

Google Play

Download on the

App Store

PhiBoard

Tools

Capabilities

Knowledge base

Support

FAQ

Our mission

Contact

More

Our goalFor schoolsNews

Documents

TermsPrivacy policy

office@phiboard.com

Support the project

© 2026 PhiBoard. All rights reserved.

We Use Cookies

To improve the quality of our services, we use cookies. Cookies help us tailor our website to your preferences, analyze how you use the site, and provide a better user experience. By accepting cookies, you consent to their use for optimizing functionality and content on the site.

Number systems: binary, octal, duodecimal and hexadecimal | PhiBoard