How many usable hosts does a /24 have?
254. A /24 has 256 addresses; the first is the network address and the last the broadcast address, so 254 remain for hosts. In general an IPv4 network has 2^(32 − prefix) − 2 usable hosts.
Calculate any IPv4 or IPv6 subnet from CIDR notation or a netmask: network and broadcast address, usable host range, netmask and wildcard, number of addresses and /64 networks, the address type, a colour-coded binary view and an even split into smaller subnets.
Network bits (first 24) and host bits (last 8).
4 subnets of /26, each with 64 addresses (62 usable hosts).
| # | Subnet | Hosts |
|---|---|---|
| 1 | 192.168.1.0/26 | 192.168.1.1 – 192.168.1.62 |
| 2 | 192.168.1.64/26 | 192.168.1.65 – 192.168.1.126 |
| 3 | 192.168.1.128/26 | 192.168.1.129 – 192.168.1.190 |
| 4 | 192.168.1.192/26 | 192.168.1.193 – 192.168.1.254 |
Type an address with prefix such as 192.168.1.10/24 or 2001:db8::/48. For IPv4 you can also write the netmask, for example 10.1.2.3 255.255.240.0.
See the network, host range, masks, address count and whether the range is private, CGNAT, documentation, link-local or public.
Choose a longer prefix to divide the network into equal subnets, for example a /24 into four /26 or a /48 into /64 LANs.
254. A /24 has 256 addresses; the first is the network address and the last the broadcast address, so 254 remain for hosts. In general an IPv4 network has 2^(32 − prefix) − 2 usable hosts.
RFC 3021 allows /31 networks on point-to-point links: with only two addresses there is no need for a network or broadcast address, so both can be assigned. A /32 describes a single host.
The inverse of the netmask: 255.255.255.0 becomes 0.0.0.255. Cisco access lists and OSPF use it to say which bits of an address must match (0) and which may vary (1).
A /48 contains 65,536 networks of size /64, a /56 contains 256. Each /64 is the standard size of one IPv6 LAN, because stateless address autoconfiguration (SLAAC) needs 64 bits for the interface identifier.
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). 100.64.0.0/10 is shared address space for carrier-grade NAT, 169.254.0.0/16 is link-local, and 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 are reserved for documentation.
Check a website's HTTP security headers, get a grade from A+ to F and concrete recommendations for each header.
Open toolParse user agents: browser, engine, OS, device, bots and AI crawlers, Client Hints and log analysis — entirely in your browser.
Open toolCheck a domain's TLS certificate: issuer, expiry, chain, host name match and supported TLS versions.
Open tool