Add to Chrome Add to Edge

IP Subnet Calculator

Work out the network, broadcast address, mask and usable host range for any subnet.


IP Subnet Calculator

IP Subnet Calculator works out everything about a subnet from an IP address and its mask. For IPv4 it gives the network and broadcast addresses, the subnet mask and wildcard mask, the CIDR prefix, the first and last usable host, the number of hosts, the network class, and the binary form of each address. For IPv6 it shows the expanded and compressed address, the network prefix, the subnet ID, the interface ID and the address type.

How to use the subnet calculator

  1. Choose IPv4 or IPv6.
  2. Enter an IP address and its mask, either as CIDR (/24) or, for IPv4, as a subnet mask (255.255.255.0).
  3. Click the button and read the results.

A quick example

For 192.168.10.37/24: the network address is 192.168.10.0, the broadcast address is 192.168.10.255, usable hosts run from 192.168.10.1 to 192.168.10.254 (254 hosts), the mask is 255.255.255.0 and the wildcard mask is 0.0.0.255.

Common IPv4 subnet sizes

  • /30 (255.255.255.252): 2 usable hosts. Point-to-point links.
  • /29 (255.255.255.248): 6 usable hosts. Small server blocks.
  • /27 (255.255.255.224): 30 usable hosts.
  • /24 (255.255.255.0): 254 usable hosts. The typical home or office network.
  • /16 (255.255.0.0): 65,534 usable hosts.

In IPv6, a single LAN is almost always a /64, and providers usually give customers a /48 or /56 to split into many /64 networks.

When it comes in handy

  • Planning address ranges for an office, a VLAN or a cloud VPC.
  • Writing firewall rules and access lists that need the network and wildcard mask.
  • Studying for networking certifications such as CompTIA Network+ or CCNA.
  • Checking whether two addresses are on the same subnet.

Frequently asked questions

Why are there two fewer usable hosts than addresses?
In IPv4, the first address of a subnet identifies the network and the last one is the broadcast address, so neither can be given to a device. A /31 used on point-to-point links is the exception.
What is a wildcard mask?
The inverse of the subnet mask (0.0.0.255 for 255.255.255.0). Cisco access lists and OSPF use it to say which bits must match.
What does CIDR mean?
Classless Inter-Domain Routing: writing the mask as the number of network bits, such as /24, instead of a dotted mask. It replaced the old class A, B and C system, which the calculator still shows for reference.
Is 10.0.0.0/8 a public network?
No. 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private ranges used inside homes and companies; see our guide to public vs private IP addresses.

Related guides

Choose which cookies SEOpeck may use. You can change this at any time from "Cookie settings" at the bottom of every page.

Your tools

    Saved in this browser only. Nothing is sent to us.

    Popular tools