IPv4 CIDR Subnet Calculator
Calculate IPv4 network address, broadcast address, usable host range, subnet mask, wildcard mask, and host count from any CIDR notation like 192.168.1.0/24.
| CIDR Block | — |
|---|---|
| Network Address | — |
| Broadcast Address | — |
| Subnet Mask | — |
| Wildcard Mask | — |
| Usable Host Range | — |
| Usable Hosts / Total IPs | — |
| Address Scope | — |
Quick IPv4 CIDR Reference Table
| CIDR | Subnet Mask | Total IPs | Usable Hosts | Typical Use |
|---|---|---|---|---|
/32 | 255.255.255.255 | 1 | 1 (Host route) | Firewall allowlist / loopback |
/30 | 255.255.255.252 | 4 | 2 | Point-to-point router links |
/28 | 255.255.255.240 | 16 | 14 | Small cloud/DMZ subnet |
/24 | 255.255.255.0 | 256 | 254 | Standard LAN / VPC subnet |
/20 | 255.255.240.0 | 4,096 | 4,094 | AWS/GCP medium VPC block |
/16 | 255.255.0.0 | 65,536 | 65,534 | Full private VPC (10.x or 172.16.x) |
All bitwise IPv4 calculations happen locally inside your browser using unsigned 32-bit arithmetic—safe for internal corporate VPC planning and firewall rules.
Frequently Asked Questions
Why does a /24 subnet have 254 usable hosts instead of 256?
Two addresses are reserved: the first address (.0) identifies the network itself and the last address (.255) is the subnet broadcast address.
What is a wildcard mask used for?
Cisco ACLs, OSPF network statements, and some firewall rules use the bitwise inverse of the subnet mask (for example 0.0.0.255 for a /24).
Can I paste full CIDR like 10.20.0.0/16 directly into the IP box?
Yes. Pasting an IP/prefix string automatically splits the address and CIDR prefix for instant calculation.
Common IPv4 CIDR Subnet Sizes Quick Reference
| Prefix | Subnet Mask | Total IPs | Usable Hosts |
|---|---|---|---|
/24 | 255.255.255.0 | 256 | 254 (standard LAN) |
/26 | 255.255.255.192 | 64 | 62 (small VPC subnet) |
/28 | 255.255.255.240 | 16 | 14 (small service block) |
/30 | 255.255.255.252 | 4 | 2 (point-to-point link) |
/32 | 255.255.255.255 | 1 | 1 (single host firewall rule) |
Visualize individual octet bits next in IPv4 to Binary Converter or expand full ranges via CIDR to IP Range.
Frequently Asked Questions
- Why are usable hosts 2 fewer than total IPs?
- In standard IPv4 subnets (/30 and wider), the first address is reserved as the Network ID and the last as the Broadcast address.
- How do cloud VPCs like AWS reserve IPs?
- AWS VPC subnets reserve 5 addresses per subnet (network, router, DNS, future use, broadcast), leaving 251 usable IPs in a /24.
- What are the RFC 1918 private IPv4 ranges?
- 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 are reserved exclusively for private internal networks.