How to use
- Type the IP with a prefix (192.168.1.10/24) or with a mask (192.168.1.10 255.255.255.0).
- Or change the prefix with the selector to compare subnet sizes.
- Read the network, broadcast, host range and total addresses.
- Use the binary view to see where the mask splits network and host bits.
Use cases
- Planning VPCs and subnets on AWS, Azure or GCP.
- Writing firewall rules and security groups with CIDR ranges.
- Sizing local networks, VLANs and DHCP pools.
- Studying for certifications such as CCNA.
Technical concepts
CIDR notation
The /n suffix says how many leading bits of the address belong to the network. A /24 leaves 8 bits for hosts, or 256 addresses; each bit removed from the prefix doubles the network size.
Network, broadcast and usable hosts
The first address identifies the network and the last is the broadcast, so a typical subnet has 2^(32−n) − 2 usable hosts. The exceptions are /31, used for point-to-point links (RFC 3021) with 2 hosts, and /32, which represents a single host.
Wildcard mask
The wildcard is the bitwise inverse of the mask (0.0.0.255 for a /24) and is used in Cisco ACLs and OSPF configurations.
Private ranges
RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks. 100.64.0.0/10 is used by ISPs for CGNAT.
Frequently asked questions
How many hosts fit in a /26?
64 addresses in total and 62 usable hosts.
Why does AWS reserve 5 IPs per subnet?
Besides network and broadcast, AWS reserves the VPC router, DNS and one address for future use. A /24 subnet on AWS has 251 usable IPs.
Does the calculator support IPv6?
This version calculates IPv4 only.