# How to Read and Write Binary Numbers

### How to Write a Number in Binary: Video Lesson

1. Write a 1 above the rightmost binary digit.
2. Write a 2 above the next digit to the left and a 4 above the next digit.
3. Keep doubling the number written above as you move one digit to the left.
4. Add the numbers that are above the binary digits that contain a 1.

### Example of Reading a Binary Number of 1011

We will use these steps to read the binary number of 1011.

Step 1. Write a 1 above the rightmost binary digit

The image below shows a 1 written above the rightmost digit of the binary number.

Step 2. Write a 2 above the next digit to the left and a 4 above the next digit

We write a 2 next to the 1 that was written previously.

We write a 4 next to this 2 as we move left.

Step 3. Keep doubling the number written above as you move one digit to the left

We have already written 1, 2 and 4 above the digits.

We have doubled 1 to get 2, doubled 2 to get 4 and now we double 4 to get 8.

We write an 8 above the next digit to the left.

Step 4. Add the numbers that are above the binary digits that contain a 1

In the binary digit of 1011, there are three digits of 1.

Above these ones, we have written a 1, 2 and an 8.

We add 8 + 2 + 1 = 11 to see that the binary number of 1011 is the number 11 in decimal form.

We did not add the 4 because this was above the 0.

In binary, a 1 means that we use the digit written above the number and a 0 means that we do not use it.

## Examples of Reading Binary Numbers

Write the powers of 2 from right to left above the digits of the binary number. This is 16, 8, 4, 2, 1.

Add the powers of two that have a binary digit of 1 below them.

Here we have a 1 below 16 and 1, so we add 16 and 1 to get an answer of 17.

10001 is the binary way of writing the number 17.

For example, read the binary number of 110011.

The powers of two are written above the digits from right to left, starting with 1 on the right.

32, 16, 8, 4, 2, 1.

Add the powers of 2 that have a binary digit of 1 below them. That is 32, 16, 2 and 1.

1 + 2 + 16 + 32 = 51 and so, 110011 is the binary number that represents 51.

Even binary numbers always end in a 0. If a binary number ends in a 0, it is even.

Odd binary numbers always end in a 1. If a binary number ends in a 1, it is odd. This is because the digits of binary numbers represent powers of 2. The only odd power of 2 is the final binary digit of 1.

Here are some examples of converting binary to decimal numbers.

## How to Write a Number in Binary

To write a number in binary, first write powers of 2 from right to left. For example: 16, 8, 4, 2, 1. Then place a 1 below the powers of 2 that add to make the number. Place a 0 below any powers of 2 that are not used. For example, 19 in binary is 10011 because the 5 digits of 10011 represent 16, 8, 4, 2 and 1 and the 16, 2 and 1 add to make 19.

For example, convert the decimal number of 50 into binary.

The powers of 2 are written above the binary number. We start with a 1 on the right and double as we go left.

We have 32, 16, 8, 4, 2, 1.

Now we select the powers of 2 from this list that add to make 50. That is 32 + 16 + 2.

We write a 1 below the 32, 16 and 2 columns and a 0 below the numbers that we did not use. We did not use an 8, 4 or 1, so we put a 0 in these columns.

50 in binary is 110010.

To convert a larger number to binary:

1. Subtract the largest power of 2 possible from the number
2. Write a 1 in the place value column below this power of 2
3. Subtract the largest power of 2 possible from the remainder
4. Write a 1 in the place value column below this power of 2
5. Continue doing this until there is a remainder of 0
6. Write a 0 in the place value columns below the powers of 2 not used

For example, convert 150 to binary. Step 1. Subtract 128 from 150 to leave 22. Step 2. Write a 1 below 128. Step 3. The remainder is 22 and we can subtract 16 from this.Step 4. Write a 1 below the 16. Step 5. Continue doing this until the remainder is zero. Subtract 4 from 6 to leave a remainder of 2. Step 5. Continue doing this until the remainder is zero.Subtracting 2 from the remainder of 2 gives us a remainder of zero. Step 6. Write a zero in the place value columns below the powers of 2 not used.

We did not subtract 64, 32 or 8 in this process and so, we write a 0 in these place value columns.

150 in binary is 1001011.

## List of Binary Numbers

The first ten binary numbers are 1, 10, 11, 100, 101, 110, 111, 1000, 1001 and 1010.

Here is a list of binary numbers from 1 to 100.

## How to Write a Decimal Number in Binary

In binary, the value of the digits to the left of the decimal point double as you go left. The value of the digits to the right of the decimal point halve as you go right. For example in the binary number 101.1, the place value columns represent 4, 2, 1 and then 0.5. Therefore 101.1 = 4 + 1 + 0.5, which is equal to 5.5.

Here is a binary number with a decimal point: 0.11.