By Debmedia Technologies LLP · Kolkata, India · Updated
What Is an IP Subnet Calculator?
An IP subnet calculator works out the details of an IPv4 network from an address and a prefix length or subnet mask. It tells you the network address, the broadcast address, the first and last usable host and how many hosts fit. Network engineers use these numbers daily to plan addresses and write firewall and routing rules.
Doing the binary maths by hand is slow and easy to get wrong. This calculator gives the answer at once and can also split a network into smaller subnets.
How to Use This IP Subnet Calculator
- Enter an IPv4 address with a prefix, such as 192.168.1.10/24, or with a mask, such as 192.168.1.10 255.255.255.0.
- Optionally enter a larger prefix in the split box to divide the network into subnets.
- Press Calculate.
- Read the subnet details and, if you asked for a split, the list of smaller subnets.
Common Prefix Lengths
| CIDR | Subnet mask | Usable hosts |
|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 |
| /16 | 255.255.0.0 | 65,534 |
| /24 | 255.255.255.0 | 254 |
| /26 | 255.255.255.192 | 62 |
| /28 | 255.255.255.240 | 14 |
| /30 | 255.255.255.252 | 2 |
| /32 | 255.255.255.255 | 1 (a single host) |
Classless addressing and the prefix notation are described in RFC 4632, classless inter-domain routing.
Terms Explained
- Network address: the first address of the block. It names the subnet and is not given to a host.
- Broadcast address: the last address. A packet sent to it reaches every host in the subnet.
- Usable hosts: the addresses between the two, which is total addresses minus two.
- Wildcard mask: the inverse of the subnet mask, used in router access lists.
- Address type: whether the block is private, loopback, link-local or public.
Two special cases exist. A /31 has two usable addresses for point-to-point links, and a /32 is a single host.
Planning Subnets
To divide a network, pick a larger prefix. A /24 split into /26 gives four subnets of 62 hosts each. Always leave room to grow: choose subnets that are about twice as large as your current need. For the IPv6 side of planning, see the IPv6 prefix calculator, and to see an address as a number use the IP to number converter. You can also check who owns a public block with the WHOIS owner lookup.
Quick Rules of Thumb
Each extra prefix bit halves the number of addresses, so a /25 holds half a /24. Add 1 to the last octet of the mask to know the block size: a mask ending in 192 means blocks of 64. These shortcuts help you check the calculator’s answer in your head during planning meetings.
Frequently Asked Questions
Disclaimer: results come from live requests and can change as records and servers change. We cannot guarantee that every answer matches what every visitor sees.