Skip to main content

IPv4 guide

How Many IPv4 Addresses Are There? Total, Public, and Available

There are exactly 4,294,967,296 possible IPv4 addresses in the 32-bit IPv4 address space. This number comes from 2³², because an IPv4 address contains 32 binary bits. However, 4.29 billion does not mean that 4.29 billion addresses are available for ordinary public Internet use.

World map illustrating the finite 32-bit IPv4 address space

What does 4,294,967,296 count?

The number is the complete set of bit patterns an IPv4 address can hold, from 0.0.0.0 through 255.255.255.255. It is a protocol total before private-use, loopback, multicast, documentation, shared, and other special-purpose ranges are considered. It also says nothing about whether an address is registered to an organization, announced in BGP, accepted by another network, or currently offered for transfer or lease.

IPv4 totals that answer different questions
Count or statusWhat it describesWhy it changes or differs
4,294,967,296 possible addressesEvery value representable by a 32-bit IPv4 addressFixed by the protocol: 2³²
Special-purpose spacePrefixes reserved for private use, loopback, shared addressing, documentation, multicast, and other defined purposesThe IETF and IANA registries define each prefix and its properties
Registered or allocated spaceResources recorded under IANA, RIR, legacy, provider, or organization administrationRegistry status and delegated records can change
Globally routed spacePrefixes observed in the public routing system at a stated timeAnnouncements, withdrawals, filters, and route policy change continuously
Available supplyResources that a registry, provider, holder, seller, or lessor can actually make available under current termsEligibility, authority, demand, policy, price, and live inventory all matter

How is the total number of IPv4 addresses calculated?

RFC 791 defines an IPv4 address as four octets, or 32 bits. Each bit has two values, so the number of combinations is:

2³² = 4,294,967,296

Dotted-decimal notation writes those bits as four numbers from 0 through 255. Each number represents one 8-bit octet, and 256 × 256 × 256 × 256 produces the same total. The dots make the value readable; they do not add address capacity.

How many addresses are in an IPv4 CIDR block?

A CIDR prefix length states how many of the 32 bits identify the network. The number of addresses in a prefix is 232 − prefix length. A shorter prefix contains more addresses; a longer prefix contains fewer.

Common IPv4 CIDR sizes and total address counts
PrefixTotal addressesCommon planning boundary
/816,777,216Top-level or very large historical allocation scale
/121,048,576Large private or provider planning block
/1665,536Large organization or site allocation boundary
/204,096Mid-sized routed or internal block
/24256Common public routing and operational reference size
/2816Small subnet or provider-assigned range
/304Traditional point-to-point subnet
/312Two host addresses on supported point-to-point links under RFC 3021
/321One exact IPv4 address or host route

These are total counts, not a promise of assignable hosts. The familiar “subtract two” rule applies to many traditional multi-access subnets because of network and broadcast addresses, but it is not universal: RFC 3021 permits both addresses on supported /31 point-to-point links, and a /32 identifies one exact address. Cloud, provider, anycast, gateway, and platform rules can reserve additional addresses.

How many IPv4 addresses are private or special-purpose?

RFC 1918 reserves three non-overlapping private-use blocks: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. Together they contain exactly 17,891,328 private-use IPv4 addresses. Different organizations can reuse them because they are not globally reachable on the public Internet.

Private space is only one part of the special-purpose registry. Other prefixes support protocol, operational, testing, or documentation needs and have different source, destination, forwarding, and reachability properties.

Examples of IPv4 space that is not ordinary public unicast supply
PrefixPurposeDecision boundary
10.0.0.0/8Private useReusable inside networks; not globally reachable
100.64.0.0/10Shared address spaceCommonly used between providers and subscribers; not ordinary public customer space
127.0.0.0/8LoopbackRefers to the local host, not a remote public endpoint
169.254.0.0/16Link-localApplies on the local link and is not ordinary global unicast
192.0.2.0/24Documentation TEST-NET-1Safe for examples; not a prefix to deploy as real public service space
198.18.0.0/15Benchmark testingReserved for controlled device or network testing
224.0.0.0/4MulticastUses multicast semantics rather than ordinary unicast assignment
240.0.0.0/4Reserved by protocolNot ordinary public unicast supply

Use the current IANA IPv4 Special-Purpose Address Registry for an exact prefix. Do not derive a “usable public total” by subtracting a short hand-written list: entries and their properties are more specific than a single public-versus-private label.

How many public IPv4 addresses are left?

