T
THINKFORU
Submit Feedback

Powers of 2 Reference Matrix (2^0 to 2^32)

Powers of 2 Table (2^0 to 2^32)

Powers of 2 Reference Matrix (20 to 232)

The powers of 2 are the building blocks of binary, memory sizes and bit limits. This matrix lists 2^0 to 2^32 with decimal, hex and storage size, plus a bit-shift converter and 178 solved examples.

28256256 Bytes
2101,0241 KB (Kilobyte)
21665,53664 KB (16-bit Max)
2201,048,5761 MB (Megabyte)
2301,073,741,8241 GB (Gigabyte)
2324,294,967,2964 GB (32-bit Limit)

Instant Bit-Shift & Byte Converter

Convert Bytes, KB, MB, GB and TB

Tip: open this page with ?exp=16 (0 to 64) to start with that exponent and its table row highlighted. Here 1 KB = 1,024 bytes.

Powers of 2 Table: 20 to 232
Power (2^n) Exact Decimal Value Hexadecimal Data Storage Size Copy Value
2010x11 Byte
2120x22 Bytes
2240x44 Bytes
2380x88 Bytes
24160x1016 Bytes
25320x2032 Bytes
26640x4064 Bytes
271280x80128 Bytes
282560x100256 Bytes
295120x200512 Bytes
2101,0240x4001 KB (Kilobyte)
2112,0480x8002 KB (Kilobyte)
2124,0960x10004 KB (Kilobyte)
2138,1920x20008 KB (Kilobyte)
21416,3840x400016 KB (Kilobyte)
21532,7680x800032 KB (Kilobyte)
21665,5360x1000064 KB (16-bit Max)
217131,0720x20000128 KB (Kilobyte)
218262,1440x40000256 KB (Kilobyte)
219524,2880x80000512 KB (Kilobyte)
2201,048,5760x1000001 MB (Megabyte)
2212,097,1520x2000002 MB (Megabyte)
2224,194,3040x4000004 MB (Megabyte)
2238,388,6080x8000008 MB (Megabyte)
22416,777,2160x100000016 MB (Megabyte)
22533,554,4320x200000032 MB (Megabyte)
22667,108,8640x400000064 MB (Megabyte)
227134,217,7280x8000000128 MB (Megabyte)
228268,435,4560x10000000256 MB (Megabyte)
229536,870,9120x20000000512 MB (Megabyte)
2301,073,741,8240x400000001 GB (Gigabyte)
2312,147,483,6480x800000002 GB (Gigabyte)
2324,294,967,2960x1000000004 GB (32-bit Limit)

178 Searchable Solved Examples

