Inputs

Any host inside the subnet works.
/24 = 256 addrs. /16 = 65,536 addrs. /8 = 16M addrs.
Cheat sheet

/30 = 4 addrs (2 hosts) — point-to-point
/29 = 8 addrs (6 hosts)
/28 = 16 addrs (14 hosts)
/24 = 256 addrs (254 hosts) — class C
/16 = 65,536 addrs — class B
/8 = 16,777,216 addrs — class A

How subnetting actually works

Every IPv4 address is 32 bits. A subnet mask divides those 32 bits into two parts: the network portion (left side, fixed within the subnet) and the host portion (right side, varies per device). CIDR notation is shorthand for "how many of those bits are network."

The math, demystified

Take 192.168.1.50/24. The /24 says the first 24 bits are network — that's the first three octets, 192.168.1. The last 8 bits (.50) identify the specific host on that subnet.

Two specific addresses in every subnet are reserved:

  • Network address — all host bits are 0 (e.g. 192.168.1.0). This identifies the subnet itself; you can't assign it to a device.
  • Broadcast address — all host bits are 1 (e.g. 192.168.1.255). Sending here reaches every host on the subnet.

Everything in between is usable for hosts. So a /24 has 256 total addresses but only 254 usable host addresses.

Common subnet sizes you'll actually see

CIDRMaskTotalHostsTypical use
/30255.255.255.25242Point-to-point router links
/29255.255.255.24886Small server VLAN
/28255.255.255.2401614Office floor
/27255.255.255.2243230Mid-size department
/24255.255.255.0256254Standard home/small office
/16255.255.0.065,53665,534Large enterprise
RFC 3021 note

Modern routers allow both addresses in a /31 to be assigned for point-to-point links — useful when you're trying not to waste IPs on inter-router connections. The calculator handles this case.