Skip to main content
IP Range CalculatorPRO
IPv4 Subnetting & RangeInstant Client-Side Tool

Total Address Count Calculator

Count addresses within a prefix.

Total Address Count Calculator: inputs and results

Enter an IP address, CIDR prefix, or range. Then check its first and last address below.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

How Total Address Count Calculator Works?

This tool works by subtracting the prefix length from 32 and raising 2 to the result. The output counts every address in the block, including reserved ones.

  1. Enter a prefix length

    Type a value from /0 to /32, or a full CIDR block such as 10.0.0.0/19.

  2. Count the host bits

    Host bits equal 32 − prefix. A /19 has 13 host bits.

  3. Compute 2 to the host bits

    Each host bit doubles the block. 2^13 = 8,192 addresses.

  4. Express the size in /24 units

    The calculator divides the total by 256 to show the block as a count of /24 networks. A /19 equals 32 × /24.

Total Address Count Calculator Formula

The formula is Total Addresses = 2^(32 − p), where p is the prefix length.

Total addresses

Total = 2^(32 − p)

Counts every address, including the network and broadcast addresses.

Size in /24 units

Units = 2^(24 − p)

Valid for prefixes /0 to /24.

Share of IPv4 space

Share = 2^(32−p) ÷ 4,294,967,296

The full IPv4 space holds 2^32 addresses.

Worked example: /19

Host bits  = 32 − 19 = 13
Total      = 2^13 = 8,192 addresses
/24 units  = 8,192 ÷ 256 = 32
IPv4 share = 8,192 ÷ 4,294,967,296 ≈ 0.00019 %

Total Address Count Calculator Conversion Table

The table lists the total address count for 17 prefix lengths, with the host bits, the exponent form, and the size in /24 units.

PrefixHost BitsExponentTotal AddressesEqual to /24s
/0322^324,294,967,29616,777,216
/4282^28268,435,4561,048,576
/8242^2416,777,21665,536
/10222^224,194,30416,384
/12202^201,048,5764,096
/14182^18262,1441,024
/16162^1665,536256
/17152^1532,768128
/18142^1416,38464
/19132^138,19232
/20122^124,09616
/22102^101,0244
/2482^82561
/2662^6641/4
/2842^4161/16
/3022^241/64
/3202^011/256

What is Total Address Count Calculator?

The Total Address Count Calculator is a tool that returns the number of IPv4 addresses inside a prefix, counting all addresses with no reservations removed. A /16 contains 65,536 addresses and a /8 contains 16,777,216.

Total address count is the raw size of a block. Usable host count is a separate value that removes the network and broadcast addresses. The Total Address Count Calculator gives the raw size, which matches the figures used by Regional Internet Registries (RIRs), cloud providers, and IPv4 address brokers.

Each step of 1 in prefix length doubles or halves the count. A /22 holds 1,024 addresses, a /21 holds 2,048, and a /20 holds 4,096.

What are the uses of Total Address Count Calculator?

There are 5 main uses of the Total Address Count Calculator, including IPv4 purchasing, cloud CIDR sizing, and capacity reports.

  • Pricing IPv4 transfers

    IPv4 addresses trade per address on the transfer market. A /22 (1,024 addresses) priced per IP gives the total block value.

  • Sizing cloud VPC CIDRs

    Amazon VPC accepts IPv4 CIDRs from /16 (65,536 addresses) to /28 (16 addresses). The count shows how much space each choice provides.

  • Reporting address inventory

    Inventory reports total the address count of every allocated block to show the size of the managed estate.

  • Comparing RIR allocations

    RIR policies set minimum allocation sizes, such as a /24 (256 addresses). The calculator compares a request against the policy size.

  • Teaching binary growth

    Students see how 1 extra host bit doubles the address count from 256 to 512 and beyond.