Read binary place values
Quick review (2 minutes)
Picture a kitchen scale and four weights marked 8 grams, 4 grams, 2 grams and 1 gram.
This rule models one convention: a four-bit unsigned pattern with exactly four bits, columns worth 8, 4, 2 and 1 from left to right, and no sign. Other conventions read the leftmost bit as a plus or minus sign, so the answers here hold only when the pattern is stated to be unsigned.
To decode, the initial state is a total of 0 with your pencil at the 8 column. Move left to right, one column at a time. If the column holds 1, add its value to the total; if it holds 0, add nothing. Stop after the 1 column, and the total is the number.
To encode, the initial state is a remaining amount equal to the number, with four empty boxes under the headers 8 4 2 1. Move left to right, starting at the 8 column. If the column's value is no more than the remaining amount, write 1 and subtract the value; otherwise write 0. Stop after the 1 column. If the remaining amount is 0, the four marks are the pattern; if it is not 0, the number does not fit in four bits.
Write the headers 8 4 2 1 across your paper and draw a box under each.
To decode, copy the pattern into the boxes, one digit per box. Check that there are four digits and that each is 0 or 1.
Set the total to 0. Working left to right, add the header of every box that holds 1 and skip every box that holds 0.
Stop after the 1 column. The total is your number.
To encode, write the number as the remaining amount. Working left to right, ask whether the header is no more than the remaining amount.
If it is, write 1 in that box and subtract the header from the remaining amount. If it is not, write 0.
Stop after the 1 column. If the remaining amount is 0, read the four boxes as your pattern and keep any leading zeros. If it is not 0, the number does not fit in four bits.
Check by running the rule the other way: decode the pattern you wrote, or encode the number you found, and compare with where you started.
If you read 1010 as one thousand and ten, you have used decimal columns, which step by ten: 1000, 100, 10 and 1. The same four marks then name a much larger number. Binary columns step by two, so 1010 in binary is 8 + 2 = 10.
Three habits guard against this. Write "in binary" next to the pattern, write the headers 8 4 2 1 above the digits before you read, and check that every digit is 0 or 1. A digit from 2 to 9 means the marks are not a binary pattern at all.
1 In plain words
Picture a kitchen scale and four weights marked 8 grams, 4 grams, 2 grams and 1 gram. Each weight is either on the scale or off it, and no weight goes on twice. Write 1 under each weight that is on and 0 under each weight that is off. The four marks then record the total on the scale.
That row of marks is a binary number. Binary writes numbers with only two digits, 0 and 1, and each of those marks is one bit. The numbers you use every day are decimal, also called base 10, which uses the ten digits 0 to 9.
In both systems, what a digit is worth depends on its place, the position it sits in. Call each position a column and call what it is worth its place value. A four-bit pattern is a row of exactly four bits, and its place values from left to right are 8, 4, 2 and 1. Each column is worth twice the column on its right.
A short reading: take 1010 in binary. The 8 column holds 1, the 4 column holds 0, the 2 column holds 1 and the 1 column holds 0. Add the columns that hold a 1: 8 + 2 = 10.
Four more words finish the toolkit. To decode is to turn a pattern into a number, and to encode is to turn a number into a pattern. Unsigned means the pattern carries no plus or minus sign, so it names a whole number from 0 up. A leading zero is a 0 at the left end, and a four-bit pattern keeps it, so 6 is written 0110, not 110.
Remember one line: the column headers 8 4 2 1. When you meet a pattern, write those headers above it and add, rather than memorising patterns. Four bits reach at most 1111, which is 15, so any larger number needs more bits.
2 Picture it
From the left, the places are worth 8, 4, 2 and 1. In 1010, the first and third places contribute 8 and 2.
3 Why
Binary uses the same place idea as decimal with a different step. Decimal columns step by ten, so they are worth 1, 10, 100 and 1000 from the right. Binary columns step by two, so they are worth 1, 2, 4 and 8 from the right. A 1 adds its column's value to the total, and a 0 adds nothing.
Each binary column is also worth more than all the columns to its right put together. The sum 4 + 2 + 1 is 7, less than 8; 2 + 1 is 3, less than 4; and 1 is less than 2. So when you encode from the left, any column that fits must be used, because the smaller columns together can never make up for skipping it. That is why each whole number from 0 to 15 has exactly one four-bit pattern.
4 The rule
This rule models one convention: a four-bit unsigned pattern with exactly four bits, columns worth 8, 4, 2 and 1 from left to right, and no sign.
Other conventions read the leftmost bit as a plus or minus sign, so the answers here hold only when the pattern is stated to be unsigned.
To decode, the initial state is a total of 0 with your pencil at the 8 column. Move left to right, one column at a time. If the column holds 1, add its value to the total; if it holds 0, add nothing. Stop after the 1 column, and the total is the number.
To encode, the initial state is a remaining amount equal to the number, with four empty boxes under the headers 8 4 2 1. Move left to right, starting at the 8 column. If the column's value is no more than the remaining amount, write 1 and subtract the value; otherwise write 0. Stop after the 1 column. If the remaining amount is 0, the four marks are the pattern; if it is not 0, the number does not fit in four bits.
5 How
- Write the headers 8 4 2 1 across your paper and draw a box under each.
- To decode, copy the pattern into the boxes, one digit per box. Check that there are four digits and that each is 0 or 1.
- Set the total to 0. Working left to right, add the header of every box that holds 1 and skip every box that holds 0.
- Stop after the 1 column. The total is your number.
- To encode, write the number as the remaining amount. Working left to right, ask whether the header is no more than the remaining amount.
- If it is, write 1 in that box and subtract the header from the remaining amount. If it is not, write 0.
- Stop after the 1 column. If the remaining amount is 0, read the four boxes as your pattern and keep any leading zeros. If it is not 0, the number does not fit in four bits.
- Check by running the rule the other way: decode the pattern you wrote, or encode the number you found, and compare with where you started.
6 Trace
| Place value | Bit in 1010 | Contribution | Bit in 0110 | Explanation |
|---|---|---|---|---|
| 8 | 1 | 8 | 0 | The first pattern uses 8. The value 6 is too small to use it. |
| 4 | 0 | 0 | 1 | Use 4 for the second pattern and leave 2 to make. |
| 2 | 1 | 2 | 1 | The first pattern now totals 10. The second totals 6. |
| 1 | 0 | 0 | 0 | Neither pattern needs the ones place. |
7 The trap
If you read 1010 as one thousand and ten, you have used decimal columns, which step by ten: 1000, 100, 10 and 1. The same four marks then name a much larger number. Binary columns step by two, so 1010 in binary is 8 + 2 = 10.
Three habits guard against this. Write "in binary" next to the pattern, write the headers 8 4 2 1 above the digits before you read, and check that every digit is 0 or 1. A digit from 2 to 9 means the marks are not a binary pattern at all.
Quick checks
Quick check 1 of 2
Decode the four-bit unsigned pattern 1101 using the column headers 8, 4, 2, 1.
Show the steps and the answer
13
Why: The 8, 4 and 1 columns hold a 1 and the 2 column holds 0, so 8 + 4 + 0 + 1 = 13. Check: encoding 13 gives 1 in the 8 column (remaining 5), 1 in the 4 column (remaining 1), 0 in the 2 column and 1 in the 1 column (remaining 0), which is 1101.
Quick check 2 of 2
A sign has four lamps in a row labelled 8, 4, 2, 1. A lit lamp means 1 and a dark lamp means 0, and the sign shows an unsigned number. Reading left to right, the lamps are lit, dark, lit, lit. What whole number does the sign show?
Show the steps and the answer
11
Why: The pattern is 1011. The lit columns are 8, 2 and 1, so 8 + 0 + 2 + 1 = 11. It is not one thousand and eleven, because the columns step by two, not by ten.
Sources
- Computer Science Field Guide: 5.3 Numbers. University of Canterbury Computer Science Education Research Group. CC BY-SA 4.0. Read 25 Nov 2026.