Tools Subnet calculator

Subnet calculator

Work out a network's range: first and last address, how many devices fit, the mask, and how to split it into smaller networks. IPv4 and IPv6.

How to read a network like 192.168.1.0/24

The number after the slash is how many bits of the address are fixed for the network. /24 fixes the first three parts, so the last part (0 to 255) is left for devices: 256 addresses, of which 254 can be used, because IPv4 keeps the first for the network itself and the last for broadcast.

Handy sizes

/304 addresses, 2 usable: a link between two routers
/298 addresses, 6 usable
/2732 addresses, 30 usable
/24256 addresses, 254 usable: a typical office or home network
/1665,536 addresses
/64IPv6: the standard size for one network

Private ranges

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are for private networks and never appear on the internet; that's why so many homes use 192.168.1.x. For IPv6 the private range is fc00::/7.

Questions people ask

Why are two addresses missing from the usable count?
In IPv4 the first address names the network and the last is the broadcast address. The exceptions are /31 (two addresses, both usable, for router links) and /32 (a single address). IPv6 has no broadcast, so every address counts.
Does this send anything over the internet?
No. It's arithmetic: nothing is looked up or contacted.