CalcWorldHub
Computer science · CalcWorldHub

Addressable Memory Capacity: Convert Address Bits to Bytes

An n-bit address can represent 2ⁿ distinct addresses. If each address selects one byte, a 32-bit address space contains 4,294,967,296 addressable bytes, equal to 4 GiB. This is an address-space limit under a stated model, not a measurement of how much RAM is installed or available to an application.

Open calculator
A memory address grid expands from a short binary address to a larger byte-addressable range.

Share this article

An address width n produces 2 to the n unique byte addresses, with the 32-bit example grouped into binary gigabytes.
The count is address patterns; byte capacity follows only when each address selects one byte.

Identify what one address selects

The calculator takes one input, Address bits n, and assumes byte addressing: every distinct address identifies one byte. Under that assumption, the number of addressable bytes is 2ⁿ. Some memory arrays instead address words or wider units; for those systems, multiply the number of locations by bytes per location rather than treating 2ⁿ as bytes.

Address width counts binary positions, not bytes and not the number of physical memory chips. Each additional address bit doubles the possible address patterns. The formula counts patterns from all zeros through all ones; for n bits, the largest unsigned address is 2ⁿ−1, while the number of locations is still 2ⁿ.

Calculate the theoretical capacity

Use C = 2ⁿ bytes, where n is a positive integer. For n = 32, C = 2³² = 4,294,967,296 bytes. Dividing by 1,073,741,824 bytes per gibibyte gives 4 GiB. Dividing instead by 1,000,000,000 gives about 4.295 decimal GB, so name the unit convention whenever the result is communicated.

The calculator accepts whole address widths from 1 through 52. It computes the power of two and formats the byte count; the byte-address assumption is stated in the calculator note. Values outside the accepted range are rejected even though the abstract expression 2ⁿ can be written for larger n. Do not enter fractional bits: an address register has a whole number of bit positions.

Worked examples

32-bit byte addresses

Inputs: Address bits n = 32; one address selects one byte

Calculation: C = 2³² = 4,294,967,296 bytes; C / 1,073,741,824 = 4 GiB

Theoretical byte-addressable capacity is 4 GiB, or about 4.295 decimal GB.

36-bit byte addresses

Inputs: Address bits n = 36; one address selects one byte

Calculation: C = 2³⁶ = 68,719,476,736 bytes; C / 1,073,741,824 = 64 GiB

The address space is 64 GiB under the byte-addressable assumption.

Adding one address bit doubles the number of distinct address patterns from 2 to the n to 2 to the n plus one.
One extra address bit doubles the number of locations.

Separate address space from usable memory

An address-space ceiling does not promise that a device contains that much RAM. Firmware regions, memory-mapped devices, operating-system design, process limits, physical installation, and reserved ranges can reduce what a program can use. Virtual addresses may also be translated, mapped sparsely, or limited independently of the physical address width.

The 32-bit example is a useful scale check, but it is not a universal rule that every 32-bit system exposes exactly 4 GiB of user memory. Some systems reserve portions of an address range or use different segmentation and mapping policies. Treat this calculation as the count of possible byte addresses under the simplified model, then consult the architecture and operating-system documentation for availability.

Check units and address conventions

Convert bytes to binary units only after obtaining the byte count: 1 KiB = 1,024 bytes, 1 MiB = 1,024² bytes, and 1 GiB = 1,024³ bytes. Decimal kB, MB, and GB use powers of 1,000. The calculator returns bytes; it does not select one of those display conventions for you.

A practical review is to compare with a known width. Eight address bits give 256 byte locations; adding one bit gives 512. If a claimed capacity does not double when the address width increases by one, the likely issue is a conversion or word-size assumption rather than exponentiation. Confirm whether the source describes address bits, data-bus width, or memory-cell width.

Use the estimate in a design note

For a compact estimate, record n, the assumption of one byte per address, and the result in bytes plus the chosen binary or decimal unit. For a word-addressed memory with 2ⁿ locations and four bytes per word, the total is 4 × 2ⁿ bytes; that is a different model and is not calculated by this single-input tool.

Before sizing a process or device, compare the theoretical range with the actual memory map, reserved regions, physical capacity, and software limits. The equation is exact for the stated address model, while real usable capacity depends on implementation details. When an architecture supports multiple address spaces, clarify which one is being counted rather than combining them into one number.

Sources and further reading

Share this article

Browse all articles · Calculator: Addressable memory capacity calculator