Subnet Calculator

Calculate IPv4 and IPv6 subnet details from CIDR notation — network, broadcast, mask, host range, and subnet division.

How to calculate a subnet

  1. Enter an address in CIDR notation, such as 192.168.1.0/24 or 2001:db8::/48.
  2. Read the network and broadcast addresses, the subnet and wildcard masks, the usable host range, and the number of hosts.
  3. Check the binary view to see which bits belong to the network and which to hosts.
  4. Use the division table to split the network into smaller subnets.

IPv4 and IPv6, with context

Besides the math, the calculator identifies what kind of range you're looking at: RFC 1918 private ranges, loopback, link-local, carrier-grade NAT (100.64.0.0/10), documentation ranges, and multicast for IPv4, and unique local, link-local, and global unicast for IPv6. IPv6 addresses are shown both compressed and fully expanded, and large IPv6 ranges are sized exactly.

Frequently asked questions

How many usable hosts are in a /24?

254. A /24 has 256 addresses, and the first (network) and last (broadcast) are reserved. A /31 is a special case used for point-to-point links, where both addresses are usable.

What is a wildcard mask?

The inverse of the subnet mask, so 0.0.0.255 for a /24. Cisco access lists and OSPF use it to match address ranges.

Is anything sent to a server?

No. All calculations happen in your browser, so internal network plans stay private. To read a DNS zone, use the DNS Zone File Inspector.

Related tools

More in Network Tools · All 73 tools