🔢 Binary Numbers, Bits and Bytes

5th Grade 💻 Computers & the Internet

Inside a computer there are no letters, no colors and no sounds — there are only two states: current or no current. So how can you write numbers, words, pictures and songs using just two states? The answer is the binary system. By the end of this lesson you’ll be able to count like a computer.

Free · US Letter · no sign-up
Google Classroom Save to Pinterest Email me

Why only zero and one?

Every computer is made of billions of tiny switches called transistors. Each switch can be in one of two states: on or off, voltage or no voltage. Switches like these are easy to build, can flip very fast, and it’s easy to tell the two states apart without mistakes. So one state is written as 1 and the other as 0, and all the information in a computer is written as strings of zeros and ones.

A single one of these digits, 0 or 1, is called a bit — short for “binary digit.” One bit can only answer a yes-or-no question: Is the light on? Is the letter a capital? But when you put lots of bits together, you can describe anything — just like the 26 letters of the alphabet are enough to write every book in English.

How to count in binary

In our everyday decimal system there are ten digits, and each place has a value: ones, tens, hundreds — every place is worth 10 times the place to its right. In binary there are only two digits, and every place is worth 2 times the place to its right: 1, 2, 4, 8, 16, 32, 64, 128. You count like this: 0, 1, 10 (two), 11 (three), 100 (four), 101 (five), 110 (six), 111 (seven), 1000 (eight).

To read a binary number, add up the values of the places that have a 1. Take 1011: there’s a 1 in the 8s place, a 0 in the 4s place, a 1 in the 2s place and a 1 in the 1s place. Together: 8 + 2 + 1 = 11. Try it yourself: what is 10100? (There’s a 1 in the 16s place and in the 4s place — so it’s 20.)

From decimal to binary

To turn an ordinary number into binary, look for the place values that build it, from biggest to smallest. Say you want to write 13. The biggest place value that fits into 13 is 8 — write a 1 in the 8s place, and 5 is left. 4 fits into 5 — another 1, and 1 is left. 2 doesn’t fit — write 0. 1 fits — write 1. The answer: 1101.

There’s another way, too: keep dividing the number by 2 and write down the remainder (0 or 1) each time. 13 ÷ 2 = 6 remainder 1; 6 ÷ 2 = 3 remainder 0; 3 ÷ 2 = 1 remainder 1; 1 ÷ 2 = 0 remainder 1. Read the remainders from last to first: 1101 — the same answer.

Bytes, kilobytes and gigabytes

Eight bits together are called a byte. One byte can hold 256 different combinations — from 00000000 to 11111111 — so a single byte is enough to stand for one English letter, digit or symbol. A kilobyte is about a thousand bytes, a megabyte about a million, a gigabyte about a billion and a terabyte about a trillion.

Why “about”? Because computers love powers of 2, so sometimes a kilobyte is counted as 1,024 bytes instead of 1,000. That’s why a drive labeled with a certain size can look a little smaller on your computer — it’s not a bug, just a different way of counting. To compare: a short text document takes up a few kilobytes, a photo from a phone a few megabytes, and a full-length movie a few gigabytes.

Key facts

  • A bit is a single binary digit: 0 or 1.
  • A byte is 8 bits and can hold 256 different combinations.
  • In binary, every place is worth 2 times the place to its right: 1, 2, 4, 8, 16, 32, 64, 128.
  • The number 13 is written 1101 in binary, and binary 1011 equals 11.
  • A kilobyte is about a thousand bytes, a megabyte about a million and a gigabyte about a billion.

Quick quiz

  1. What is a bit?

  2. How many bits are in a byte?

  3. What is the binary number 101 equal to?

  4. How do you write the number 4 in binary?

  5. Why does a computer use only two digits?

  6. How many different combinations can one byte hold?

  7. What is the binary number 1011 equal to?

  8. Which is the biggest?

💭 Think and talk about it

  1. Write your age in binary. How many binary digits did you need?
  2. Why do you think a computer built with ten states instead of two would be harder to build?
  3. Using the five fingers on one hand, with each finger as one bit, how high can you count?

Questions kids ask

What are binary numbers?

A way of writing numbers with just two digits, 0 and 1, where every place is worth 2 times the place to its right. It’s the basic language of every computer.

How do you convert a number to binary?

Keep dividing by 2 and write down the remainder (0 or 1) at each step, then read the remainders from last to first. For example, 13 → 1101.

What’s the difference between a bit and a byte?

A bit is one binary digit. A byte is a group of 8 bits — enough to stand for one English letter or a number from 0 to 255.

🔎 Ask Thinkapedia another question