Formula
IPv4 subnetting uses the CIDR prefix to split the 32-bit address space into network and host bits.
Network address: floor(IP / subnet size) × subnet size
Subnet size: 2^(32 - prefix)
Networking / United States
Enter an IPv4 address and CIDR prefix to calculate the network, broadcast, subnet mask, usable hosts, and AWS VPC IP counts.
You can paste a combined IPv4/CIDR value like 10.0.1.15/24 into the IP field.
IPv4 subnetting uses the CIDR prefix to split the 32-bit address space into network and host bits.
Network address: floor(IP / subnet size) × subnet size
Subnet size: 2^(32 - prefix)
10.0.1.15/24 becomes the canonical CIDR 10.0.1.0/24.
The subnet mask is 255.255.255.0 and the usable host count is 254 in standard mode.
In AWS VPC mode, the same subnet has 249 usable addresses because AWS reserves five IPs.
Read the full instructions and subnetting examples.