There is no single stable number that answers this question for every purpose. IANA's IPv4 Address Space Registry records the top-level status of each /8, while a separate recovered-space registry records returned resources and distributions. Each RIR applies its own current policy to recovered or limited pools. Existing registered resources may also be routed, idle, transferred, sold, or leased under different authority and eligibility conditions.

  • Unallocated by IANA is a central registry status, not a count of addresses a business can order.
  • Available from an RIR depends on the registry, policy, request type, waiting list or recovered pool, and observation date.
  • Available in the transfer market requires a willing, authorized source and an eligible recipient under the applicable RIR process.
  • Available to lease requires a verified right to grant use, routing authority, a suitable exact prefix, compatible terms, and live supply.
  • Visible in BGP means a route was observed; it does not prove registry status, contractual authority, application acceptance, or market availability.

For a current decision, check the responsible RIR, the authoritative RDAP record, route and RPKI observations, and dated inventory. A search result that publishes one timeless “addresses left” figure collapses several different facts.

Why does IPv4 exhaustion still matter?

The mathematical total is fixed, but ordinary public IPv4 demand continues after the unrestricted central pool has been distributed. Networks keep operating through private addressing and NAT, carrier-grade NAT, transfers of eligible registered resources, time-limited leasing, provider assignments, address reclamation, and IPv6 deployment. These methods share or redistribute capacity; they do not create more IPv4 bit patterns.

IPv6 uses 128-bit addresses and therefore has 2¹²⁸ possible values. IPv6 deployment solves address-scale problems, but IPv4 and IPv6 are not directly interchangeable. A real plan may need dual stack, translation, or temporary IPv4 capacity while applications, users, peers, and security controls move.

Turn the address count into a network requirement

  1. Count public endpoints and interfaces. Separate Internet-facing capacity from private addresses, internal segments, load balancers, gateways, failover, and temporary environments.
  2. Choose the CIDR boundary. Include subnet design, upstream minimum prefix filters, aggregation, growth, reserve, and whether multiple smaller blocks are operationally acceptable.
  3. Choose the access path. Compare a provider assignment, an RIR resource, an approved transfer or purchase, and a time-limited lease against the same duration and control requirements.
  4. Verify the exact prefix. Check registry and contract authority, route origin, LOA where required, IRR objects, RPKI ROA, reverse DNS, geolocation, dated reputation evidence, and abuse contacts.
  5. Price the whole lifecycle. Include setup, registry or transfer work, routing, support, term, renewal, monitoring, incident response, withdrawal, return, and renumbering.
  6. Keep IPv6 in the design. Record which applications can use IPv6 now and which dependencies still require IPv4 so temporary capacity does not become an undocumented permanent assumption.

Use the IPv4 cost calculator after the prefix size is known. Then compare managed IPv4 leasing, buying IPv4 addresses, or current marketplace listings. Public inventory can change or be empty, and a listing is not proof of authority, routability, or application fit.

IPv4 address count FAQs

How many IPv4 addresses are there?

There are exactly 4,294,967,296 possible IPv4 addresses because IPv4 uses 32 bits and 2³² equals 4,294,967,296. This includes private, reserved, multicast, documentation, and other special-purpose values.

Why are there only about 4.3 billion IPv4 addresses?

IPv4 fixes the address field at 32 bits. Each bit has two possible values, so the protocol can represent 2³² unique values. Dotted-decimal notation shows those bits as four numbers from 0 through 255.

Are all 4.3 billion IPv4 addresses public?

No. Many prefixes are reserved for private use, loopback, link-local, shared addressing, documentation, benchmarking, multicast, and other special purposes. Registration and global routing also describe different states.

How many private IPv4 addresses are there?

The three RFC 1918 private-use blocks contain 17,891,328 addresses in total: 16,777,216 in 10.0.0.0/8, 1,048,576 in 172.16.0.0/12, and 65,536 in 192.168.0.0/16. They can be reused by separate private networks.

How many IPv4 addresses are in a /24?

A /24 contains 28, or 256, total addresses. The assignable amount depends on the subnet and platform rules; total address count is not the same as universally usable host capacity.

How many public IPv4 addresses are still available?

There is no timeless global figure. Check the current IANA and RIR registries, the exact request policy, and dated market inventory. Unallocated, registered, routed, transferable, and offered-for-lease are different states.

Does a routed IPv4 address count as available?

No. A BGP route is evidence that a prefix is being announced at an observation time. It does not prove that the announcer owns the resource, can transfer or lease it, or that the prefix is suitable for a workload.

How many addresses does IPv6 have?

IPv6 uses 128 bits and therefore has 2¹²⁸ possible addresses, approximately 3.4 × 10³⁸. That much larger space does not make IPv4 and IPv6 directly interchangeable for every application or network path.

Primary standards and registries

Tags

  • #ipv4
  • #ipv6