Subnet Calculator
Enter an IPv4 address with a prefix or mask and get the network, broadcast, first and last host, wildcard mask and host count. Split it into smaller subnets, or work out IPv6 prefixes.
How to calculate a subnet
Enter an address and prefix
Such as 192.168.1.10/24, or an address and mask.
Read the result
Every value has its own Copy button.
Split it if you wish
Enter a longer prefix to list the smaller subnets.
Worked example
This is what Subnet Calculator gives for its own sample values. Open the tool above and change anything to try your own.
Address with prefix or mask
192.168.1.10/24
- Split into subnets with this prefix (0 for none)
- 0
Result
- Network
- 192.168.1.0
- CIDR
- 192.168.1.0/24
- Subnet mask
- 255.255.255.0
- Wildcard mask
- 0.0.0.255
- Broadcast
- 192.168.1.255
- First host
- 192.168.1.1
- Last host
- 192.168.1.254
- Usable hosts
- 254
About Subnet Calculator
Get the network address, broadcast address, subnet and wildcard masks, first and last host and the number of usable hosts for an IPv4 network. You can split it into smaller subnets. IPv6 prefixes are supported too.
FAQs
How many hosts are in a /24?
256 addresses, of which 254 can be given to hosts, since the network and broadcast addresses are reserved.
What is a wildcard mask?
The inverse of the subnet mask, used in access lists on some routers.
Can I convert an address to a number?
Use IP Address Converter.