IPv4 Subnet Calculator
Enter an IP address with a prefix or mask to get the network, broadcast, host range, usable hosts, wildcard and a colour-coded binary view — and split the network into smaller subnets.
How to use the IPv4 Subnet Calculator
- Type an address like 192.168.1.10/24 or 10.0.0.5 255.255.255.0.
- Read the network, broadcast, host range and usable hosts instantly.
- Use Split this network to divide it into smaller subnets.
Quick facts
- /24 = 255.255.255.0 = 254 usable hosts.
- /30 gives 2 usable hosts — common for router-to-router links; /31 is allowed for point-to-point links.
- Private ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
Frequently asked questions
How do I calculate a subnet?
Enter the IP address and prefix, e.g. 192.168.1.10/24. The network address, broadcast and host range are calculated instantly.
How many hosts are in a /24?
256 addresses, of which 254 can be used by devices.
What is a wildcard mask?
The inverse of the subnet mask, used in Cisco ACLs and OSPF. /24 has the wildcard 0.0.0.255.
Why are two addresses not usable?
The first address is the network address and the last is the broadcast address.
Can I split a network into smaller subnets?
Yes. Choose a longer prefix under Split this network to list every subnet.
Is anything sent to a server?
No. All calculations run in your browser on your own device.
Worked example: 192.168.10.77/26
| Result | Value |
|---|---|
| Subnet mask | 255.255.255.192 |
| Wildcard mask | 0.0.0.63 |
| Network address | 192.168.10.64 |
| First usable host | 192.168.10.65 |
| Last usable host | 192.168.10.126 |
| Broadcast address | 192.168.10.127 |
| Usable hosts | 62 |
A /26 leaves 6 bits for hosts, so each subnet has 64 addresses. Subnets start at multiples of 64: .0, .64, .128 and .192. Address .77 falls in the second one.
Common prefixes at a glance
| Prefix | Mask | Usable hosts | Typical use |
|---|---|---|---|
| /24 | 255.255.255.0 | 254 | Home or small office network |
| /26 | 255.255.255.192 | 62 | A floor or a VLAN |
| /29 | 255.255.255.248 | 6 | A small block of public IPs from a provider |
| /30 | 255.255.255.252 | 2 | A link between two routers |
| /31 | 255.255.255.254 | 2 (RFC 3021) | Point-to-point links on modern equipment |
Why hosts are always two fewer
In each subnet the first address names the network and the last one is the broadcast, so neither can be given to a device. The exceptions are /31, where both addresses are usable on point-to-point links, and /32, a single host. Wildcard masks are the mask turned inside out; Cisco access lists and OSPF use them.