How to convert binary to decimal

By AIM-VNR · Updated

To convert binary to decimal, write the place value above each bit, then add the place values where the bit is 1.

Steps

  1. Write the place values from the right: 1, 2, 4, 8, 16, 32 and so on. See the powers of two table.
  2. Put each bit under its place value.
  3. Add the place values that have a 1 under them.

Example 1: 1101

Place values: 8, 4, 2, 1. Bits: 1, 1, 0, 1.

8 + 4 + 0 + 1 = 13. So 1101 in binary is 13 in decimal.

Example 2: 101101

Place values: 32, 16, 8, 4, 2, 1. Bits: 1, 0, 1, 1, 0, 1.

32 + 8 + 4 + 1 = 45.

Example 3: 11111111

Eight ones: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. This is the biggest value one byte can hold.

Check your answer

An odd binary number always ends in 1, and its decimal value is odd too. Adding up wrong place values is the most common mistake, so write them out.

Practise it

In Binary Practice, open Training and choose binary to decimal. Then try Minute Challenge.

Reverse direction: decimal to binary.