Subnet / CIDR Calculator
Network and broadcast addresses, usable host range, netmask and wildcard for any IPv4 CIDR block, and a split into equal subnets.
A prefix length (10.0.0.0/8) or a netmask (10.0.0.0 255.0.0.0) both work.
- Network
- 192.168.1.0/24
- Netmask
- 255.255.255.0
- Wildcard mask
- 0.0.0.255
- Broadcast
- 192.168.1.255
- Usable hosts
- 192.168.1.1 to 192.168.1.254
- Host count
- 254 usable of 256 addresses
- Address type
- Private (RFC 1918)
How to read the result
A CIDR block such as 192.168.1.0/24 is an address and a prefix length. The prefix says how many of the 32 bits name the network; the rest number the hosts inside it. A /24 leaves 8 host bits, so 256 addresses. The first is the network address and the last is the broadcast address, which leaves 254 for hosts.
The netmask is the same prefix written as an address (255.255.255.0 for /24). The wildcard mask is its inverse (0.0.0.255), the form that access lists on Cisco devices and OSPF configuration expect.
Sizes worth remembering
- /8 holds 16,777,214 hosts, /16 holds 65,534 and /24 holds 254.
- /30 holds 2 hosts, the classic size for a link between two routers.
- /31 has no network or broadcast address: both addresses are hosts, for point-to-point links (RFC 3021).
- /32 is a single host, the form used in firewall rules and route tables.
Cloud subnets are smaller than they look
The host counts here follow the IP standard. AWS reserves five addresses in every VPC subnet (the first four and the last), so a /24 there gives 251 usable addresses, not 254. Azure reserves five as well. Leave that headroom when you size a subnet for a cluster.
The calculation runs entirely in your browser. Nothing you type leaves the page.
More tools
- Email Security ScannerSPF · DKIM · DMARC
- .np Domain CheckerNepal · Availability
- DNS Propagation CheckerMulti-resolver · TTL
- Cron Expression ExplainerSchedule · Next runs