Skip to main content

Key stage 3 maths · ages 11 to 14 · ~15 min

Binary Numbers

How computers count using only 0 and 1, and how to convert between binary and decimal.

Try it

Binary transmitter: sending numbers and commands to a spacecraft

Inspect byte:

Each character or sensor reading is turned into a whole number (0 to 255), then sent across space as eight on/off radio pulses (1s and 0s) so static cannot garble it.

Click any bit switch below to flip it between 0 (off) and 1 (on):1282^700642^61+64322^500162^40082^30042^21+422^11+212^01+1Earthsends bits1 (ON)0 (OFF)01000111Spacecraft= 71
8-bit byte
01000111
shortest form: 1000111
Places with a 1
64 + 4 + 2 + 1
add these powers of 2
Denary value
71
base 10 (0 to 255)
Meaning in message
'G' (ASCII 71)
text or pixel brightness

In binary, 1000111 has 1s in the 64, 4, 2, 1 places, so its denary value is 64 + 4 + 2 + 1 = 71. A spacecraft radio sends those eight bits as on/off pulses (01000111) so Earth or the spacecraft can rebuild the exact number 71 even when the signal is faint.

Mission 4: Talk to the spacecraftStep 3 of 4

Why this mission needs it: Across millions of kilometres a radio wave grows faint and noisy: encoding every camera pixel and sensor reading as binary 1s and 0s (on/off pulses) lets Earth reconstruct the message cleanly through static.

The idea

Value=∑i=0nbi⋅2i\text{Value} = \sum_{i=0}^{n} b_i \cdot 2^i
bib_i
Bit (binary digit), 0 or 1
One digit of a binary number. Counting from the right and starting at 0, the bit in place ii is worth 2i2^i (so the rightmost place is worth 1) if it is a 1, and nothing if it is a 0.
nn
Place of the leftmost bit, a whole number
The place of the leftmost bit, counting from 0 at the right. A 5-bit number has n=4n = 4.

Only two digits

Binary numbers are written with just two digits, 0 and 1. Each one is called a bit. A computer can store a bit in anything that has two states, such as a tiny switch that is off (0) or on (1).

Key point: Two states are easy to build and hard to mix up, which is why computers use binary.

Place values double

In our everyday denary numbers (base 10, also called decimal), each place is worth ten times the place to its right. In binary each place is worth two times the place to its right: 1, 2, 4, 8, 16 and so on, which are the powers of 2. The sign Σ means add up: for every bit, multiply it by its place value and add the results.

Key point: Read a binary number by adding the place values that hold a 1.

Adding in binary

Work column by column from the right, just as in denary. In binary 1+1=101 + 1 = 10, so put down 0 and carry 1 into the next column. With a carry, 1+1+1=111 + 1 + 1 = 11, so put down 1 and carry 1.

Key point: Two 1s in a column make 10 in binary, so a carry happens sooner than in denary.

Where you’ll see this: Every command sent up to a spacecraft, and every reading and photo it sends back, travels as a stream of 0s and 1s.

Worked example

Convert the binary number 1011010110 to denary.

  1. 1Write the place values over the bits, from the right: 1,2,4,8,161, 2, 4, 8, 16.
  2. 2The 1s are in the 16s, 4s and 2s places.
  3. 3Add those place values: 16+4+2=2216 + 4 + 2 = 22.

Answer10110 in binary=22 in denary10110 \text{ in binary} = 22 \text{ in denary}

Practice

Practise with the step-by-step quiz in the Try it panel. Each question is answered one step at a time, with fresh numbers every time, and the questions you miss come back for review.

Notes

Binary numbers

Computers store everything as binary: numbers written with only two digits, 0 and 1. A 0 or a 1 is called a bit. Inside a computer each bit is held by something with two states, like a tiny switch that is either off (0) or on (1).

Place values

Our everyday numbers are denary (base 10, also called decimal). Each place is worth ten times the place to its right: ones, tens, hundreds.

In binary each place is worth two times the place to its right:

1286432168421

Eight bits make a byte, which can hold any whole number from 0 to 255.

Binary to denary

Add up the place values where there is a 1, and ignore the places with a 0. The worked example does this for 1011010110.

Denary to binary

Take away the biggest place value that fits, write a 1 there, and repeat with what is left. Write a 0 in every place that does not fit. For 19:

  1. 16 fits into 19: write 1 in the 16s place, leaving 3.
  2. 8 does not fit into 3: write 0 in the 8s place.
  3. 4 does not fit into 3: write 0 in the 4s place.
  4. 2 fits into 3: write 1 in the 2s place, leaving 1.
  5. 1 fits: write 1 in the 1s place, leaving 0.

So 19=1001119 = 10011 in binary.

Adding in binary

Add column by column from the right, as in denary, but remember:

  • 0+0=00 + 0 = 0
  • 0+1=10 + 1 = 1
  • 1+1=101 + 1 = 10: write 0 and carry 1
  • 1+1+1=111 + 1 + 1 = 11: write 1 and carry 1

For 110+11110 + 11: the right column is 0+1=10 + 1 = 1; the middle column is 1+1=101 + 1 = 10 (write 0, carry 1); the left column is 1+0+1=101 + 0 + 1 = 10 (write 0, carry 1), and the carried 1 goes in a new place on the left. The answer is 10011001. Check in denary: 6+3=96 + 3 = 9.

Pictures from Mars

Every photo a Mars rover takes is stored as numbers that give the brightness of each tiny dot in the picture. Those numbers are sent to Earth by radio as a long stream of 0s and 1s, usually passed on by a spacecraft orbiting Mars. Back on Earth, computers turn the bits back into numbers and the numbers back into a picture.

Next on the journey

A spacecraft far from Earth cannot be repaired. If its computer fails, the stream of bits stops. How likely is that, and how do engineers make it less likely? That is the next lesson, on probability.

Sources

The topics in these notes follow the Department for Education document below.

Where this fits in the curriculum(Key stage 3 computing · 1 DfE statement)Show ▾

Key stage 3 computing in the curriculum for England. The Department for Education says pupils should be taught to:

  • Key stage 3

    “understand how numbers can be represented in binary, and be able to carry out simple operations on binary numbers [for example, binary addition, and conversion between binary and decimal]”

Binary sits in the computing curriculum, not the mathematics one.

Quoted from National curriculum in England: computing programmes of study (Department for Education, gov.uk), checked on 12 October 2026. This is the content every exam board has to cover. It is not one board’s specification, so use your own for exactly what is examined.

Tick it off once the practice questions make sense.

Next on this mission

Free to use, not free to run: if this lesson helped you, your child or your class, chip in towards hosting and new lessons, or help review a mission.

Chip in on Ko-fi

This lesson was written with AI assistance. Check formulas and figures against your textbook or exam board’s specification before relying on them in assessed work.

Spotted a mistake? Report a problem

Please do not include your name, email or anything else about yourself. We only need to know what is wrong. We use reports only to put mistakes right, and delete them after 30 days. Privacy