Binary Number System

Download as PDF

Have you ever wondered how computers think? They don't use the same numbers we do! We use ten digits (09), but computers use a special system called binary, which has only two digits: 0 and 1. Let's explore this amazing "base-2" language together!

Binary Number System — an original Algebra911 reference diagram defining binary number system and a worked example.
The Binary Number System: A Beginner's Guide

What Is the Binary Number System?

The binary number system is a way of representing numbers using only two digits: 0 and 1. Unlike our familiar decimal system that uses ten digits, binary keeps it simple. Because it uses only two digits, it is also called the base-2 number system.

Think about the numbers you use every day. This is called the decimal or base-10 system. The name "base-10" comes from the fact that we use ten unique digits to write any number:

  • 0,1,2,3,4,5,6,7,8,9

Once we count past 9, we run out of single digits. What do we do? We add another column (the tens place) and start over, giving us 10. The binary system works on a very similar idea, but it runs out of digits much faster—right after 1!

A Quick Look at Our Base-10 System

Before we dive deeper into binary, let's quickly review how our own number system works. The key is place value. Every position a digit holds in a number has a specific value.

Let's take the number 472. It isn't just a 4, a 7, and a 2 next to each other. It's really:

  • 4 hundreds
  • 7 tens
  • 2 ones

We can also write this using powers of 10:

(4×100)+(7×10)+(2×1)

Or, for older students:

(4×102)+(7×101)+(2×100)

Each place to the left is 10 times bigger than the place to its right. This base-10 structure is what you've been using your whole life. Understanding this is the key to unlocking how binary works.

How Does Place Value Work in Binary?

Binary place value works just like decimal place value, but instead of multiplying by 10 for each new position, we multiply by 2. The places aren't ones, tens, and hundreds. Instead, they are:

  • Ones place (20=1)
  • Twos place (21=2)
  • Fours place (22=4)
  • Eights place (23=8)
  • Sixteens place (24=16)
  • And so on...

Each place value is double the one to its right. Here is a table that shows the binary place values:

Power of 22726252423222120
Decimal Value1286432168421

