Base 2, also called binary, is a number system that uses only two digits: 0 and 1.
It works just like our normal counting (base 10) but after 1 we cannot write 2 (because the only digits are 0 and 1). So, when we finish writing 1 we carry over to the next place.
| Place from right | Power of 2 | Value |
|---|---|---|
| First (rightmost) | 20 | 1 |
| Second | 21 | 2 |
| Third | 22 | 4 |
| Fourth | 23 | 8 |
| Fifth | 24 | 16 |
| Sixth | 25 | 32 |
When we write a binary number like 10112, it means:
1 × 23 = 8
0 × 22 = 0
1 × 21 = 2
1 × 20 = 1
Add them up: 8 + 0 + 2 + 1 = 11 (decimal)
We count like this:
0, 1, 10, 11, 100, 101, 110, 111, 1000, …
Notice that after 1 we write 10 (which means 2 in decimal). Whenever you cannot write the next digit (because we only have 0 and 1), you reset that place to 0 and add 1 to the next left position.
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 10₂
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 11₂
4 ÷ 2 = 2 remainder 0
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 100₂
5 ÷ 2 = 2 remainder 1
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 101₂
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 110₂
7 ÷ 2 = 3 remainder 1
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 111₂
8 ÷ 2 = 4 remainder 0
4 ÷ 2 = 2 remainder 0
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 1000₂
9 ÷ 2 = 4 remainder 1
4 ÷ 2 = 2 remainder 0
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 1001₂
10 ÷ 2 = 5 remainder 0
5 ÷ 2 = 2 remainder 1
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 1010₂
11 ÷ 2 = 5 remainder 1
5 ÷ 2 = 2 remainder 1
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Read from bottom to top → 1011₂
Place values: 2² = 4, 2¹ = 2, 2⁰ = 1
Calculation: 1×4 + 0×2 + 1×1 = 4 + 0 + 1 = 5
Calculation: 1×4 + 1×2 + 0×1 = 4 + 2 + 0 = 6
Calculation: 1×4 + 1×2 + 1×1 = 4 + 2 + 1 = 7
Calculation: 1×8 + 0×4 + 0×2 + 0×1 = 8
Calculation: 1×8 + 0×4 + 0×2 + 1×1 = 8 + 0 + 0 + 1 = 9
Calculation: 1×8 + 0×4 + 1×2 + 0×1 = 8 + 0 + 2 + 0 = 10