Powers of 2 table

Updated

2¹⁰ = 1,024, which is why a kibibyte is 1,024 bytes, and 2³² = 4,294,967,296, the number of IPv4 addresses.

Powers of 2 table
n2ⁿCommon use
01
12
24
38
416
532
664
7128
8256Values in one byte
9512
101,0241 KiB (kibibyte)
112,048
124,096
138,192
1416,384
1532,768
1665,536Values in 16 bits
17131,072
18262,144
19524,288
201,048,5761 MiB (mebibyte)
212,097,152
224,194,304
238,388,608
2416,777,21616.7 million colours (24-bit)
2533,554,432
2667,108,864
27134,217,728
28268,435,456
29536,870,912
301,073,741,8241 GiB (gibibyte)
312,147,483,648
324,294,967,296IPv4 addresses, 32-bit values
338,589,934,592
3417,179,869,184
3534,359,738,368
3668,719,476,736
37137,438,953,472
38274,877,906,944
39549,755,813,888
401,099,511,627,7761 TiB (tebibyte)
412,199,023,255,552
424,398,046,511,104
438,796,093,022,208
4417,592,186,044,416
4535,184,372,088,832
4670,368,744,177,664
47140,737,488,355,328
48281,474,976,710,656
49562,949,953,421,312
501,125,899,906,842,6241 PiB (pebibyte)
512,251,799,813,685,248
524,503,599,627,370,496
539,007,199,254,740,992
5418,014,398,509,481,984
5536,028,797,018,963,968
5672,057,594,037,927,936
57144,115,188,075,855,872
58288,230,376,151,711,744
59576,460,752,303,423,488
601,152,921,504,606,846,9761 EiB (exbibyte)
612,305,843,009,213,693,952
624,611,686,018,427,387,904
639,223,372,036,854,775,808
6418,446,744,073,709,551,616Values in 64 bits
Need a value that is not in the table? Open the calculator : Binary Storage Unit Conversion →

How it is computed

Each row doubles the one before it: 2ⁿ = 2 × 2ⁿ⁻¹, with 2⁰ = 1. Values are computed with exact integer arithmetic, so even 2⁶⁴ is shown to the last digit.

FAQ

Why is a kilobyte sometimes 1,024 bytes?+

Computer memory is addressed in binary, so 2¹⁰ = 1,024 was the handy size near 1,000. The standard name for 1,024 bytes is kibibyte (KiB); a kilobyte (kB) is 1,000 bytes.

What is the largest value in 64 bits?+

2⁶⁴ − 1 for an unsigned integer, and 2⁶³ − 1 for a signed one, since one bit holds the sign.