Subnet Calculator
Work out any IPv4 network in seconds — enter an address or paste a CIDR and get the network and broadcast addresses, usable host range, subnet and wildcard masks. Advanced mode adds colored binary breakdowns, IP classification (private, public, CGNAT…), PTR records and a subnet splitter for planning. Free, instant, no signup.
254 usable hosts · 192.168.1.1 – 192.168.1.254
Results
Network address
Broadcast address
Usable host range
Subnet mask
Wildcard mask
Addresses
How to use the Subnet Calculator
- Enter an IP address — or paste a full CIDR like
10.0.0.0/8; the prefix moves into the selector automatically. - Pick the prefix — every option shows its dotted mask (
/24 — 255.255.255.0), so you never translate in your head. - Read the results instantly — network, broadcast, usable range, mask and wildcard. Click any value to copy it. Use ‹ › to step to the neighbouring subnet.
- Switch to Advanced for the binary breakdown with colored network/host bits, IP properties (class, hex, PTR record), and a subnet splitter that plans a block into equal smaller subnets.
What is a subnet and CIDR notation?
A subnet is a slice of IP address space that shares one network prefix. CIDR notation describes it as an address plus a prefix length — 192.168.1.0/24 means "the first 24 bits identify the network, the remaining 8 bits number the hosts". Those 8 host bits give 256 addresses, of which two are reserved: the lowest (the network address) and the highest (the broadcast address) — leaving 254 usable hosts.
Two edge cases are worth knowing. A /31 has no room for those two reserved addresses, so RFC 3021 allows both addresses to be used on point-to-point links. A /32 is a single host — the form you'll see in firewall rules and route tables.
Common subnet sizes cheat sheet
| CIDR | Subnet mask | Usable hosts | Typical use |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | Whole private 10.x space |
| /16 | 255.255.0.0 | 65,534 | Large site or VPC |
| /24 | 255.255.255.0 | 254 | The classic LAN |
| /26 | 255.255.255.192 | 62 | Department / VLAN |
| /28 | 255.255.255.240 | 14 | Small server segment |
| /30 | 255.255.255.252 | 2 | Router links (legacy) |
| /31 | 255.255.255.254 | 2 | Point-to-point (RFC 3021) |
| /32 | 255.255.255.255 | 1 | Single host / firewall rule |
Working with IPv6? The IPv6 subnet calculator does the 128-bit version — compression, prefix ranges and /48-to-/64 planning. Planning address space for real infrastructure? Pair the calculator with our What Is My IP tool to see your current address, and ping or port-check the hosts you carve out.
Frequently asked questions
What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation describes a network as an IP address plus a prefix length, for example 192.168.1.0/24. The prefix says how many leading bits identify the network; the remaining bits number the hosts inside it. A /24 leaves 8 host bits (256 addresses), a /16 leaves 16 (65,536 addresses). CIDR replaced the old class A/B/C system in 1993 and is how every modern router, firewall and cloud VPC describes address space.
How many usable hosts are in a /24 — and why minus 2?
A /24 has 8 host bits, giving 256 addresses, of which 254 are usable. Two are reserved in every ordinary subnet: the lowest address is the network address (identifies the subnet itself) and the highest is the broadcast address (reaches every host on the subnet). The same minus-2 rule applies from /1 through /30 — only /31 point-to-point links and /32 single hosts are exceptions.
What is the difference between the network address and the broadcast address?
The network address is the lowest address in a subnet (all host bits set to 0) — it names the subnet in routing tables and can't be assigned to a device. The broadcast address is the highest address (all host bits set to 1) — packets sent to it are delivered to every host in the subnet. Everything between the two is the usable host range.
What do /31 and /32 subnets mean?
A /31 contains just two addresses, with no room for separate network and broadcast addresses — RFC 3021 allows both to be used on point-to-point links between routers, which is why modern networks prefer /31 over the older /30 for router interconnects. A /32 is a single host address, the form you'll see in firewall rules, host routes and loopback interfaces.
What is a wildcard mask used for?
A wildcard mask is the bitwise inverse of the subnet mask: a /24 mask of 255.255.255.0 becomes the wildcard 0.0.0.255. Cisco IOS access-control lists and OSPF/EIGRP network statements use wildcard masks instead of subnet masks, so network engineers constantly convert between the two — this calculator shows both for every prefix.
Which IP ranges are private?
RFC 1918 reserves three ranges for private networks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Addresses in these ranges are never routed on the public internet. Related special ranges include 100.64.0.0/10 (carrier-grade NAT), 169.254.0.0/16 (link-local / APIPA) and 127.0.0.0/8 (loopback). The calculator badges every address you enter with its classification automatically.
Why does my cloud VPC show fewer usable hosts than this calculator?
Cloud providers reserve extra addresses in every subnet beyond the standard two. AWS reserves five per subnet (network, VPC router, DNS, one for future use, and broadcast), so a /24 gives 251 usable addresses instead of 254; Azure also reserves five, GCP four. This calculator shows standard IPv4 math — subtract your provider's extra reservations when sizing cloud subnets.
How do I divide a network into smaller subnets?
Each extra prefix bit doubles the number of subnets and halves their size: a /24 splits into two /25s of 126 hosts, four /26s of 62 hosts, or sixteen /28s of 14 hosts. Switch this calculator to Advanced mode and use the subnet splitter — pick a target prefix and it lists every resulting subnet with its network address, host range and broadcast, ready to paste into an IP plan.
Does this calculator support IPv6?
This page focuses on IPv4, where subnet math (usable hosts, broadcast addresses, minus-2 rules) has its own quirks. For IPv6 we have a dedicated IPv6 subnet calculator with 128-bit math: address compression and expansion, prefix ranges, exact address counts, ip6.arpa reverse DNS and /48-to-/64 planning. IPv6 subnetting genuinely differs — there are no broadcast addresses and virtually every LAN is a /64.
The subnet is planned — now watch what lives in it
WatchFor monitors the hosts and services behind these addresses — ping, TCP ports, HTTP, DNS and 20+ more check types from multiple regions, with confirmed alerts when something drops.
Free plan · 15 monitors · no credit card required