Subnet Calculator

Work out the network address, subnet mask, broadcast address and usable host range of any IPv4 or IPv6 network. Results update as you type.

Common IPv4 subnet sizes

CIDR Subnet mask Wildcard Total addresses Usable hosts
/16255.255.0.00.0.255.25565,53665,534
/22255.255.252.00.0.3.2551,0241,022
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011

Notes

  • An IPv4 network reserves its first address as the network identifier and its last as the broadcast address, so a /24 holds 256 addresses but only 254 usable hosts.
  • /31 is the exception: RFC 3021 allows both of its addresses to be used on point-to-point links. A /32 is a single host route.
  • IPv6 has no broadcast address and does not reserve the first or last address of a prefix, so every address in the block is usable.
  • If the address you enter is not the network address, it is masked down to one. Entering 10.1.2.200/24 gives you the 10.1.2.0/24 block.

Other IP tools