IP Subnet Calculator

Work out the network, broadcast, netmask, host range and size of any IPv4 or IPv6 subnet.

Free No sign-up By MegaHostZone · AS132563

How to use the subnet calculator

Enter an IP address with its prefix length or mask. Any of these formats work:

  • CIDR – 192.168.1.10/24 or 2001:db8:1234::/48
  • Netmask – 10.0.0.1 255.255.252.0
  • Wildcard mask – 10.0.0.1 0.0.3.255 (as used in Cisco ACLs)

The network address is the first address of the subnet and the broadcast address the last; in IPv4 the addresses in between are the usable hosts. A /31 is a special case for point-to-point links (RFC 3021) where both addresses are usable, and a /32 is a single host. IPv6 has no broadcast address, and a /64 is the standard size for a single LAN.

IPv4 CIDR quick reference

PrefixNetmaskAddressesUsable hosts
/32255.255.255.25511
/31255.255.255.25422
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/27255.255.255.2243230
/26255.255.255.1926462
/25255.255.255.128128126
/24255.255.255.0256254
/23255.255.254.0512510
/22255.255.252.01,0241,022
/21255.255.248.02,0482,046
/20255.255.240.04,0964,094
/19255.255.224.08,1928,190
/18255.255.192.016,38416,382
/17255.255.128.032,76832,766
/16255.255.0.065,53665,534
/15255.254.0.0131,072131,070
/14255.252.0.0262,144262,142
/13255.248.0.0524,288524,286
/12255.240.0.01,048,5761,048,574
/11255.224.0.02,097,1522,097,150
/10255.192.0.04,194,3044,194,302
/9255.128.0.08,388,6088,388,606
/8255.0.0.016,777,21616,777,214