What is 10101 in decimal?
10101 in binary equals 21 in decimal.
Step-by-step working
| Bit | Position | 2n | Contribution |
|---|---|---|---|
| 1 | 4 | 16 | 16 |
| 0 | 3 | 8 | 0 |
| 1 | 2 | 4 | 4 |
| 0 | 1 | 2 | 0 |
| 1 | 0 | 1 | 1 |
| Total | 10101₂ = 16 + 4 + 1 = 21 | ||
How it works
Each bit of 10101 is multiplied by 2 raised to its position (counted from 0 at the right) and the results are added.
Convert any value with our free binary to decimal converter — no sign-up needed.