A power of 2 is 2 multiplied by itself: 20=1, 21=2, 22=4, and so on. Powers of two are everywhere in computing — bytes, kilobytes, memory sizes, bit masks and binary numbers. This table lists 20 through 264.
| Exponent | Value |
|---|---|
| 20 | 1 |
| 21 | 2 |
| 22 | 4 |
| 23 | 8 |
| 24 | 16 |
| 25 | 32 |
| 26 | 64 |
| 27 | 128 |
| 28 | 256 |
| 29 | 512 |
| 210 | 1024 |
| 211 | 2048 |
| 212 | 4096 |
| 213 | 8192 |
| 214 | 16384 |
| 215 | 32768 |
| 216 | 65536 |
| 217 | 131072 |
| 218 | 262144 |
| 219 | 524288 |
| 220 | 1048576 |
| 221 | 2097152 |
| 222 | 4194304 |
| 223 | 8388608 |
| 224 | 16777216 |
| 225 | 33554432 |
| 226 | 67108864 |
| 227 | 134217728 |
| 228 | 268435456 |
| 229 | 536870912 |
| 230 | 1073741824 |
| 231 | 2147483648 |
| 232 | 4294967296 |
| Exponent | Value |
|---|---|
| 233 | 8589934592 |
| 234 | 17179869184 |
| 235 | 34359738368 |
| 236 | 68719476736 |
| 237 | 137438953472 |
| 238 | 274877906944 |
| 239 | 549755813888 |
| 240 | 1099511627776 |
| 241 | 2199023255552 |
| 242 | 4398046511104 |
| 243 | 8796093022208 |
| 244 | 17592186044416 |
| 245 | 35184372088832 |
| 246 | 70368744177664 |
| 247 | 140737488355328 |
| 248 | 281474976710656 |
| 249 | 562949953421312 |
| 250 | 1125899906842624 |
| 251 | 2251799813685248 |
| 252 | 4503599627370496 |
| 253 | 9007199254740992 |
| 254 | 18014398509481984 |
| 255 | 36028797018963968 |
| 256 | 72057594037927936 |
| 257 | 144115188075855872 |
| 258 | 288230376151711744 |
| 259 | 576460752303423488 |
| 260 | 1152921504606846976 |
| 261 | 2305843009213693952 |
| 262 | 4611686018427387904 |
| 263 | 9223372036854775808 |
| 264 | 18446744073709551616 |
Why powers of 2 matter
Computers store data in bits, so capacities are powers of two: 210 = 1,024 (1 KiB), 220 ≈ 1 million (1 MiB), 230 ≈ 1 billion (1 GiB). An n-bit number can represent 2n distinct values.