Example 1
- 192.168.1.42
- CIDR 24
254
How many hosts at 192.168.1.42/24? 254. Address math, not a live network.
Type an IPv4 address and a CIDR prefix. 192.168.1.42/24 gives 254. 10.0.0.1/16 gives 65534. 172.16.0.1/30 gives 2. Address math, not a live network.
IPv4 address math, not a live network and not traceroute. A DHCP pool sits on DHCP range.
Enter an IPv4 address and CIDR prefix, then click Calculate.
From an IPv4 address and CIDR prefix, the tool derives the canonical network block, subnet mask, wildcard, broadcast, host range, and address counts. Enter any host inside the subnet, or paste IP/prefix — you do not need the network address up front.
CIDR notation (for example /24) states how many bits belong to the network portion. The rest are host bits. A /24 prefix → mask 255.255.255.0 and 256 addresses in the block. Larger prefix numbers mean smaller subnets.
A fast lookup of common subnet sizes — without recalculating from scratch.
| Prefix | Mask | Total | Usable | Typical use |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | very large nets / private 10/8 |
| /12 | 255.240.0.0 | 1,048,576 | 1,048,574 | private 172.16/12 |
| /16 | 255.255.0.0 | 65,536 | 65,534 | large VPC / campus |
| /20 | 255.255.240.0 | 4,096 | 4,094 | medium VPC / VLAN |
| /24 | 255.255.255.0 | 256 | 254 | typical LAN / VLAN |
| /26 | 255.255.255.192 | 64 | 62 | small VLAN / segments |
| /27 | 255.255.255.224 | 32 | 30 | small host groups |
| /28 | 255.255.255.240 | 16 | 14 | small pools / lab |
| /29 | 255.255.255.248 | 8 | 6 | small links / DMZ |
| /30 | 255.255.255.252 | 4 | 2 | point-to-point links |
| /31 | 255.255.255.254 | 2 | 2* | P2P (RFC 3021) |
| /32 | 255.255.255.255 | 1 | 1* | single host / route |
* /31 and /32 use different semantics than a classic LAN — see calculator results and FAQ.
10.0.0.0/8 — 10.0.0.0 – 10.255.255.255172.16.0.0/12 — 172.16.0.0 – 172.31.255.255192.168.0.0/16 — 192.168.0.0 – 192.168.255.255These ranges are for LANs, offices, and internal cloud networks. They are not routed on the public Internet. The calculator marks a result as private when the network falls in RFC 1918.
The IP Subnet / CIDR Calculator in this calculator counts usable hosts from the prefix. 192.168.1.42 and /24 give 254. 10.0.0.1/16 and /16 give 65534. 172.16.0.1 and /30 give 2. The formula is 2^(32−p) minus 2, except /31 and /32. This is not a live network.
Field ip-addr is the address. Field ip-cidr is the prefix. 254 is 256 minus 2. 65534 is 65536 minus 2. 2 is 4 minus 2. The address may carry /16 in the text. The calculator does not query a router.
254 is not a DHCP lease. 65534 does not come from ipconfig. 2 at /30 is two point-to-point hosts. Another prefix at the same address changes the hosts. There is no interface probe.
DHCP range next door starts a pool after reserved hosts. IPv6 shorthand compresses hextets. Here 192.168.1.42/24 stays 254, a CIDR sketch from two fields.
Type 192.168.1.42 and 24, then Calculate. The result is 254. 10.0.0.1/16 needs prefix 16. A blank address is a field error. This is not a network scan.
192.168.1.42/24 gives 254. 10.0.0.1/16 gives 65534. 172.16.0.1/30 gives 2. Another CIDR at the same IP changes the hosts.
usable hosts = 2^(32 − prefix) − 2, except /31 and /32. Address math, not a live network.
Usable hosts from the prefix. 192.168.1.42/24 gives 254. Address math, not a live network.
254
How many hosts at 192.168.1.42/24? 254. Address math, not a live network.
65 534
What about 10.0.0.1/16? 65534. 2^16 minus 2.
2
What about 172.16.0.1/30? 2. Two hosts on the link.
254. 2^8 minus 2. Address math, not a live network.
65534. 2^16 minus 2. Prefix 16 in the CIDR field.
2. Four addresses, minus network and broadcast.
No. The calculator does not query an interface and does not traceroute. Two fields only.
They are special cases. Classic minus 2 does not apply the same way as /24.
You still type the prefix in ip-cidr. The example keeps 16 in both.
No. DHCP sits on the neighbour card. Here hosts from the mask.
On IPv6 shorthand. Here IPv4 CIDR stays.
No. Address and prefix must be valid. This is not a scan.
The calculator counts bits, bytes or throughput from your numbers. Below are SI and bit definitions (NIST).
Page updated in 2026.