18 in binary
18 in binary is 10010. In hexadecimal it is 12 and in octal 22.
18 in binary
Pick any whole number from 1 to 10,000.
How to work it out
- 1
Divide 18 by 2 again and again, writing down the remainder each time, until you reach 0.
- 2
Read the remainders from the bottom up: 10010.
- 3
Check by adding powers of 2: 16 + 2 = 18.
LaTeX source of the formulas on this page
\[ 18_{10} = 10010_{2} \]Dividing 18 by 2
| Number | Division | Remainder |
|---|---|---|
| 18 | 18 ÷ 2 = 9 | 0 |
| 9 | 9 ÷ 2 = 4 | 1 |
| 4 | 4 ÷ 2 = 2 | 0 |
| 2 | 2 ÷ 2 = 1 | 0 |
| 1 | 1 ÷ 2 = 0 | 1 |
Questions
What is 18 in binary?
10010.
What is 18 in hexadecimal?
12.
What is 18 in octal?
22.
How many bits does 18 need?
5 bits.