IPv4 Subnet Calculator
Enter an IPv4 address with a prefix (like 192.168.1.10/24) or a mask, and get the network, broadcast, usable host range, wildcard and more. You can also split a network into smaller subnets.
How to use the ipv4 subnet calculator
- Type an address with a prefix, such as
10.0.0.0/16, or an address and a mask, such as172.16.5.4 255.255.240.0. - Read the results: network, first and last host, broadcast, usable hosts.
- Use Split into smaller subnets to plan your address space.
A /24 network has 256 addresses, 254 of them usable: the first is the network address and the last the broadcast address. Each step down in prefix doubles the size. /31 networks (2 hosts) are used for point-to-point links, and /32 is a single host. Private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
Frequently asked questions
What is CIDR notation?
It writes the network size as a prefix length after a slash. /24 means the first 24 bits identify the network, which equals the mask 255.255.255.0.
Why are two addresses not usable?
In a normal subnet the first address names the network and the last is the broadcast address, so neither can be given to a host.
What is a wildcard mask?
The inverse of the subnet mask. Routers and firewalls (for example Cisco access lists) use it to match ranges of addresses.
