Skip to content
BetterDL

Positional weight

Also called: weight, place weight, digit weight, bit weight

The amount one unit in a given position is worth: a power of the base, bᵖ for position p counted from 0 on the right. In binary: 1, 2, 4, 8, …

A digit's weight is what one unit in its position is worth. Its value is digit × weight.

In base b, number the positions from the right, starting at 0. Position p has weight bᵖ:

  • binary: 1, 2, 4, 8, 16, 32, …
  • octal: 1, 8, 64, 512, …
  • decimal: 1, 10, 100, 1000, …
  • hexadecimal: 1, 16, 256, 4096, …

In binary each digit is 0 or 1, so a number's value is just the sum of the weights that sit over a 1. That's why it helps to write the weights above the bits before converting.

Bit positions are named after their weights' exponents. Bit 0 is the LSB, with weight 1. In an n-bit number, bit n − 1 is the MSB, with weight 2ⁿ⁻¹.

In twos complement the MSB's weight is negative (−2ⁿ⁻¹), and every other weight stays the same. That one change is the whole difference between reading bits as signed or unsigned.

1
128
0
64
0
32
1
16
0
8
1
4
1
2
0
1

Worked examples

Example

The weight of bit 5

Bit numbers start at 0 on the right.

  1. 1.

    Bit 5 is the sixth bit from the right.

  2. 2.

    Its weight is 2⁵ = 32.

  3. 3.

    So in 00100000, the single 1 is worth 32.

Example

The value of 10010110₂

The 1s sit in bits 7, 4, 2 and 1, so add those weights: 128 + 16 + 4 + 2 = 150.

Common mistakes

  • Confusing weight with value. In 472, the 7's weight is 10 and its value is 70.

  • Counting positions from 1. Bit 5 has weight 32, not 16.

Practice Positional weight

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Positional weight is taught in Number Systems.