Skip to content
Engyna

IP Subnet Calculator

Work out network, broadcast, host range and masks for any IPv4 CIDR, split networks and read IPv6 prefixes.

How to use the IP Subnet Calculator

  1. 1Enter an IP address with a prefix like 192.168.1.10/24, a netmask like 10.0.0.1 255.255.0.0, or an IPv6 address like 2001:db8::1/64.
  2. 2Read the network, broadcast, host range, masks and address type, or change the prefix in the list.
  3. 3To plan subnets, enter how many subnets you need or how many hosts each one must hold, and copy the list.

About IP Subnet Calculator

The IP Subnet Calculator works out everything about an IPv4 network from an address and its prefix length or dotted netmask: network address, broadcast address, first and last usable host, number of usable hosts, total addresses, subnet mask, wildcard mask, address class, hex and integer form and the reverse DNS name. A binary view shows each address and the mask bit by bit, with the network part highlighted. The address type tells you whether an IP is private (RFC 1918), public, loopback, link-local, carrier-grade NAT, multicast or reserved for documentation. /31 point-to-point links and /32 host routes are handled as RFC 3021 describes.

The split function divides a network into smaller subnets, either by the number of subnets you need or by the number of hosts each subnet must hold, and lists every subnet with its host range and broadcast address. IPv6 is supported with BigInt precision: enter any address and prefix to get the network, the last address, the number of addresses and /64 networks, the fully expanded and RFC 5952 compressed forms, the address type such as global unicast, unique local or link-local, and the ip6.arpa reverse name.

Network engineers, system administrators and students use the CIDR calculator to plan VLANs and cloud VPCs, write firewall rules and access lists with wildcard masks, check whether two hosts share a subnet, and practice subnetting for CCNA and other certification exams.

Frequently asked questions

How do I calculate the number of hosts in a subnet?

Take 2 to the power of the host bits (32 minus the prefix) and subtract 2 for the network and broadcast addresses. A /24 has 2^8 − 2 = 254 usable hosts, a /26 has 62. A /31 is a special case with 2 usable addresses for point-to-point links.

What is the difference between a netmask and a wildcard mask?

The wildcard mask is the inverse of the netmask: every 1 bit becomes 0 and the other way round. 255.255.255.0 becomes 0.0.0.255. Cisco access lists and OSPF use wildcard masks; interfaces and most other systems use netmasks.

Which IP address ranges are private?

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks. They are not routed on the internet. 100.64.0.0/10 is shared address space for carrier-grade NAT, and in IPv6 fc00::/7 holds unique local addresses.

What does CIDR notation like /24 mean?

The number after the slash is the prefix length: how many leading bits of the address identify the network. /24 means the first 24 bits are the network and the last 8 bits number the hosts, which equals the netmask 255.255.255.0.

Why is /64 the standard IPv6 subnet?

IPv6 address autoconfiguration (SLAAC) builds the host part from 64 bits, so LAN segments use /64. Sites usually get a /48 or /56 from their provider, which holds 65,536 or 256 of these /64 networks.