Subnet calculator
Break an address range into its network, mask, host range and smaller subnets.
About Subnet Calculator
Type an 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. The tool shows the network and broadcast addresses, the first and last usable host, the mask and wildcard, the number of hosts and a binary view. IPv6 prefixes work too. Enter a longer prefix in the split box to cut the range into equal smaller subnets. All the maths runs in your browser and nothing is sent anywhere.
- Planning how to divide a network into subnets.
- Checking which hosts fit in a given range.
- Converting between a mask and a prefix length.
- Reading the binary form to understand a mask.
How to use Subnet Calculator
Step 1
Enter an address with a prefix like /24 or a dotted mask.
Step 2
Read the network, host range and counts, and the binary view.
Step 3
Optionally type a longer prefix to split the range into subnets.
Good to know
- Everything is calculated in your browser. Nothing is uploaded.
- A /31 has two usable addresses and a /32 has one, following the rule for point-to-point links in RFC 3021. All other ranges lose the network and broadcast addresses.
- IPv6 has no broadcast address, and at most 256 subnets are listed when you split a large range.
Common questions
What is a wildcard mask?
It is the mask turned inside out, with ones where the address may vary. Some router access lists use it.
How many usable hosts are in a /24?
254. The range has 256 addresses, and the first and last are the network and broadcast addresses.
Can I type a wildcard mask?
Yes. If the mask is zeros followed by ones, such as 0.0.0.255, the tool reads it as a wildcard and converts it.