IP CIDR Calculator & Subnet Splitter
Input Parameters
Computed Results
The IP CIDR calculator determines the network address, broadcast address, subnet mask, and usable hosts for any given IPv4 CIDR block. It also functions as a subnet splitter, allowing network administrators to divide a larger address space into smaller, evenly sized subnets based on a target prefix length.
Practical Use Cases
Network engineers and system administrators use CIDR (Classless Inter-Domain Routing) calculations to design and manage IP address allocations efficiently. Common applications include:
- Network Segmentation: Dividing a large corporate network into smaller subnets for different departments or physical locations to improve security and reduce broadcast traffic.
- Cloud Infrastructure Planning: Sizing Virtual Private Clouds (VPCs) and subnets in AWS, Azure, or Google Cloud to ensure sufficient IP availability for virtual machines and containers.
- Routing Configuration: Determining the exact network and broadcast addresses required to configure routers, firewalls, and DHCP servers accurately.
Formula & Explanation
CIDR notation combines an IP address with a prefix length (e.g., /16), which indicates the number of bits used for the network portion of the address. The remaining bits are used for host addresses.
The total number of addresses in a subnet is calculated using the formula:
Because the first address is reserved for the network identifier and the last address is reserved for the broadcast address, the number of usable hosts is generally:
When splitting a subnet into a longer target prefix, the number of resulting subnets is:
Verified Scenario Walkthroughs
The following examples demonstrate how different CIDR blocks and split targets affect the resulting network parameters.
Small Home Network Subnetting
A standard home or small office network often uses a /24 block. If you input 192.168.1.0/24 and split it to a /26 prefix, the calculator identifies it as a Private RFC 1918 network. The network address is 192.168.1.0 with a subnet mask of 255.255.255.0. The original block contains 256 total addresses and 254 usable hosts. Splitting it to a /26 creates 4 subnet blocks, each containing 64 addresses.
Large Enterprise Network Segmentation
For a massive internal network, you might start with 10.0.0.0/8 and target a /16 split. This Private RFC 1918 block has a network address of 10.0.0.0 and a broadcast address of 10.255.255.255. It provides 16,777,216 total addresses (16,777,214 usable hosts). Splitting it to a /16 yields 256 subnet blocks, each with 65,536 addresses.
Shared Address Space Analysis
Carrier-grade NAT environments often use shared address space. Inputting 100.64.0.0/10 with a split target of /20 results in a classification of Shared Address Space (RFC 6598). The network address is 100.64.0.0 and the subnet mask is 255.192.0.0. The block holds 4,194,304 total addresses. Splitting to a /20 generates 1,024 subnet blocks of 4,096 addresses each.
Private Class B Network Split
If you allocate 172.16.0.0/12 and split it to a /28 prefix, the network address is 172.16.0.0 with a broadcast address of 172.31.255.255. The original block contains 1,048,576 total addresses. Dividing it into /28 subnets creates 65,536 blocks, each providing 16 addresses.
Frequently Asked Questions
Why are there two fewer usable hosts than total addresses?
In standard IPv4 subnetting, the first address in a block is reserved as the network address, and the last address is reserved as the broadcast address. Therefore, they cannot be assigned to individual devices.
What happens if I split a subnet into the same prefix length?
If the target prefix matches the original prefix, the block is not divided. You will end up with exactly 1 subnet block containing the original number of addresses.