Subnet Calculator
- Free forever
- No sign-up
- Runs in your browser
Calculate the network, masks, broadcast and host range for any IPv4 subnet.
About Subnet Calculator
Works out everything about one IPv4 subnet from an address and prefix: network address, subnet mask, wildcard mask, broadcast, first and last usable host, and the number of usable and total addresses. It also names the address type, such as private, loopback or carrier-grade NAT, and its old class. Network engineers and students use it for planning, exam practice and checking router settings.
How to use Subnet Calculator
- Enter an IPv4 address, such as 192.168.1.10, or type it with a prefix like 192.168.1.10/24.
- Pick the Subnet (prefix) from the list, which shows each /prefix next to its subnet mask.
- Click Calculate, or press Enter; changing the prefix updates the result straight away.
- Read the network address, subnet mask, wildcard mask, broadcast, first and last usable host, and host count.
How your data is handled
All the calculations happen in your browser, on your device. The IP addresses and prefixes you type aren't sent to any server and aren't stored.
Limits and accuracy
- It handles one subnet at a time and doesn't split a network into smaller subnets for you.
- IPv4 only; use the IPv6 Calculator or CIDR Calculator for IPv6 prefixes.
- The class shown is the old classful label, for reference only; modern networks use prefixes instead.
Questions and answers
How many usable hosts are in a /24?
A /24 has 256 addresses and 254 usable hosts, because the first is the network address and the last is the broadcast. A /31 and a /32 are special: they have 2 and 1 usable addresses and no broadcast.
What is a wildcard mask?
It's the subnet mask turned inside out, so 255.255.255.0 becomes 0.0.0.255. Cisco access lists and OSPF use wildcard masks to say which bits of an address can vary.
Does the subnet calculator support IPv6?
This one is for IPv4 only, and it runs in your browser. For IPv6 prefixes use the IPv6 Calculator, or the CIDR Calculator, which handles both.
Can it split a network into smaller subnets?
Not automatically. Choose a longer prefix, for example /26 instead of /24, to see the size of each smaller subnet, then work through the network addresses one by one. The CIDR Calculator can turn any range into the fewest blocks.
Do I need to sign up?
No. Subnet Calculator is free with no sign-up, no login and no daily limit, and there's nothing to install. It works on a phone as well as a PC.
Does it show the wildcard mask and the usable hosts?
Yes: network address, broadcast, first and last usable host, subnet mask, wildcard mask, number of hosts and the CIDR notation, for any prefix from /0 to /32.