IPv4 Subnet Calculator
Enter an IPv4 address with a prefix length such as /24 or a subnet mask. The tool gives the network details, usable host count and range, and can split the network into smaller subnets.
Use the tool
Loading the tool…
About IPv4 Subnet Calculator
Work out the network details for an IPv4 address and its prefix or mask, such as 192.168.1.10/24. You can also split the network into smaller subnets.
Worked example
Enter 192.168.1.10/24. The tool shows the network address, the range of usable hosts and the broadcast address.
Limits
The calculator follows standard IPv4 rules. Check the subnet plan against your own network design before you use it.
How to use IPv4 Subnet Calculator
- Type an address with a prefix or mask, such as 192.168.1.10/24.
- Optionally enter a longer prefix to split the network into smaller subnets.
- Read the results and use Copy the result.
Good to know
- A /31 has two addresses and no broadcast, and a /32 is a single address. The usual rule of two reserved addresses applies to /30 and larger networks.
- Subnet masks must be a run of 1 bits followed by 0 bits. Masks like 255.0.255.0 are rejected.
- The address type is read from the address you enter and uses the special-use ranges published by IANA.
- The class shown (A to E) is the old classful label, which modern networks no longer use.
Frequently asked questions
What is the wildcard mask?
It is the subnet mask with every bit flipped. Some router access lists use it.
Does it support IPv6?
Not yet. This tool works with IPv4 addresses only.
Is anything I type saved or sent?
No. The work happens in your browser on this page, and nothing is stored or sent to us.