🌐 IP Addressing
Subnetting is bit arithmetic on an address, and the CIDR suffix is simply how many leading bits identify the network. These tools turn that into a usable range without hand-converting to binary.
IP Subnet & CIDR Calculator
Convert CIDR prefixes to subnet masks, find network address, broadcast address, first/last host, and total usable IPs for IPv4 and IPv6 ranges.
Open Calculator →Subnetting in Practice: CIDR, Hosts and Ranges
An IPv4 address is 32 bits, usually written as four decimal octets. The CIDR suffix says how many of those bits are locked to the network; the remaining bits identify hosts. Every subnet question - range, broadcast, host count - follows from that split.
1. How many hosts a prefix allows
| CIDR | Subnet mask | Usable hosts |
|---|---|---|
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /28 | 255.255.255.240 | 14 |
| /30 | 255.255.255.252 | 2 |
| /31 | 255.255.255.254 | 2 (point-to-point) |
The formula is two to the power of the host bits minus two: a /24 leaves 8 host bits, so 256 addresses minus the network and broadcast addresses gives 254 usable hosts. Point-to-point links commonly use /31 to avoid wasting two addresses.
2. Network, broadcast and range
For 192.168.1.0/24 the network address is 192.168.1.0, the broadcast is 192.168.1.255, and usable hosts run from .1 to .254. For 10.0.0.0/26 the block size is 64, so the second subnet starts at 10.0.0.64. The IP Subnet Calculator returns all of these at once.
3. Private, public and reserved ranges
RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks. These addresses are not routable on the public internet, which is why home routers assign them and use NAT to reach outside. 127.0.0.0/8 is loopback, and 169.254.0.0/16 appears when DHCP fails.
4. IPv6 changes the arithmetic, not the concept
IPv6 uses 128 bits and typically allocates a /64 to a single network - 18 quintillion addresses - so host counting stops being a constraint. The CIDR concept, network boundary and prefix length remain identical. For throughput and broadband testing, see the Broadband and Speed Hub, or browse the Network and Tech Calculators directory.
Frequently Asked Questions (IP Addressing)
254. The /24 prefix leaves eight host bits, giving 256 total addresses, and the network and broadcast addresses cannot be assigned to devices. A /25 halves that to 126 and a /26 to 62.
The network address identifies the subnet itself and cannot be assigned to a host, while the broadcast address reaches every host on that subnet. Both are reserved, which is why usable hosts are two fewer than the total address count.
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are reserved for private networks under RFC 1918. They are not routable on the public internet and require NAT to reach outside addresses.
A /31 provides exactly two addresses with no network or broadcast reservation, which suits a link between two routers. Using a /30 for the same purpose wastes two addresses, which matters in tight address plans.