📡 Networking

CIDR to IP Range & Subnet Calculator

Enter a CIDR block to instantly calculate the network address, broadcast address, usable IP range, subnet mask, wildcard mask and total hosts. Also split a CIDR into smaller subnets.

📖 How to Use This Tool
1
Enter a CIDR block like 10.0.0.0/24 in the input field
2
View network address, broadcast, usable hosts and subnet mask
3
Use Subnet Splitter to divide a block into smaller subnets
4
Results update in real-time as you type
📝 Examples
Class C subnet
Input: 192.168.1.0/24
Output: 254 usable hosts, mask 255.255.255.0
/16 network
Input: 10.0.0.0/16
Output: 65,534 usable hosts, mask 255.255.0.0
📡 Enter CIDR Notation
10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 192.168.1.0/24 10.0.0.0/28
Private RFC 1918 ranges: 10.0.0.0/8 · 172.16.0.0/12 · 192.168.0.0/16. These are not routable on the public internet and are safe to use inside VPCs and private networks.

From Classful Addressing to RFC 1519

Before CIDR, IPv4 address allocation followed rigid class boundaries defined in the original IP specification: Class A, B, and C networks came in only three fixed sizes, so an organization needing 300 addresses had no choice but to take an entire Class B block of 65,536. RFC 1519, published in 1993, replaced this scheme with Classless Inter-Domain Routing — variable-length subnet masking that lets a network of almost any size be carved from the available address space using notation like 10.0.0.0/24. The change wasn't just a convenience; without it, the internet's finite pool of IPv4 addresses and global routing table capacity would have been exhausted years earlier than they eventually were.

CIDR notation itself is simple by design: the number after the slash states how many leading bits are fixed as the network portion, with the remaining bits available for host addresses. RFC 1918 layered a second convention on top of this — reserving 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 as private ranges that public-internet routers will never forward, which is why every VPC, home network, and Kubernetes cluster today builds its internal addressing from one of these three blocks.

Subnetting Decisions at Fleet Scale

Getting a CIDR block's size wrong matters far more once a network is provisioned than it does on a whiteboard. A VPC's CIDR range is difficult to resize after subnets, route tables, and peering connections are attached to it — under-provisioning early forces a disruptive re-architecture later, while over-provisioning carries no runtime cost but occasionally collides with other blocks during a VPC peering or VPN setup. Kubernetes pod networking makes the stakes concrete: many CNI plugins allocate a fixed-size slice — commonly a /24, providing 254 pod IPs — to each node from the cluster's overall pod CIDR, so a cluster's maximum node count is effectively capped by how many /24s fit inside the configured pod CIDR. A /16 pod range yields up to 256 such /24 allocations, which is why clusters expecting to scale into the hundreds of nodes are usually given a /16 or larger from day one rather than resized under pressure once nodes start failing to join.

Where Engineers Reach for This Calculator

  • Sizing a new VPC or VNet: confirming a candidate CIDR block provides enough headroom for every subnet, availability zone, and future service before the network is provisioned.
  • Writing firewall and security group rules: checking whether a specific IP address falls inside an existing CIDR block before adding or auditing an ingress rule.
  • Planning Kubernetes cluster networking: verifying that pod CIDR, service CIDR, and node network ranges don't overlap with each other or with peered corporate networks.
  • Splitting a block across environments: dividing one large allocation into per-availability-zone or per-tier (public/private/database) subnets and confirming the resulting host counts before deployment.

The Overlapping-CIDR Incident

A common and entirely avoidable outage pattern involves two networks provisioned independently — say, a company's original AWS VPC and a newly acquired subsidiary's VPC — both defaulting to the same popular 10.0.0.0/16 or 192.168.0.0/16 range. Everything works fine until the two networks need to talk to each other through a VPC peering connection or site-to-site VPN, at which point the peering request fails outright: overlapping CIDR ranges cannot be routed between each other, because neither side has a way to know which 10.0.1.5 traffic is meant for which network.

Untangling this after the fact means re-addressing an entire live network, migrating every resource's IP, and updating every hardcoded reference to the old range — a project that can take months. Teams that get burned by this once typically start maintaining a documented, non-overlapping CIDR allocation plan across every account and environment before any new VPC is created, checking every new block against that master plan with a calculator like this one rather than accepting whatever range a cloud console suggests by default.

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation like 10.0.0.0/24 defines an IP address range. The number after the slash indicates how many bits are fixed (the network part), determining how many host addresses are available. The remaining bits form the host portion and can vary freely within that block. For example, a /24 fixes the first 24 bits, leaving 8 bits for hosts — yielding 256 total addresses (254 usable after reserving network and broadcast).

What is the difference between /24 and /16?

A /24 subnet provides 254 usable host addresses and is the most common subnet size for a single team or application tier. A /16 provides 65,534 usable addresses and is typical for an entire VPC or large corporate network segment. Each step up in prefix length (e.g., from /24 to /25) halves the available hosts, while each step down doubles them. Choosing the wrong size at VPC creation time is difficult to fix later, so it pays to calculate carefully upfront — AWS, for instance, allows VPC CIDR ranges from /16 to /28.

How do I choose the right CIDR block for a VPC or Kubernetes cluster?

For a VPC, choose a private RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16) and size it generously to accommodate future growth — a /16 is a common starting point for production environments, giving you 65,534 addresses you can divide into subnets per availability zone. For Kubernetes, ensure the pod CIDR does not overlap with your VPC CIDR or any peered networks; a dedicated /16 or /17 for pods is common for clusters with hundreds of nodes, since each node is typically allocated a /24 slice from that range. Always check for CIDR conflicts with VPN ranges, Direct Connect networks, and other peered VPCs before finalising your design.