Guide · For JSS 1 – SS 1 students · 7 min read
Number bases made simple: binary, base 5 and base 8
What a number base really is, how to convert to and from base ten, how to add in binary and base 5, the mistakes to avoid, and why computers count in twos.
By the MathPlug team, Reflex System · Published
Number bases look strange at first. How can 101 mean five? But the idea behind them is one you already use every day without thinking about it: place value.
Once you see that base 2, base 5 and base 8 work exactly like our ordinary base ten, just with a different number in charge, the whole topic becomes a set of short, reliable methods. This guide covers the methods you need for class tests, BECE and WASSCE: converting to base ten, converting from base ten, and adding in a base.
The big idea: place value
In our everyday numbers, base ten, each place is worth ten times the place to its right: units, tens, hundreds, thousands. So 352 means 3 hundreds, 5 tens and 2 units: 3 × 100 + 5 × 10 + 2 × 1.
In any other base, the idea is the same, but each place is worth base times the place to its right. The first place on the right is always worth 1. We write the base as a small number after the digits, so 2435 means "243 in base 5".
| Base | Digits allowed | Place values |
|---|---|---|
| 10 (denary) | 0 to 9 | 1, 10, 100, 1000, … |
| 2 (binary) | 0 and 1 | 1, 2, 4, 8, 16, 32, … |
| 5 | 0 to 4 | 1, 5, 25, 125, … |
| 8 (octal) | 0 to 7 | 1, 8, 64, 512, … |
💡 Tip: The digits in any base go from 0 up to one less than the base. So base 5 never uses the digit 5, and binary only ever uses 0 and 1. If you see 2635, something is wrong, because 6 is not a base 5 digit.
Converting to base ten: expand
To change a number from any base into base ten, write the place value under each digit, multiply, then add. This is called expanding.
Convert 10112, 2435 and 1578 to base ten.
- 10112: place values (right to left) 1, 2, 4, 8.
- 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1 = 8 + 0 + 2 + 1 = 11
- 2435: place values 1, 5, 25.
- 2 × 25 + 4 × 5 + 3 × 1 = 50 + 20 + 3 = 73
- 1578: place values 1, 8, 64.
- 1 × 64 + 5 × 8 + 7 × 1 = 64 + 40 + 7 = 111
- Answers: 10112 = 11, 2435 = 73, 1578 = 111.
You may also see place values written as powers, such as 2 × 52 + 4 × 51 + 3 × 50. It is exactly the same working, because 52 = 25, 51 = 5 and 50 = 1. The formula card on converting a number base to base ten shows this form.
Converting from base ten: repeated division
To go the other way, divide by the new base again and again, writing down the remainder each time, until you reach 0. Then read the remainders from the bottom up.
Convert 45 to base 2.
- 45 ÷ 2 = 22 remainder 1
- 22 ÷ 2 = 11 remainder 0
- 11 ÷ 2 = 5 remainder 1
- 5 ÷ 2 = 2 remainder 1
- 2 ÷ 2 = 1 remainder 0
- 1 ÷ 2 = 0 remainder 1
- Read the remainders from the bottom up: 101101
- Answer: 45 = 1011012
- Check by expanding: 32 + 0 + 8 + 4 + 0 + 1 = 45. Correct.
Convert 89 to base 5, and 100 to base 8.
- 89 ÷ 5 = 17 remainder 4; 17 ÷ 5 = 3 remainder 2; 3 ÷ 5 = 0 remainder 3
- Bottom up: 89 = 3245. Check: 3 × 25 + 2 × 5 + 4 = 75 + 10 + 4 = 89.
- 100 ÷ 8 = 12 remainder 4; 12 ÷ 8 = 1 remainder 4; 1 ÷ 8 = 0 remainder 1
- Bottom up: 100 = 1448. Check: 1 × 64 + 4 × 8 + 4 = 64 + 32 + 4 = 100.
To convert between two bases that are not ten, such as base 5 to base 8, go through base ten: expand first, then divide. For example, 3245 = 89, and 89 in base 8 is 1318 (89 ÷ 8 = 11 remainder 1; 11 ÷ 8 = 1 remainder 3; 1 ÷ 8 = 0 remainder 1).
Adding in a base
Add column by column from the right, just as in base ten. The only difference is when you carry: you carry when a column reaches the base, not when it reaches ten.
Add 10112 + 1102.
- Line them up: 1011 on top, 0110 below.
- Units column: 1 + 0 = 1. Write 1.
- Twos column: 1 + 1 = 2 = 1 two and 0 left. Write 0, carry 1.
- Fours column: 0 + 1 + 1 (carried) = 2. Write 0, carry 1.
- Eights column: 1 + 0 + 1 (carried) = 2. Write 0, carry 1 into a new column.
- Answer: 100012
- Check in base ten: 10112 = 11 and 1102 = 6. 11 + 6 = 17, and 100012 = 16 + 1 = 17. Correct.
Add 345 + 235.
- Units column: 4 + 3 = 7 = one 5 and 2 left. Write 2, carry 1.
- Fives column: 3 + 2 + 1 (carried) = 6 = one 5 and 1 left. Write 1, carry 1.
- Answer: 1125
- Check in base ten: 345 = 19 and 235 = 13. 19 + 13 = 32, and 1125 = 25 + 5 + 2 = 32. Correct.
Common mistakes to avoid
- Reading remainders from the top down. 45 would come out as 101101 either way, because it reads the same both ways, but 89 in base 5 would become 4235 instead of 3245. Always read from the bottom up.
- Starting place values at the base instead of 1. The right-hand digit is always worth 1 (units), whatever the base.
- Carrying at ten. In base 5 you carry at 5; in binary you carry at 2. A digit equal to or bigger than the base in your answer means you forgot to carry.
- Dropping zero remainders. A remainder of 0 is a real digit. Leaving it out changes the number.
- Forgetting the base label. Write 3245, not just 324, or the examiner cannot tell which base you mean.
💡 Tip: Every conversion can be checked by converting back. It takes under a minute and catches almost every slip.
Why computers use binary
A computer is built from a huge number of tiny electronic switches, and each switch has just two states: off or on. Two states fit binary perfectly: 0 for off, 1 for on. Every number, letter, photo and song on your phone is stored as long strings of 0s and 1s.
Base 8 is useful because it is a shorthand for binary: each base 8 digit stands for exactly three binary digits, since 8 = 23. Split 1011012 into groups of three from the right, 101 and 101. Each 101 is 5, so 1011012 = 558. Check: 5 × 8 + 5 = 45, which matches what we found earlier.
Questions students ask
- How do you convert a number from base 10 to base 2?
- Divide the number by 2 repeatedly, writing down each remainder, until the answer is 0. Then read the remainders from the bottom up. For example, 45 = 1011012.
- How do you convert from base 5 to base 10?
- Multiply each digit by its place value (1, 5, 25, 125, … from the right) and add the results. For example, 2435 = 2 × 25 + 4 × 5 + 3 = 73.
- Why can't a base 5 number contain the digit 5?
- Because as soon as a place reaches 5, it is carried into the next place, just as 10 units become 1 ten in base ten. The digits in base 5 are only 0, 1, 2, 3 and 4.
MathPlug is not affiliated with WAEC, NECO or any state examination board. Exam details here come from published syllabuses and exam schemes; always check the instructions on your own question paper and your school's timetable. Spotted something to correct? Tell us.