Our trusted partners
MCM EleganteSoniqWaveJCPenneyEctor County ColiseumGenesis Digital AssetsFalvez EnergyBeyondReach
  1. Home
  2. /Enterprise
  3. /Managed IPv4 Infrastructure
  4. /IPv4 Block Sizes

IPv4 Block Sizes: /24, /23, /22, /21, /20 and /19 Explained

IPv4 block sizes are commonly expressed using CIDR notation. A /24 contains 256 total IPv4 addresses, a /23 contains 512, a /22 contains 1,024, a /21 contains 2,048, a /20 contains 4,096 and a /19 contains 8,192 total IPv4 addresses.

By NetWest Online, Inc.Published August 2026

Here is the quick reference:

CIDRTotal IPv4 Addresses
/321
/312
/304
/298
/2816
/2732
/2664
/25128
/24256
/23512
/221,024
/212,048
/204,096
/198,192
/1816,384
/1732,768
/1665,536

What Does /24 Mean?

The “/24” is CIDR notation.

CIDR stands for Classless Inter-Domain Routing.

IPv4 addresses contain 32 bits.

The number following the slash tells us how many of those bits identify the network prefix.

Therefore:

/24 leaves 8 bits for addresses.

2⁸ = 256

So a /24 contains 256 total IPv4 addresses.

How Many IP Addresses Are in a /23?

A /23 contains:

512 total IPv4 addresses.

A /23 is equivalent in size to two contiguous /24 networks.

For businesses requiring several hundred public addresses, a /23 can be a useful allocation size. IPv4 leasing at this size is common.

How Many IP Addresses Are in a /22?

A /22 contains:

1,024 total IPv4 addresses.

A /22 is equivalent in size to:

Two /23s

or

Four /24s.

Organizations with larger infrastructure requirements may consider a /22 when a /23 does not provide sufficient capacity.

How Many IP Addresses Are in a /21?

A /21 contains:

2,048 total IPv4 addresses.

A /21 contains the same total address capacity as:

  • 2 × /22
  • 4 × /23
  • 8 × /24

A /21 represents a significant public IPv4 allocation and should generally be deployed with careful routing, utilization and reputation management.

How Many IP Addresses Are in a /20?

A /20 contains:

4,096 total IPv4 addresses.

That’s equivalent to:

  • 2 × /21
  • 4 × /22
  • 8 × /23
  • 16 × /24

At this size, IPv4 address space represents a substantial network resource.

How Many IP Addresses Are in a /19?

A /19 contains:

8,192 total IPv4 addresses.

A /19 can be divided into:

  • 2 × /20
  • 4 × /21
  • 8 × /22
  • 16 × /23
  • 32 × /24

This illustrates why CIDR notation is useful. Large allocations can be subdivided into smaller contiguous networks according to operational requirements.

IPv4 CIDR Block Size Formula

IPv4 contains 32 bits.

To calculate the total number of addresses in a CIDR block, use:

2^(32 - prefix length)

Example for a /22:

32 - 22 = 10

2¹⁰ = 1,024

Therefore a /22 contains 1,024 total addresses.

Example for a /19:

32 - 19 = 13

2¹³ = 8,192

Therefore a /19 contains 8,192 total addresses.

Total Addresses vs. Usable Addresses

There is an important distinction between the total number of addresses contained in a CIDR block and the number available to individual devices in a particular subnet design.

In traditional IPv4 subnetting, the first address is generally used as the network address and the last as the broadcast address.

For example, a traditionally configured /24 subnet contains:

256 total addresses

254 conventionally usable host addresses

However, modern routed infrastructure does not always assign an entire public IPv4 block as one traditional Layer 2 subnet.

Providers can route address space using architectures where the traditional “subtract two” assumption does not describe how the entire allocation is utilized.

Therefore, when leasing or deploying public IPv4 space, discuss the actual routing architecture with the network provider rather than assuming that every deployment will use conventional subnetting.

Which IPv4 Block Size Do I Need?

The correct allocation depends upon the number of addresses required today and anticipated future growth.

As a simple reference:

Up to 256 addressesConsider a /24
Approximately 500 addressesConsider a /23
Approximately 1,000 addressesConsider a /22
Approximately 2,000 addressesConsider a /21

But don’t select an allocation solely because the math works.

Consider:

  • Actual utilization
  • Growth requirements
  • Routing architecture
  • Bandwidth
  • Server infrastructure
  • BGP requirements
  • Network reputation
  • Provider requirements

Can IPv4 Blocks Be Divided?

Yes.

CIDR blocks can be divided into smaller networks.

For example:

One /21 can become two /22s.

One /22 can become two /23s.

One /23 can become two /24s.

This can be useful when separating customers, applications, locations or network functions.

Why Contiguous IPv4 Space Matters

A contiguous block is generally easier to route and manage than hundreds of unrelated individual addresses.

For example, rather than maintaining 512 unrelated IP addresses, a network operator can manage a single /23 prefix.

Contiguous allocations can simplify:

  • Routing
  • Firewall policies
  • Documentation
  • Reverse DNS
  • Monitoring
  • Network administration
  • Reputation management

IPv4 Blocks and BGP

Larger IPv4 deployments often involve BGP.

BGP—Border Gateway Protocol—is the routing protocol used by autonomous networks to exchange information about how Internet prefixes can be reached.

Businesses deploying dedicated IPv4 infrastructure should determine whether:

  • The provider will originate the prefix
  • The customer's ASN will originate it
  • An LOA is required
  • RPKI configuration is involved
  • The provider will manage routing

Learn more about BGP.

Leasing an IPv4 Block

Businesses do not necessarily have to purchase IPv4 address space permanently.

IPv4 blocks can also be leased.

Depending upon availability and technical requirements, NetWest can evaluate business requirements for allocations such as:

/24, /23, /22, /21 and other configurations.

NetWest can also combine IPv4 resources with routing, bandwidth, colocation and network engineering.

Frequently Asked Questions

Need a Dedicated IPv4 Block?

If your business requires a /24, /23, /22, /21 or another IPv4 configuration, NetWest can evaluate your technical requirements and available infrastructure.

We can combine IPv4 resources with:

RoutingBGPBandwidthColocationPowerReverse DNSRemote handsNetwork engineering

Related IPv4 Resources

Request IPv4 Infrastructure Consultation

Tell us what you need. NetWest will review your IPv4, routing, bandwidth and infrastructure requirements and determine an appropriate deployment.

Contact Information

IPv4 Requirement

Deployment Type

Estimated Bandwidth

Equipment

Application / Intended Use

Qualification Questions

Deployment Timeline

Additional Requirements

Your request is handled as a confidential business inquiry.

NetWest Online

The Permian Basin's premier provider of Internet service and data solutions since 1996.

Contact Us

5000 E. University Blvd #11
Odessa, TX 79762
(432) 550-8766

Department Emails

General Questions
comments@netwest.com
Technical Support
support@netwest.com
Billing Support
Billing@netwest.com

Solutions

Tech Support

Knowledge Center

Legal

Service Areas

© 2026 NetWest Online, Inc. All rights reserved.

Serving the Permian Basin since 1996