So, when we see a binary number like 1012 (the little 2 means it's a base-2 number), the digits don't mean one hundred and one. The first 1 is in the fours place, the 0 is in the twos place, and the last 1 is in the ones place. We are about to see how to use this to find its value!

How Do You Convert from Binary to Our Everyday Numbers?

Converting a binary number into a decimal number is a great way to start understanding the system. It's like translating from a secret code! All you have to do is add up the place values for every digit that is a 1.

Here are the steps:

  1. Write down the binary number.
  2. Above each digit, write its place value (1,2,4,8,16,...) starting from the right and moving left.
  3. Look for all the places where the binary digit is a 1.
  4. Add the place values from those positions together.
  5. The sum you get is the decimal equivalent of the binary number!
Example 1

Let's convert the binary number 11012 to a decimal number.

Step 1 & 2: Write the number and its place values.

84211101

Step 3 & 4: Identify the columns with a 1 and add their place values.

There is a 1 in the eights place, a 1 in the fours place, and a 1 in the ones place. There is a 0 in the twos place, so we ignore it.

So, we add: 8+4+1

Step 5: Calculate the final sum.

8+4+1=13

Therefore, the binary number 11012 is equal to the decimal number 1310.

How Do You Convert Our Numbers into Binary?

Now let's try the reverse: converting a familiar decimal number into its binary form. This might seem tricky at first, but it's a simple process of repeated division. We call this the 'Division by 2' method.

Here are the steps:

  1. Start with your decimal number.
  2. Divide this number by 2.
  3. Write down the whole number result and the remainder. The remainder will always be either 0 (if the number was even) or 1 (if the number was odd).
  4. Take the whole number result from the previous step and divide it by 2 again.
  5. Continue this process, dividing the result by 2 each time, until the result is 0.
  6. To find the binary number, write down all the remainders you found, starting from the bottom and going to the top.

This last step is the most important! Reading the remainders in the wrong order is a very common mistake.

Example 2

Let's convert the decimal number 2910 to a binary number.

We will repeatedly divide by 2 and record the remainder.

  • 29÷2=14 with a remainder of 1
  • 14÷2=7 with a remainder of 0
  • 7÷2=3 with a remainder of 1
  • 3÷2=1 with a remainder of 1
  • 1÷2=0 with a remainder of 1

Now that we've reached a result of 0, we stop. To get the binary answer, we read the list of remainders from the bottom to the top.

The remainders are: 1,0,1,1,1. Reading upwards, we get 11101.

So, the decimal number 2910 is equal to the binary number 111012.

Why Is Binary So Important for Computers?

This might seem like a lot of work just to write numbers in a different way. So why bother? The answer is simple: computers.

A computer is made of billions of tiny electronic switches called transistors. Each switch can be in one of two states: it can be ON or it can be OFF. There is no in-between state. This two-state system is a perfect match for the binary number system!

  • ON can be represented by the digit 1.
  • OFF can be represented by the digit 0.

Every single thing a computer does, from showing your favorite video to calculating a math problem, is broken down into a massive sequence of these ON and OFF signals. The letter 'A' on your screen is stored as a specific binary code (01000001), a specific color is a code, and a sound is a code. By using binary, computers can process and store huge amounts of information reliably and incredibly fast. It's the fundamental language of all digital technology.

Let's Try One More Conversion

Practice is the best way to get comfortable with binary. Let's do one more conversion from a slightly larger binary number to a decimal number to make sure you've got the hang of it.

Example 3

Convert the binary number 101102 to a decimal number.

Step 1 & 2: Write the number and its place values above it, starting from the right.

16842110110

Step 3 & 4: Find the columns that have a 1 and add their place values.

We have a 1 in the sixteens place, the fours place, and the twos place. The other places have a 0, so we can ignore them.

Let's add them up: 16+4+2

Step 5: Calculate the final sum.

16+4+2=22

So, the binary number 101102 is equal to the decimal number 2210.

Common Mistakes When Working with Binary

As you learn about binary, there are a few common pitfalls to watch out for. Being aware of them can help you avoid making simple errors.

  • Reading Remainders Backwards: This is the most common mistake when converting from decimal to binary. Remember the rule: after you finish dividing, you must read the list of remainders from the bottom to the top.
  • Mixing Up Place Values: It's easy to forget that binary place values double each time (1,2,4,8,16,...). Some students accidentally use a pattern like 1,2,3,4 or forget a value in the sequence. Always double-check your place values before adding.
  • Forgetting the Subscript: When you're working with both binary and decimal numbers, things can get confusing. Is 10 the number ten or the number two? Using subscripts helps keep everything clear. Write 1010 for decimal and 102 for binary.
  • Thinking 102 is 'Ten': Our brains are so used to the decimal system that it's easy to see 10 and think 'ten'. In binary, 102 means one group of two and zero ones, which equals the decimal number 2.

Binary Numbers Quick Reference

Here is a quick summary of the most important points about the binary number system.

  • What is it? The binary system is a base-2 number system that uses only two digits: 0 and 1.
  • Why is it used? It is the fundamental language of computers and all digital devices. The 0 and 1 represent the OFF and ON states of electronic switches.
  • Place Values: Binary place values are based on powers of two. From right to left, they are 1,2,4,8,16,32,... and so on.
  • Converting Binary to Decimal: To convert 11012 to decimal, you add the place values for each 1. This would be 8+4+1=13.
  • Converting Decimal to Binary: To convert a decimal number like 13 to binary, use repeated division by 2. Then, read the remainders from the bottom up to get the answer (11012).

Frequently Asked Questions

What are the two digits in binary called?

The digits 0 and 1 in the binary system are called 'bits,' which is short for 'binary digits.' A bit is the most basic unit of information in computing.

Why is the binary system also called 'base-2'?

It's called base-2 because it uses only two unique digits (0 and 1). Additionally, its place values are all based on powers of the number 2, such as 20, 21, and 22.

How do you count past 1 in binary?

Just like in our decimal system when we run out of digits after 9, we add another place value to make 10. In binary, after 1, we run out of digits, so the next number is 102 (two), then 112 (three), then 1002 (four).

What's the biggest number you can make with 8 bits?

With 8 bits (which is called a byte), the largest number is 111111112. This is equal to 128+64+32+16+8+4+2+1, which adds up to 255 in decimal.

Is there a base-8 or base-16 system?

Yes! Computer scientists and programmers often use the octal (base-8) and hexadecimal (base-16) systems. They are useful because they serve as a compact, human-readable way to represent long strings of binary numbers.

How is binary used in things other than computers?

The concept of a two-state system is everywhere. A light switch is either on or off. A true/false question has only two possible answers. Even Braille, the writing system for the visually impaired, uses patterns of raised and unraised dots, which is a binary system.

Can you add and subtract binary numbers?

Absolutely! All standard arithmetic operations like addition, subtraction, multiplication, and division can be performed with binary numbers. The rules are simple and consistent, making it easy for computers to calculate them.