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.
| Power (2^n) | Exact Decimal Value | Hexadecimal | Data Storage Size | Copy Value |
|---|---|---|---|---|
| 20 | 1 | 0x1 | 1 Byte | |
| 21 | 2 | 0x2 | 2 Bytes | |
| 22 | 4 | 0x4 | 4 Bytes | |
| 23 | 8 | 0x8 | 8 Bytes | |
| 24 | 16 | 0x10 | 16 Bytes | |
| 25 | 32 | 0x20 | 32 Bytes | |
| 26 | 64 | 0x40 | 64 Bytes | |
| 27 | 128 | 0x80 | 128 Bytes | |
| 28 | 256 | 0x100 | 256 Bytes | |
| 29 | 512 | 0x200 | 512 Bytes | |
| 210 | 1,024 | 0x400 | 1 KB (Kilobyte) | |
| 211 | 2,048 | 0x800 | 2 KB (Kilobyte) | |
| 212 | 4,096 | 0x1000 | 4 KB (Kilobyte) | |
| 213 | 8,192 | 0x2000 | 8 KB (Kilobyte) | |
| 214 | 16,384 | 0x4000 | 16 KB (Kilobyte) | |
| 215 | 32,768 | 0x8000 | 32 KB (Kilobyte) | |
| 216 | 65,536 | 0x10000 | 64 KB (16-bit Max) | |
| 217 | 131,072 | 0x20000 | 128 KB (Kilobyte) | |
| 218 | 262,144 | 0x40000 | 256 KB (Kilobyte) | |
| 219 | 524,288 | 0x80000 | 512 KB (Kilobyte) | |
| 220 | 1,048,576 | 0x100000 | 1 MB (Megabyte) | |
| 221 | 2,097,152 | 0x200000 | 2 MB (Megabyte) | |
| 222 | 4,194,304 | 0x400000 | 4 MB (Megabyte) | |
| 223 | 8,388,608 | 0x800000 | 8 MB (Megabyte) | |
| 224 | 16,777,216 | 0x1000000 | 16 MB (Megabyte) | |
| 225 | 33,554,432 | 0x2000000 | 32 MB (Megabyte) | |
| 226 | 67,108,864 | 0x4000000 | 64 MB (Megabyte) | |
| 227 | 134,217,728 | 0x8000000 | 128 MB (Megabyte) | |
| 228 | 268,435,456 | 0x10000000 | 256 MB (Megabyte) | |
| 229 | 536,870,912 | 0x20000000 | 512 MB (Megabyte) | |
| 230 | 1,073,741,824 | 0x40000000 | 1 GB (Gigabyte) | |
| 231 | 2,147,483,648 | 0x80000000 | 2 GB (Gigabyte) | |
| 232 | 4,294,967,296 | 0x100000000 | 4 GB (32-bit Limit) |
178 Searchable Solved Examples
| Type | Question | Worked Solution | Answer | Copy |
|---|---|---|---|---|
| Power | What is 233? | 233 = 232 × 21 = 4,294,967,296 × 2 = 8,589,934,592 | 8,589,934,592 | |
| Power | What is 234? | 234 = 232 × 22 = 4,294,967,296 × 4 = 17,179,869,184 | 17,179,869,184 | |
| Power | What is 235? | 235 = 232 × 23 = 4,294,967,296 × 8 = 34,359,738,368 | 34,359,738,368 | |
| Power | What is 236? | 236 = 232 × 24 = 4,294,967,296 × 16 = 68,719,476,736 | 68,719,476,736 | |
| Power | What is 237? | 237 = 232 × 25 = 4,294,967,296 × 32 = 137,438,953,472 | 137,438,953,472 | |
| Power | What is 238? | 238 = 232 × 26 = 4,294,967,296 × 64 = 274,877,906,944 | 274,877,906,944 | |
| Power | What is 239? | 239 = 232 × 27 = 4,294,967,296 × 128 = 549,755,813,888 | 549,755,813,888 | |
| Power | What is 240? | 240 = 232 × 28 = 4,294,967,296 × 256 = 1,099,511,627,776 | 1,099,511,627,776 | |
| Power | What is 241? | 241 = 232 × 29 = 4,294,967,296 × 512 = 2,199,023,255,552 | 2,199,023,255,552 | |
| Power | What is 242? | 242 = 232 × 210 = 4,294,967,296 × 1,024 = 4,398,046,511,104 | 4,398,046,511,104 | |
| Power | What is 243? | 243 = 232 × 211 = 4,294,967,296 × 2,048 = 8,796,093,022,208 | 8,796,093,022,208 | |
| Power | What is 244? | 244 = 232 × 212 = 4,294,967,296 × 4,096 = 17,592,186,044,416 | 17,592,186,044,416 | |
| Power | What is 245? | 245 = 232 × 213 = 4,294,967,296 × 8,192 = 35,184,372,088,832 | 35,184,372,088,832 | |
| Power | What is 246? | 246 = 232 × 214 = 4,294,967,296 × 16,384 = 70,368,744,177,664 | 70,368,744,177,664 | |
| Power | What is 247? | 247 = 232 × 215 = 4,294,967,296 × 32,768 = 140,737,488,355,328 | 140,737,488,355,328 | |
| Power | What is 248? | 248 = 232 × 216 = 4,294,967,296 × 65,536 = 281,474,976,710,656 | 281,474,976,710,656 | |
| Power | What is 249? | 249 = 232 × 217 = 4,294,967,296 × 131,072 = 562,949,953,421,312 | 562,949,953,421,312 | |
| Power | What is 250? | 250 = 232 × 218 = 4,294,967,296 × 262,144 = 1,125,899,906,842,624 | 1,125,899,906,842,624 | |
| Power | What is 251? | 251 = 232 × 219 = 4,294,967,296 × 524,288 = 2,251,799,813,685,248 | 2,251,799,813,685,248 | |
| Power | What is 252? | 252 = 232 × 220 = 4,294,967,296 × 1,048,576 = 4,503,599,627,370,496 | 4,503,599,627,370,496 | |
| Power | What is 253? | 253 = 232 × 221 = 4,294,967,296 × 2,097,152 = 9,007,199,254,740,992 | 9,007,199,254,740,992 | |
| Power | What is 254? | 254 = 232 × 222 = 4,294,967,296 × 4,194,304 = 18,014,398,509,481,984 | 18,014,398,509,481,984 | |
| Power | What is 255? | 255 = 232 × 223 = 4,294,967,296 × 8,388,608 = 36,028,797,018,963,968 | 36,028,797,018,963,968 | |
| Power | What is 256? | 256 = 232 × 224 = 4,294,967,296 × 16,777,216 = 72,057,594,037,927,936 | 72,057,594,037,927,936 | |
| Power | What is 257? | 257 = 232 × 225 = 4,294,967,296 × 33,554,432 = 144,115,188,075,855,872 | 144,115,188,075,855,872 | |
| Power | What is 258? | 258 = 232 × 226 = 4,294,967,296 × 67,108,864 = 288,230,376,151,711,744 | 288,230,376,151,711,744 | |
| Power | What is 259? | 259 = 232 × 227 = 4,294,967,296 × 134,217,728 = 576,460,752,303,423,488 | 576,460,752,303,423,488 | |
| Power | What is 260? | 260 = 232 × 228 = 4,294,967,296 × 268,435,456 = 1,152,921,504,606,846,976 | 1,152,921,504,606,846,976 | |
| Power | What is 261? | 261 = 232 × 229 = 4,294,967,296 × 536,870,912 = 2,305,843,009,213,693,952 | 2,305,843,009,213,693,952 | |
| Power | What is 262? | 262 = 232 × 230 = 4,294,967,296 × 1,073,741,824 = 4,611,686,018,427,387,904 | 4,611,686,018,427,387,904 | |
| Power | What is 263? | 263 = 232 × 231 = 4,294,967,296 × 2,147,483,648 = 9,223,372,036,854,775,808 | 9,223,372,036,854,775,808 | |
| Power | What is 264? | 264 = 232 × 232 = 4,294,967,296 × 4,294,967,296 = 18,446,744,073,709,551,616 | 18,446,744,073,709,551,616 | |
| Bit Limit | What is the largest unsigned 1-bit number? | 21 − 1 = 2 − 1 = 1 | 1 | |
| Bit Limit | What is the largest unsigned 2-bit number? | 22 − 1 = 4 − 1 = 3 | 3 | |
| Bit Limit | What is the largest unsigned 3-bit number? | 23 − 1 = 8 − 1 = 7 | 7 | |
| Bit Limit | What is the largest unsigned 4-bit number? | 24 − 1 = 16 − 1 = 15 | 15 | |
| Bit Limit | What is the largest unsigned 5-bit number? | 25 − 1 = 32 − 1 = 31 | 31 | |
| Bit Limit | What is the largest unsigned 6-bit number? | 26 − 1 = 64 − 1 = 63 | 63 | |
| Bit Limit | What is the largest unsigned 7-bit number? | 27 − 1 = 128 − 1 = 127 | 127 | |
| Bit Limit | What is the largest unsigned 8-bit number? | 28 − 1 = 256 − 1 = 255 | 255 | |
| Bit Limit | What is the largest unsigned 10-bit number? | 210 − 1 = 1,024 − 1 = 1,023 | 1,023 | |
| Bit Limit | What is the largest unsigned 12-bit number? | 212 − 1 = 4,096 − 1 = 4,095 | 4,095 | |
| Bit Limit | What is the largest unsigned 15-bit number? | 215 − 1 = 32,768 − 1 = 32,767 | 32,767 | |
| Bit Limit | What is the largest unsigned 16-bit number? | 216 − 1 = 65,536 − 1 = 65,535 | 65,535 | |
| Bit Limit | What is the largest unsigned 20-bit number? | 220 − 1 = 1,048,576 − 1 = 1,048,575 | 1,048,575 | |
| Bit Limit | What is the largest unsigned 24-bit number? | 224 − 1 = 16,777,216 − 1 = 16,777,215 | 16,777,215 | |
| Bit Limit | What is the largest unsigned 32-bit number? | 232 − 1 = 4,294,967,296 − 1 = 4,294,967,295 | 4,294,967,295 | |
| Bit Limit | What is the largest unsigned 48-bit number? | 248 − 1 = 281,474,976,710,656 − 1 = 281,474,976,710,655 | 281,474,976,710,655 | |
| Bit Limit | What is the largest unsigned 64-bit number? | 264 − 1 = 18,446,744,073,709,551,616 − 1 = 18,446,744,073,709,551,615 | 18,446,744,073,709,551,615 | |
| Bit Limit | What is the range of a signed 2-bit integer? | -21 to 21 − 1 = -2 to 1 | -2 to 1 | |
| Bit Limit | What is the range of a signed 3-bit integer? | -22 to 22 − 1 = -4 to 3 | -4 to 3 | |
| Bit Limit | What is the range of a signed 4-bit integer? | -23 to 23 − 1 = -8 to 7 | -8 to 7 | |
| Bit Limit | What is the range of a signed 5-bit integer? | -24 to 24 − 1 = -16 to 15 | -16 to 15 | |
| Bit Limit | What is the range of a signed 6-bit integer? | -25 to 25 − 1 = -32 to 31 | -32 to 31 | |
| Bit Limit | What is the range of a signed 7-bit integer? | -26 to 26 − 1 = -64 to 63 | -64 to 63 | |
| Bit Limit | What is the range of a signed 8-bit integer? | -27 to 27 − 1 = -128 to 127 | -128 to 127 | |
| Bit Limit | What is the range of a signed 10-bit integer? | -29 to 29 − 1 = -512 to 511 | -512 to 511 | |
| Bit Limit | What is the range of a signed 12-bit integer? | -211 to 211 − 1 = -2,048 to 2,047 | -2,048 to 2,047 | |
| Bit Limit | What is the range of a signed 15-bit integer? | -214 to 214 − 1 = -16,384 to 16,383 | -16,384 to 16,383 | |
| Bit Limit | What is the range of a signed 16-bit integer? | -215 to 215 − 1 = -32,768 to 32,767 | -32,768 to 32,767 | |
| Bit Limit | What is the range of a signed 20-bit integer? | -219 to 219 − 1 = -524,288 to 524,287 | -524,288 to 524,287 | |
| Bit Limit | What 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 Limit | What 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 Limit | What 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 Limit | What 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 Units | How many bytes are in 1 KB? | 1 KB to bytes: multiply by 10241 = 1,024: 1 × 1,024 = 1,024 bytes | 1,024 bytes | |
| Byte Units | How many bytes are in 2 KB? | 2 KB to bytes: multiply by 10241 = 1,024: 2 × 1,024 = 2,048 bytes | 2,048 bytes | |
| Byte Units | How many bytes are in 4 KB? | 4 KB to bytes: multiply by 10241 = 1,024: 4 × 1,024 = 4,096 bytes | 4,096 bytes | |
| Byte Units | How many bytes are in 8 KB? | 8 KB to bytes: multiply by 10241 = 1,024: 8 × 1,024 = 8,192 bytes | 8,192 bytes | |
| Byte Units | How many bytes are in 64 KB? | 64 KB to bytes: multiply by 10241 = 1,024: 64 × 1,024 = 65,536 bytes | 65,536 bytes | |
| Byte Units | How many KB are in 1 MB? | 1 MB to KB: multiply by 10241 = 1,024: 1 × 1,024 = 1,024 KB | 1,024 KB | |
| Byte Units | How many bytes are in 1 MB? | 1 MB to bytes: multiply by 10242 = 1,048,576: 1 × 1,048,576 = 1,048,576 bytes | 1,048,576 bytes | |
| Byte Units | How many bytes are in 4 MB? | 4 MB to bytes: multiply by 10242 = 1,048,576: 4 × 1,048,576 = 4,194,304 bytes | 4,194,304 bytes | |
| Byte Units | How many KB are in 16 MB? | 16 MB to KB: multiply by 10241 = 1,024: 16 × 1,024 = 16,384 KB | 16,384 KB | |
| Byte Units | How many MB are in 1 GB? | 1 GB to MB: multiply by 10241 = 1,024: 1 × 1,024 = 1,024 MB | 1,024 MB | |
| Byte Units | How many KB are in 1 GB? | 1 GB to KB: multiply by 10242 = 1,048,576: 1 × 1,048,576 = 1,048,576 KB | 1,048,576 KB | |
| Byte Units | How 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 bytes | 1,073,741,824 bytes | |
| Byte Units | How many MB are in 2 GB? | 2 GB to MB: multiply by 10241 = 1,024: 2 × 1,024 = 2,048 MB | 2,048 MB | |
| Byte Units | How many MB are in 4 GB? | 4 GB to MB: multiply by 10241 = 1,024: 4 × 1,024 = 4,096 MB | 4,096 MB | |
| Byte Units | How many MB are in 8 GB? | 8 GB to MB: multiply by 10241 = 1,024: 8 × 1,024 = 8,192 MB | 8,192 MB | |
| Byte Units | How many MB are in 16 GB? | 16 GB to MB: multiply by 10241 = 1,024: 16 × 1,024 = 16,384 MB | 16,384 MB | |
| Byte Units | How 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 bytes | 34,359,738,368 bytes | |
| Byte Units | How many MB are in 64 GB? | 64 GB to MB: multiply by 10241 = 1,024: 64 × 1,024 = 65,536 MB | 65,536 MB | |
| Byte Units | How many GB are in 1 TB? | 1 TB to GB: multiply by 10241 = 1,024: 1 × 1,024 = 1,024 GB | 1,024 GB | |
| Byte Units | How many MB are in 1 TB? | 1 TB to MB: multiply by 10242 = 1,048,576: 1 × 1,048,576 = 1,048,576 MB | 1,048,576 MB | |
| Byte Units | How 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 bytes | 1,099,511,627,776 bytes | |
| Byte Units | How many GB are in 2 TB? | 2 TB to GB: multiply by 10241 = 1,024: 2 × 1,024 = 2,048 GB | 2,048 GB | |
| Byte Units | How many GB are in 4 TB? | 4 TB to GB: multiply by 10241 = 1,024: 4 × 1,024 = 4,096 GB | 4,096 GB | |
| Byte Units | How many KB are in 1,024 bytes? | 1,024 bytes to KB: divide by 10241 = 1,024: 1,024 / 1,024 = 1 KB | 1 KB | |
| Byte Units | How many KB are in 4,096 bytes? | 4,096 bytes to KB: divide by 10241 = 1,024: 4,096 / 1,024 = 4 KB | 4 KB | |
| Byte Units | How many KB are in 65,536 bytes? | 65,536 bytes to KB: divide by 10241 = 1,024: 65,536 / 1,024 = 64 KB | 64 KB | |
| Byte Units | How 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 MB | 1 MB | |
| Byte Units | How 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 MB | 0.5 MB | |
| Byte Units | How 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 GB | 1 GB | |
| Byte Units | How many MB are in 2,048 KB? | 2,048 KB to MB: divide by 10241 = 1,024: 2,048 / 1,024 = 2 MB | 2 MB | |
| Byte Units | How 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 GB | 1 GB | |
| Byte Units | How many GB are in 8,192 MB? | 8,192 MB to GB: divide by 10241 = 1,024: 8,192 / 1,024 = 8 GB | 8 GB | |
| Byte Units | How many GB are in 1,536 MB? | 1,536 MB to GB: divide by 10241 = 1,024: 1,536 / 1,024 = 1.5 GB | 1.5 GB | |
| Byte Units | How many GB are in 512 MB? | 512 MB to GB: divide by 10241 = 1,024: 512 / 1,024 = 0.5 GB | 0.5 GB | |
| Byte Units | How many TB are in 3,072 GB? | 3,072 GB to TB: divide by 10241 = 1,024: 3,072 / 1,024 = 3 TB | 3 TB | |
| Bit Shift | What is 1 << 0? | 1 << 0 = 20 = 1 | 1 | |
| Bit Shift | What is 1 << 1? | 1 << 1 = 21 = 2 | 2 | |
| Bit Shift | What is 1 << 2? | 1 << 2 = 22 = 4 | 4 | |
| Bit Shift | What is 1 << 3? | 1 << 3 = 23 = 8 | 8 | |
| Bit Shift | What is 1 << 4? | 1 << 4 = 24 = 16 | 16 | |
| Bit Shift | What is 1 << 5? | 1 << 5 = 25 = 32 | 32 | |
| Bit Shift | What is 1 << 6? | 1 << 6 = 26 = 64 | 64 | |
| Bit Shift | What is 1 << 7? | 1 << 7 = 27 = 128 | 128 | |
| Bit Shift | What is 1 << 8? | 1 << 8 = 28 = 256 | 256 | |
| Bit Shift | What is 1 << 9? | 1 << 9 = 29 = 512 | 512 | |
| Bit Shift | What is 1 << 10? | 1 << 10 = 210 = 1,024 | 1,024 | |
| Bit Shift | What is 1 << 11? | 1 << 11 = 211 = 2,048 | 2,048 | |
| Bit Shift | What is 1 << 12? | 1 << 12 = 212 = 4,096 | 4,096 | |
| Bit Shift | What is 1 << 13? | 1 << 13 = 213 = 8,192 | 8,192 | |
| Bit Shift | What is 1 << 14? | 1 << 14 = 214 = 16,384 | 16,384 | |
| Bit Shift | What is 1 << 15? | 1 << 15 = 215 = 32,768 | 32,768 | |
| Bit Shift | What is 1 << 16? | 1 << 16 = 216 = 65,536 | 65,536 | |
| Bit Shift | What is 1 << 20? | 1 << 20 = 220 = 1,048,576 | 1,048,576 | |
| Bit Shift | What is 1 << 24? | 1 << 24 = 224 = 16,777,216 | 16,777,216 | |
| Bit Shift | What is 1 << 30? | 1 << 30 = 230 = 1,073,741,824 | 1,073,741,824 | |
| Bit Shift | What is 1 << 31? | 1 << 31 = 231 = 2,147,483,648 | 2,147,483,648 | |
| Bit Shift | What is 1 << 32? | 1 << 32 = 232 = 4,294,967,296 | 4,294,967,296 | |
| Bit Shift | What is 3 << 1? | 3 << 1 = 3 × 21 = 3 × 2 = 6 | 6 | |
| Bit Shift | What is 3 << 2? | 3 << 2 = 3 × 22 = 3 × 4 = 12 | 12 | |
| Bit Shift | What is 5 << 2? | 5 << 2 = 5 × 22 = 5 × 4 = 20 | 20 | |
| Bit Shift | What is 5 << 3? | 5 << 3 = 5 × 23 = 5 × 8 = 40 | 40 | |
| Bit Shift | What is 7 << 3? | 7 << 3 = 7 × 23 = 7 × 8 = 56 | 56 | |
| Bit Shift | What is 9 << 2? | 9 << 2 = 9 × 22 = 9 × 4 = 36 | 36 | |
| Bit Shift | What is 10 << 1? | 10 << 1 = 10 × 21 = 10 × 2 = 20 | 20 | |
| Bit Shift | What is 12 << 2? | 12 << 2 = 12 × 22 = 12 × 4 = 48 | 48 | |
| Bit Shift | What is 15 << 4? | 15 << 4 = 15 × 24 = 15 × 16 = 240 | 240 | |
| Bit Shift | What is 25 << 3? | 25 << 3 = 25 × 23 = 25 × 8 = 200 | 200 | |
| Bit Shift | What is 100 << 1? | 100 << 1 = 100 × 21 = 100 × 2 = 200 | 200 | |
| Bit Shift | What is 255 << 8? | 255 << 8 = 255 × 28 = 255 × 256 = 65,280 | 65,280 | |
| Bit Shift | What is 2 << 10? | 2 << 10 = 2 × 210 = 2 × 1024 = 2,048 | 2,048 | |
| Bit Shift | What is 64 << 2? | 64 << 2 = 64 × 22 = 64 × 4 = 256 | 256 | |
| Bit Shift | What is 1000 << 4? | 1000 << 4 = 1000 × 24 = 1000 × 16 = 16,000 | 16,000 | |
| Bit Shift | What is 1024 >> 1? | 1024 >> 1 = floor(1,024 / 21) = floor(1,024 / 2) = 512 | 512 | |
| Bit Shift | What is 1024 >> 3? | 1024 >> 3 = floor(1,024 / 23) = floor(1,024 / 8) = 128 | 128 | |
| Bit Shift | What is 1024 >> 10? | 1024 >> 10 = floor(1,024 / 210) = floor(1,024 / 1,024) = 1 | 1 | |
| Bit Shift | What is 255 >> 4? | 255 >> 4 = floor(255 / 24) = floor(255 / 16) = 15 | 15 | |
| Bit Shift | What is 100 >> 2? | 100 >> 2 = floor(100 / 22) = floor(100 / 4) = 25 | 25 | |
| Bit Shift | What is 100 >> 3? | 100 >> 3 = floor(100 / 23) = floor(100 / 8) = 12 | 12 | |
| Bit Shift | What is 64 >> 3? | 64 >> 3 = floor(64 / 23) = floor(64 / 8) = 8 | 8 | |
| Bit Shift | What is 65535 >> 8? | 65535 >> 8 = floor(65,535 / 28) = floor(65,535 / 256) = 255 | 255 | |
| Bit Shift | What is 4096 >> 6? | 4096 >> 6 = floor(4,096 / 26) = floor(4,096 / 64) = 64 | 64 | |
| Bit Shift | What is 1000 >> 5? | 1000 >> 5 = floor(1,000 / 25) = floor(1,000 / 32) = 31 | 31 | |
| Bit Shift | What is 37 >> 2? | 37 >> 2 = floor(37 / 22) = floor(37 / 4) = 9 | 9 | |
| Bit Shift | What is 129 >> 7? | 129 >> 7 = floor(129 / 27) = floor(129 / 128) = 1 | 1 | |
| Bit Shift | What is 2147483648 >> 31? | 2147483648 >> 31 = floor(2,147,483,648 / 231) = floor(2,147,483,648 / 2,147,483,648) = 1 | 1 | |
| Bit Shift | What is 1 >> 1? | 1 >> 1 = floor(1 / 21) = floor(1 / 2) = 0 | 0 | |
| Bit Shift | What is 1048576 >> 20? | 1048576 >> 20 = floor(1,048,576 / 220) = floor(1,048,576 / 1,048,576) = 1 | 1 | |
| Check | Is 1 a power of 2? | 1 & (1 − 1) = 1 & 0 = 0. Zero means one set bit, so 1 = 20 | Yes, 20 | |
| Check | Is 2 a power of 2? | 2 & (2 − 1) = 2 & 1 = 0. Zero means one set bit, so 2 = 21 | Yes, 21 | |
| Check | Is 3 a power of 2? | 3 & (3 − 1) = 3 & 2 = 2. Not zero, so more than one bit is set | No | |
| Check | Is 6 a power of 2? | 6 & (6 − 1) = 6 & 5 = 4. Not zero, so more than one bit is set | No | |
| Check | Is 8 a power of 2? | 8 & (8 − 1) = 8 & 7 = 0. Zero means one set bit, so 8 = 23 | Yes, 23 | |
| Check | Is 12 a power of 2? | 12 & (12 − 1) = 12 & 11 = 8. Not zero, so more than one bit is set | No | |
| Check | Is 16 a power of 2? | 16 & (16 − 1) = 16 & 15 = 0. Zero means one set bit, so 16 = 24 | Yes, 24 | |
| Check | Is 24 a power of 2? | 24 & (24 − 1) = 24 & 23 = 16. Not zero, so more than one bit is set | No | |
| Check | Is 32 a power of 2? | 32 & (32 − 1) = 32 & 31 = 0. Zero means one set bit, so 32 = 25 | Yes, 25 | |
| Check | Is 48 a power of 2? | 48 & (48 − 1) = 48 & 47 = 32. Not zero, so more than one bit is set | No | |
| Check | Is 64 a power of 2? | 64 & (64 − 1) = 64 & 63 = 0. Zero means one set bit, so 64 = 26 | Yes, 26 | |
| Check | Is 100 a power of 2? | 100 & (100 − 1) = 100 & 99 = 96. Not zero, so more than one bit is set | No | |
| Check | Is 128 a power of 2? | 128 & (128 − 1) = 128 & 127 = 0. Zero means one set bit, so 128 = 27 | Yes, 27 | |
| Check | Is 200 a power of 2? | 200 & (200 − 1) = 200 & 199 = 192. Not zero, so more than one bit is set | No | |
| Check | Is 256 a power of 2? | 256 & (256 − 1) = 256 & 255 = 0. Zero means one set bit, so 256 = 28 | Yes, 28 | |
| Check | Is 500 a power of 2? | 500 & (500 − 1) = 500 & 499 = 496. Not zero, so more than one bit is set | No | |
| Check | Is 512 a power of 2? | 512 & (512 − 1) = 512 & 511 = 0. Zero means one set bit, so 512 = 29 | Yes, 29 | |
| Check | Is 1,000 a power of 2? | 1,000 & (1,000 − 1) = 1,000 & 999 = 992. Not zero, so more than one bit is set | No | |
| Check | Is 1,024 a power of 2? | 1,024 & (1,024 − 1) = 1,024 & 1,023 = 0. Zero means one set bit, so 1,024 = 210 | Yes, 210 | |
| Check | Is 2,000 a power of 2? | 2,000 & (2,000 − 1) = 2,000 & 1,999 = 1984. Not zero, so more than one bit is set | No | |
| Check | Is 2,048 a power of 2? | 2,048 & (2,048 − 1) = 2,048 & 2,047 = 0. Zero means one set bit, so 2,048 = 211 | Yes, 211 | |
| Check | Is 4,000 a power of 2? | 4,000 & (4,000 − 1) = 4,000 & 3,999 = 3968. Not zero, so more than one bit is set | No | |
| Check | Is 4,096 a power of 2? | 4,096 & (4,096 − 1) = 4,096 & 4,095 = 0. Zero means one set bit, so 4,096 = 212 | Yes, 212 | |
| Check | Is 65,536 a power of 2? | 65,536 & (65,536 − 1) = 65,536 & 65,535 = 0. Zero means one set bit, so 65,536 = 216 | Yes, 216 | |
| Check | Is 100,000 a power of 2? | 100,000 & (100,000 − 1) = 100,000 & 99,999 = 99968. Not zero, so more than one bit is set | No | |
| Check | Is 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 = 220 | Yes, 220 |
No examples match your search. Try a number such as 1024 or a word such as shift.
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. |