Solved examples on powers of 2, bit limits, byte conversions and bit shifts
Type Question Worked Solution Answer Copy
PowerWhat is 233?233 = 232 × 21 = 4,294,967,296 × 2 = 8,589,934,5928,589,934,592
PowerWhat is 234?234 = 232 × 22 = 4,294,967,296 × 4 = 17,179,869,18417,179,869,184
PowerWhat is 235?235 = 232 × 23 = 4,294,967,296 × 8 = 34,359,738,36834,359,738,368
PowerWhat is 236?236 = 232 × 24 = 4,294,967,296 × 16 = 68,719,476,73668,719,476,736
PowerWhat is 237?237 = 232 × 25 = 4,294,967,296 × 32 = 137,438,953,472137,438,953,472
PowerWhat is 238?238 = 232 × 26 = 4,294,967,296 × 64 = 274,877,906,944274,877,906,944
PowerWhat is 239?239 = 232 × 27 = 4,294,967,296 × 128 = 549,755,813,888549,755,813,888
PowerWhat is 240?240 = 232 × 28 = 4,294,967,296 × 256 = 1,099,511,627,7761,099,511,627,776
PowerWhat is 241?241 = 232 × 29 = 4,294,967,296 × 512 = 2,199,023,255,5522,199,023,255,552
PowerWhat is 242?242 = 232 × 210 = 4,294,967,296 × 1,024 = 4,398,046,511,1044,398,046,511,104
PowerWhat is 243?243 = 232 × 211 = 4,294,967,296 × 2,048 = 8,796,093,022,2088,796,093,022,208
PowerWhat is 244?244 = 232 × 212 = 4,294,967,296 × 4,096 = 17,592,186,044,41617,592,186,044,416
PowerWhat is 245?245 = 232 × 213 = 4,294,967,296 × 8,192 = 35,184,372,088,83235,184,372,088,832
PowerWhat is 246?246 = 232 × 214 = 4,294,967,296 × 16,384 = 70,368,744,177,66470,368,744,177,664
PowerWhat is 247?247 = 232 × 215 = 4,294,967,296 × 32,768 = 140,737,488,355,328140,737,488,355,328
PowerWhat is 248?248 = 232 × 216 = 4,294,967,296 × 65,536 = 281,474,976,710,656281,474,976,710,656
PowerWhat is 249?249 = 232 × 217 = 4,294,967,296 × 131,072 = 562,949,953,421,312562,949,953,421,312
PowerWhat is 250?250 = 232 × 218 = 4,294,967,296 × 262,144 = 1,125,899,906,842,6241,125,899,906,842,624
PowerWhat is 251?251 = 232 × 219 = 4,294,967,296 × 524,288 = 2,251,799,813,685,2482,251,799,813,685,248
PowerWhat is 252?252 = 232 × 220 = 4,294,967,296 × 1,048,576 = 4,503,599,627,370,4964,503,599,627,370,496
PowerWhat is 253?253 = 232 × 221 = 4,294,967,296 × 2,097,152 = 9,007,199,254,740,9929,007,199,254,740,992
PowerWhat is 254?254 = 232 × 222 = 4,294,967,296 × 4,194,304 = 18,014,398,509,481,98418,014,398,509,481,984
PowerWhat is 255?255 = 232 × 223 = 4,294,967,296 × 8,388,608 = 36,028,797,018,963,96836,028,797,018,963,968
PowerWhat is 256?256 = 232 × 224 = 4,294,967,296 × 16,777,216 = 72,057,594,037,927,93672,057,594,037,927,936
PowerWhat is 257?257 = 232 × 225 = 4,294,967,296 × 33,554,432 = 144,115,188,075,855,872144,115,188,075,855,872
PowerWhat is 258?258 = 232 × 226 = 4,294,967,296 × 67,108,864 = 288,230,376,151,711,744288,230,376,151,711,744
PowerWhat is 259?259 = 232 × 227 = 4,294,967,296 × 134,217,728 = 576,460,752,303,423,488576,460,752,303,423,488
PowerWhat is 260?260 = 232 × 228 = 4,294,967,296 × 268,435,456 = 1,152,921,504,606,846,9761,152,921,504,606,846,976
PowerWhat is 261?261 = 232 × 229 = 4,294,967,296 × 536,870,912 = 2,305,843,009,213,693,9522,305,843,009,213,693,952
PowerWhat is 262?262 = 232 × 230 = 4,294,967,296 × 1,073,741,824 = 4,611,686,018,427,387,9044,611,686,018,427,387,904
PowerWhat is 263?263 = 232 × 231 = 4,294,967,296 × 2,147,483,648 = 9,223,372,036,854,775,8089,223,372,036,854,775,808
PowerWhat is 264?264 = 232 × 232 = 4,294,967,296 × 4,294,967,296 = 18,446,744,073,709,551,61618,446,744,073,709,551,616
Bit LimitWhat is the largest unsigned 1-bit number?21 − 1 = 2 − 1 = 11
Bit LimitWhat is the largest unsigned 2-bit number?22 − 1 = 4 − 1 = 33
Bit LimitWhat is the largest unsigned 3-bit number?23 − 1 = 8 − 1 = 77
Bit LimitWhat is the largest unsigned 4-bit number?24 − 1 = 16 − 1 = 1515
Bit LimitWhat is the largest unsigned 5-bit number?25 − 1 = 32 − 1 = 3131
Bit LimitWhat is the largest unsigned 6-bit number?26 − 1 = 64 − 1 = 6363
Bit LimitWhat is the largest unsigned 7-bit number?27 − 1 = 128 − 1 = 127127
Bit LimitWhat is the largest unsigned 8-bit number?28 − 1 = 256 − 1 = 255255
Bit LimitWhat is the largest unsigned 10-bit number?210 − 1 = 1,024 − 1 = 1,0231,023
Bit LimitWhat is the largest unsigned 12-bit number?212 − 1 = 4,096 − 1 = 4,0954,095
Bit LimitWhat is the largest unsigned 15-bit number?215 − 1 = 32,768 − 1 = 32,76732,767
Bit LimitWhat is the largest unsigned 16-bit number?216 − 1 = 65,536 − 1 = 65,53565,535
Bit LimitWhat is the largest unsigned 20-bit number?220 − 1 = 1,048,576 − 1 = 1,048,5751,048,575
Bit LimitWhat is the largest unsigned 24-bit number?224 − 1 = 16,777,216 − 1 = 16,777,21516,777,215
Bit LimitWhat is the largest unsigned 32-bit number?232 − 1 = 4,294,967,296 − 1 = 4,294,967,2954,294,967,295
Bit LimitWhat is the largest unsigned 48-bit number?248 − 1 = 281,474,976,710,656 − 1 = 281,474,976,710,655281,474,976,710,655
Bit LimitWhat is the largest unsigned 64-bit number?264 − 1 = 18,446,744,073,709,551,616 − 1 = 18,446,744,073,709,551,61518,446,744,073,709,551,615
Bit LimitWhat is the range of a signed 2-bit integer?-21 to 21 − 1 = -2 to 1-2 to 1
Bit LimitWhat is the range of a signed 3-bit integer?-22 to 22 − 1 = -4 to 3-4 to 3
Bit LimitWhat is the range of a signed 4-bit integer?-23 to 23 − 1 = -8 to 7-8 to 7
Bit LimitWhat is the range of a signed 5-bit integer?-24 to 24 − 1 = -16 to 15-16 to 15
Bit LimitWhat is the range of a signed 6-bit integer?-25 to 25 − 1 = -32 to 31-32 to 31
Bit LimitWhat is the range of a signed 7-bit integer?-26 to 26 − 1 = -64 to 63-64 to 63
Bit LimitWhat is the range of a signed 8-bit integer?-27 to 27 − 1 = -128 to 127-128 to 127
Bit LimitWhat is the range of a signed 10-bit integer?-29 to 29 − 1 = -512 to 511-512 to 511
Bit LimitWhat is the range of a signed 12-bit integer?-211 to 211 − 1 = -2,048 to 2,047-2,048 to 2,047
Bit LimitWhat is the range of a signed 15-bit integer?-214 to 214 − 1 = -16,384 to 16,383-16,384 to 16,383
Bit LimitWhat is the range of a signed 16-bit integer?-215 to 215 − 1 = -32,768 to 32,767-32,768 to 32,767
Bit LimitWhat is the range of a signed 20-bit integer?-219 to 219 − 1 = -524,288 to 524,287-524,288 to 524,287
Bit LimitWhat is the range of a signed 24-bit integer?-223 to 223 − 1 = -8,388,608 to 8,388,607-8,388,608 to 8,388,607
Bit LimitWhat is the range of a signed 32-bit integer?-231 to 231 − 1 = -2,147,483,648 to 2,147,483,647-2,147,483,648 to 2,147,483,647
Bit LimitWhat is the range of a signed 48-bit integer?-247 to 247 − 1 = -140,737,488,355,328 to 140,737,488,355,327-140,737,488,355,328 to 140,737,488,355,327
Bit LimitWhat is the range of a signed 64-bit integer?-263 to 263 − 1 = -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Byte UnitsHow many bytes are in 1 KB?1 KB to bytes: multiply by 10241 = 1,024: 1 × 1,024 = 1,024 bytes1,024 bytes
Byte UnitsHow many bytes are in 2 KB?2 KB to bytes: multiply by 10241 = 1,024: 2 × 1,024 = 2,048 bytes2,048 bytes
Byte UnitsHow many bytes are in 4 KB?4 KB to bytes: multiply by 10241 = 1,024: 4 × 1,024 = 4,096 bytes4,096 bytes
Byte UnitsHow many bytes are in 8 KB?8 KB to bytes: multiply by 10241 = 1,024: 8 × 1,024 = 8,192 bytes8,192 bytes
Byte UnitsHow many bytes are in 64 KB?64 KB to bytes: multiply by 10241 = 1,024: 64 × 1,024 = 65,536 bytes65,536 bytes
Byte UnitsHow many KB are in 1 MB?1 MB to KB: multiply by 10241 = 1,024: 1 × 1,024 = 1,024 KB1,024 KB
Byte UnitsHow many bytes are in 1 MB?1 MB to bytes: multiply by 10242 = 1,048,576: 1 × 1,048,576 = 1,048,576 bytes1,048,576 bytes
Byte UnitsHow many bytes are in 4 MB?4 MB to bytes: multiply by 10242 = 1,048,576: 4 × 1,048,576 = 4,194,304 bytes4,194,304 bytes
Byte UnitsHow many KB are in 16 MB?16 MB to KB: multiply by 10241 = 1,024: 16 × 1,024 = 16,384 KB16,384 KB
Byte UnitsHow many MB are in 1 GB?1 GB to MB: multiply by 10241 = 1,024: 1 × 1,024 = 1,024 MB1,024 MB
Byte UnitsHow many KB are in 1 GB?1 GB to KB: multiply by 10242 = 1,048,576: 1 × 1,048,576 = 1,048,576 KB1,048,576 KB
Byte UnitsHow many bytes are in 1 GB?1 GB to bytes: multiply by 10243 = 1,073,741,824: 1 × 1,073,741,824 = 1,073,741,824 bytes1,073,741,824 bytes
Byte UnitsHow many MB are in 2 GB?2 GB to MB: multiply by 10241 = 1,024: 2 × 1,024 = 2,048 MB2,048 MB
Byte UnitsHow many MB are in 4 GB?4 GB to MB: multiply by 10241 = 1,024: 4 × 1,024 = 4,096 MB4,096 MB
Byte UnitsHow many MB are in 8 GB?8 GB to MB: multiply by 10241 = 1,024: 8 × 1,024 = 8,192 MB8,192 MB
Byte UnitsHow many MB are in 16 GB?16 GB to MB: multiply by 10241 = 1,024: 16 × 1,024 = 16,384 MB16,384 MB
Byte UnitsHow many bytes are in 32 GB?32 GB to bytes: multiply by 10243 = 1,073,741,824: 32 × 1,073,741,824 = 34,359,738,368 bytes34,359,738,368 bytes
Byte UnitsHow many MB are in 64 GB?64 GB to MB: multiply by 10241 = 1,024: 64 × 1,024 = 65,536 MB65,536 MB
Byte UnitsHow many GB are in 1 TB?1 TB to GB: multiply by 10241 = 1,024: 1 × 1,024 = 1,024 GB1,024 GB
Byte UnitsHow many MB are in 1 TB?1 TB to MB: multiply by 10242 = 1,048,576: 1 × 1,048,576 = 1,048,576 MB1,048,576 MB
Byte UnitsHow many bytes are in 1 TB?1 TB to bytes: multiply by 10244 = 1,099,511,627,776: 1 × 1,099,511,627,776 = 1,099,511,627,776 bytes1,099,511,627,776 bytes
Byte UnitsHow many GB are in 2 TB?2 TB to GB: multiply by 10241 = 1,024: 2 × 1,024 = 2,048 GB2,048 GB
Byte UnitsHow many GB are in 4 TB?4 TB to GB: multiply by 10241 = 1,024: 4 × 1,024 = 4,096 GB4,096 GB
Byte UnitsHow many KB are in 1,024 bytes?1,024 bytes to KB: divide by 10241 = 1,024: 1,024 / 1,024 = 1 KB1 KB
Byte UnitsHow many KB are in 4,096 bytes?4,096 bytes to KB: divide by 10241 = 1,024: 4,096 / 1,024 = 4 KB4 KB
Byte UnitsHow many KB are in 65,536 bytes?65,536 bytes to KB: divide by 10241 = 1,024: 65,536 / 1,024 = 64 KB64 KB
Byte UnitsHow many MB are in 1,048,576 bytes?1,048,576 bytes to MB: divide by 10242 = 1,048,576: 1,048,576 / 1,048,576 = 1 MB1 MB
Byte UnitsHow many MB are in 524,288 bytes?524,288 bytes to MB: divide by 10242 = 1,048,576: 524,288 / 1,048,576 = 0.5 MB0.5 MB
Byte UnitsHow many GB are in 1,073,741,824 bytes?1,073,741,824 bytes to GB: divide by 10243 = 1,073,741,824: 1,073,741,824 / 1,073,741,824 = 1 GB1 GB
Byte UnitsHow many MB are in 2,048 KB?2,048 KB to MB: divide by 10241 = 1,024: 2,048 / 1,024 = 2 MB2 MB
Byte UnitsHow many GB are in 1,048,576 KB?1,048,576 KB to GB: divide by 10242 = 1,048,576: 1,048,576 / 1,048,576 = 1 GB1 GB
Byte UnitsHow many GB are in 8,192 MB?8,192 MB to GB: divide by 10241 = 1,024: 8,192 / 1,024 = 8 GB8 GB
Byte UnitsHow many GB are in 1,536 MB?1,536 MB to GB: divide by 10241 = 1,024: 1,536 / 1,024 = 1.5 GB1.5 GB
Byte UnitsHow many GB are in 512 MB?512 MB to GB: divide by 10241 = 1,024: 512 / 1,024 = 0.5 GB0.5 GB
Byte UnitsHow many TB are in 3,072 GB?3,072 GB to TB: divide by 10241 = 1,024: 3,072 / 1,024 = 3 TB3 TB
Bit ShiftWhat is 1 << 0?1 << 0 = 20 = 11
Bit ShiftWhat is 1 << 1?1 << 1 = 21 = 22
Bit ShiftWhat is 1 << 2?1 << 2 = 22 = 44
Bit ShiftWhat is 1 << 3?1 << 3 = 23 = 88
Bit ShiftWhat is 1 << 4?1 << 4 = 24 = 1616
Bit ShiftWhat is 1 << 5?1 << 5 = 25 = 3232
Bit ShiftWhat is 1 << 6?1 << 6 = 26 = 6464
Bit ShiftWhat is 1 << 7?1 << 7 = 27 = 128128
Bit ShiftWhat is 1 << 8?1 << 8 = 28 = 256256
Bit ShiftWhat is 1 << 9?1 << 9 = 29 = 512512
Bit ShiftWhat is 1 << 10?1 << 10 = 210 = 1,0241,024
Bit ShiftWhat is 1 << 11?1 << 11 = 211 = 2,0482,048
Bit ShiftWhat is 1 << 12?1 << 12 = 212 = 4,0964,096
Bit ShiftWhat is 1 << 13?1 << 13 = 213 = 8,1928,192
Bit ShiftWhat is 1 << 14?1 << 14 = 214 = 16,38416,384
Bit ShiftWhat is 1 << 15?1 << 15 = 215 = 32,76832,768
Bit ShiftWhat is 1 << 16?1 << 16 = 216 = 65,53665,536
Bit ShiftWhat is 1 << 20?1 << 20 = 220 = 1,048,5761,048,576
Bit ShiftWhat is 1 << 24?1 << 24 = 224 = 16,777,21616,777,216
Bit ShiftWhat is 1 << 30?1 << 30 = 230 = 1,073,741,8241,073,741,824
Bit ShiftWhat is 1 << 31?1 << 31 = 231 = 2,147,483,6482,147,483,648
Bit ShiftWhat is 1 << 32?1 << 32 = 232 = 4,294,967,2964,294,967,296
Bit ShiftWhat is 3 << 1?3 << 1 = 3 × 21 = 3 × 2 = 66
Bit ShiftWhat is 3 << 2?3 << 2 = 3 × 22 = 3 × 4 = 1212
Bit ShiftWhat is 5 << 2?5 << 2 = 5 × 22 = 5 × 4 = 2020
Bit ShiftWhat is 5 << 3?5 << 3 = 5 × 23 = 5 × 8 = 4040
Bit ShiftWhat is 7 << 3?7 << 3 = 7 × 23 = 7 × 8 = 5656
Bit ShiftWhat is 9 << 2?9 << 2 = 9 × 22 = 9 × 4 = 3636
Bit ShiftWhat is 10 << 1?10 << 1 = 10 × 21 = 10 × 2 = 2020
Bit ShiftWhat is 12 << 2?12 << 2 = 12 × 22 = 12 × 4 = 4848
Bit ShiftWhat is 15 << 4?15 << 4 = 15 × 24 = 15 × 16 = 240240
Bit ShiftWhat is 25 << 3?25 << 3 = 25 × 23 = 25 × 8 = 200200
Bit ShiftWhat is 100 << 1?100 << 1 = 100 × 21 = 100 × 2 = 200200
Bit ShiftWhat is 255 << 8?255 << 8 = 255 × 28 = 255 × 256 = 65,28065,280
Bit ShiftWhat is 2 << 10?2 << 10 = 2 × 210 = 2 × 1024 = 2,0482,048
Bit ShiftWhat is 64 << 2?64 << 2 = 64 × 22 = 64 × 4 = 256256
Bit ShiftWhat is 1000 << 4?1000 << 4 = 1000 × 24 = 1000 × 16 = 16,00016,000
Bit ShiftWhat is 1024 >> 1?1024 >> 1 = floor(1,024 / 21) = floor(1,024 / 2) = 512512
Bit ShiftWhat is 1024 >> 3?1024 >> 3 = floor(1,024 / 23) = floor(1,024 / 8) = 128128
Bit ShiftWhat is 1024 >> 10?1024 >> 10 = floor(1,024 / 210) = floor(1,024 / 1,024) = 11
Bit ShiftWhat is 255 >> 4?255 >> 4 = floor(255 / 24) = floor(255 / 16) = 1515
Bit ShiftWhat is 100 >> 2?100 >> 2 = floor(100 / 22) = floor(100 / 4) = 2525
Bit ShiftWhat is 100 >> 3?100 >> 3 = floor(100 / 23) = floor(100 / 8) = 1212
Bit ShiftWhat is 64 >> 3?64 >> 3 = floor(64 / 23) = floor(64 / 8) = 88
Bit ShiftWhat is 65535 >> 8?65535 >> 8 = floor(65,535 / 28) = floor(65,535 / 256) = 255255
Bit ShiftWhat is 4096 >> 6?4096 >> 6 = floor(4,096 / 26) = floor(4,096 / 64) = 6464
Bit ShiftWhat is 1000 >> 5?1000 >> 5 = floor(1,000 / 25) = floor(1,000 / 32) = 3131
Bit ShiftWhat is 37 >> 2?37 >> 2 = floor(37 / 22) = floor(37 / 4) = 99
Bit ShiftWhat is 129 >> 7?129 >> 7 = floor(129 / 27) = floor(129 / 128) = 11
Bit ShiftWhat is 2147483648 >> 31?2147483648 >> 31 = floor(2,147,483,648 / 231) = floor(2,147,483,648 / 2,147,483,648) = 11
Bit ShiftWhat is 1 >> 1?1 >> 1 = floor(1 / 21) = floor(1 / 2) = 00
Bit ShiftWhat is 1048576 >> 20?1048576 >> 20 = floor(1,048,576 / 220) = floor(1,048,576 / 1,048,576) = 11
CheckIs 1 a power of 2?1 & (1 − 1) = 1 & 0 = 0. Zero means one set bit, so 1 = 20Yes, 20
CheckIs 2 a power of 2?2 & (2 − 1) = 2 & 1 = 0. Zero means one set bit, so 2 = 21Yes, 21
CheckIs 3 a power of 2?3 & (3 − 1) = 3 & 2 = 2. Not zero, so more than one bit is setNo
CheckIs 6 a power of 2?6 & (6 − 1) = 6 & 5 = 4. Not zero, so more than one bit is setNo
CheckIs 8 a power of 2?8 & (8 − 1) = 8 & 7 = 0. Zero means one set bit, so 8 = 23Yes, 23
CheckIs 12 a power of 2?12 & (12 − 1) = 12 & 11 = 8. Not zero, so more than one bit is setNo
CheckIs 16 a power of 2?16 & (16 − 1) = 16 & 15 = 0. Zero means one set bit, so 16 = 24Yes, 24
CheckIs 24 a power of 2?24 & (24 − 1) = 24 & 23 = 16. Not zero, so more than one bit is setNo
CheckIs 32 a power of 2?32 & (32 − 1) = 32 & 31 = 0. Zero means one set bit, so 32 = 25Yes, 25
CheckIs 48 a power of 2?48 & (48 − 1) = 48 & 47 = 32. Not zero, so more than one bit is setNo
CheckIs 64 a power of 2?64 & (64 − 1) = 64 & 63 = 0. Zero means one set bit, so 64 = 26Yes, 26
CheckIs 100 a power of 2?100 & (100 − 1) = 100 & 99 = 96. Not zero, so more than one bit is setNo
CheckIs 128 a power of 2?128 & (128 − 1) = 128 & 127 = 0. Zero means one set bit, so 128 = 27Yes, 27
CheckIs 200 a power of 2?200 & (200 − 1) = 200 & 199 = 192. Not zero, so more than one bit is setNo
CheckIs 256 a power of 2?256 & (256 − 1) = 256 & 255 = 0. Zero means one set bit, so 256 = 28Yes, 28
CheckIs 500 a power of 2?500 & (500 − 1) = 500 & 499 = 496. Not zero, so more than one bit is setNo
CheckIs 512 a power of 2?512 & (512 − 1) = 512 & 511 = 0. Zero means one set bit, so 512 = 29Yes, 29
CheckIs 1,000 a power of 2?1,000 & (1,000 − 1) = 1,000 & 999 = 992. Not zero, so more than one bit is setNo
CheckIs 1,024 a power of 2?1,024 & (1,024 − 1) = 1,024 & 1,023 = 0. Zero means one set bit, so 1,024 = 210Yes, 210
CheckIs 2,000 a power of 2?2,000 & (2,000 − 1) = 2,000 & 1,999 = 1984. Not zero, so more than one bit is setNo
CheckIs 2,048 a power of 2?2,048 & (2,048 − 1) = 2,048 & 2,047 = 0. Zero means one set bit, so 2,048 = 211Yes, 211
CheckIs 4,000 a power of 2?4,000 & (4,000 − 1) = 4,000 & 3,999 = 3968. Not zero, so more than one bit is setNo
CheckIs 4,096 a power of 2?4,096 & (4,096 − 1) = 4,096 & 4,095 = 0. Zero means one set bit, so 4,096 = 212Yes, 212
CheckIs 65,536 a power of 2?65,536 & (65,536 − 1) = 65,536 & 65,535 = 0. Zero means one set bit, so 65,536 = 216Yes, 216
CheckIs 100,000 a power of 2?100,000 & (100,000 − 1) = 100,000 & 99,999 = 99968. Not zero, so more than one bit is setNo
CheckIs 1,048,576 a power of 2?1,048,576 & (1,048,576 − 1) = 1,048,576 & 1,048,575 = 0. Zero means one set bit, so 1,048,576 = 220Yes, 220

Save & Share This List

Frequently Asked Questions

Question Answer
What is 2 to the power of 10?210 = 1,024. In computing, 1,024 bytes make 1 KB (kilobyte), which is why memory sizes grow in steps of 1,024.
What is 2 to the power of 32?232 = 4,294,967,296 (hex 0x100000000). A 32-bit address can reference 4,294,967,296 bytes, which is the 4 GB limit of 32-bit systems.
Why are powers of 2 used in computers?Computers store information as bits that are either 0 or 1. With n bits there are 2^n different values, so memory sizes, address ranges and limits are all powers of 2.
How do you calculate 2^n quickly?Keep doubling: 1, 2, 4, 8, 16, 32, 64, 128, 256 and so on. In code, 1 << n gives 2^n. For 216: 1 << 16 = 65,536.
Is 1 KB 1,000 or 1,024 bytes?In binary computing 1 KB = 1,024 bytes (210), and the strict name is KiB. Storage makers often use 1 KB = 1,000 bytes, so a 1 TB drive shows as about 931 GB in an operating system.
What is the largest number a 16-bit unsigned integer can hold?216 − 1 = 65,535. That is 0xFFFF in hex, and there are 65,536 different values in total, from 0 to 65,535.