Menu

Binary to Denary Conversion

Binary Place Values

To convert a binary pattern to denary you work out what each bit is worth and add up the bits that are set to 1. Binary is a positional number system: what a bit is worth depends on where it sits, not just on the digit itself, and the base of the system tells you how much each step to the left is worth.

Each position is a power of 2

Binary is base 2, so every position is worth a power of 2. The rightmost position is worth 1, and each step to the left doubles the value. In an 8-bit pattern the place values from left to right are 128, 64, 32, 16, 8, 4, 2 and 1, so the leftmost bit carries the largest value and the rightmost bit carries the smallest.

Using the place values

Line every bit up with its place value, then add only the place values where the bit is 1. Take 10110010:

Bit10110010
Place value1286432168421
Count it?yesnoyesyesnonoyesno

The bits set to 1 are worth 128, 32, 16 and 2: 128 + 32 + 16 + 2 = 178, so 10110010 is 178 in denary. The order you add them in does not change the answer, but each place value must stay in line with its own bit, or the total will be wrong.

The 8-bit pattern 10110010 lined up under the place values 128, 64, 32, 16, 8, 4, 2 and 1, which double each step to the left. Arrows bring down the place values above each 1 to give 128 + 32 + 16 + 2 = 178.

The full range

If all eight bits are set to 1, every place value counts. Adding the place values from the leftmost (128) down to the rightmost (1) gives 255. So an unsigned 8-bit pattern represents denary values from 0 (00000000) up to 255 (11111111).

Practise this