IPv4 Subnet Calculator
Enter a network in CIDR notation, optionally add a deeper prefix to split it into equal‑sized subnets.
Enter a network in CIDR notation, optionally add a deeper prefix to split it into equal‑sized subnets.
Enter a CIDR block
Type any valid IPv4 address with a prefix length into the first field — for example 192.168.1.0/24 or 10.0.0.0/8. The address before the slash does not need to be the exact network address; the calculator will derive it automatically.
Optionally split into subnets (the second field)
Enter a new prefix length larger than the base prefix to divide the network into equal-sized subnets. For example, entering 28 against a /24 base will produce 16 subnets of /28. Leave this field blank if you only need the base subnet info.
Read your results
Click Calculate to see the network address, broadcast address, subnet mask, wildcard mask, usable host range, and total host count. If you used the split field, the full list of subnets appears below in a scrollable panel.
Subnetting is the process of dividing a single IP network into smaller, logically isolated sub-networks. Each subnet has its own network address, broadcast address, and a range of usable host addresses. Network administrators use subnetting to improve performance by reducing broadcast traffic, enforce security boundaries between departments or services, and allocate IP address space efficiently without waste.
IPv4 addresses are 32-bit numbers written in dotted-decimal notation — four groups of 0–255 separated by dots. A subnet mask (or its shorthand, CIDR prefix notation like /24) defines which bits of the address identify the network and which identify individual hosts. The prefix number is simply a count of the leading network bits: a /24 fixes 24 bits for the network, leaving 8 bits for hosts — giving 256 total addresses and 254 usable ones.
Common use cases include designing corporate LAN segments, configuring cloud VPCs in AWS or Azure, writing firewall ACL rules, setting up home VLANs, and studying for networking certifications like CCNA or CompTIA Network+. Our full subnetting guide covers the topic from first principles if you'd like to dig deeper.
The most commonly used subnet sizes and their usable host counts.
| CIDR | Subnet Mask | Total Addresses | Usable Hosts | Wildcard Mask |
|---|---|---|---|---|
| /16 | 255.255.0.0 | 65,536 | 65,534 | 0.0.255.255 |
| /20 | 255.255.240.0 | 4,096 | 4,094 | 0.0.15.255 |
| /22 | 255.255.252.0 | 1,024 | 1,022 | 0.0.3.255 |
| /24 | 255.255.255.0 | 256 | 254 | 0.0.0.255 |
| /25 | 255.255.255.128 | 128 | 126 | 0.0.0.127 |
| /26 | 255.255.255.192 | 64 | 62 | 0.0.0.63 |
| /27 | 255.255.255.224 | 32 | 30 | 0.0.0.31 |
| /28 | 255.255.255.240 | 16 | 14 | 0.0.0.15 |
| /29 | 255.255.255.248 | 8 | 6 | 0.0.0.7 |
| /30 | 255.255.255.252 | 4 | 2 | 0.0.0.3 |
| /32 | 255.255.255.255 | 1 | 0 (host route) | 0.0.0.0 |
Usable hosts = 2(32 − prefix) − 2. A /30 is commonly used for point-to-point router links; a /32 represents a single host route.
📖 Subnetting Guide
Learn how subnetting works from scratch — binary math, CIDR, VLSM, wildcard masks, and common mistakes explained with worked examples.
❓ FAQ
Quick answers to the most common subnetting questions — what /24 means, how to count hosts, private IP ranges, wildcard masks, and more.