IPv4 Subnet Calculator
Calculate the network address, broadcast address, and usable host range from an IPv4 address and CIDR or subnet mask, instantly in your browser. Plan subnets, convert between CIDR and dotted-decimal notation, or verify a cloud VPC block before provisioning.
Network address: 192.168.1.0
Broadcast address: 192.168.1.255
Subnet mask: 255.255.255.0 (/24)
Wildcard mask: 0.0.0.255
First usable address: 192.168.1.1
Last usable address: 192.168.1.254
Usable host count: 254
Usage examples
Planning subnets before splitting up a network
When dividing a large network into smaller subnets, work out each subnet's network and broadcast addresses ahead of time.
Checking a router's or server's IP configuration
Given a setting written as 192.168.1.100/24, instantly see how many usable IP addresses that actually covers.
Converting between CIDR and dotted-decimal notation
Enter either a CIDR value like /24 or a dotted mask like 255.255.255.0 and see the same result either way.
Sizing a subnet for a specific number of devices
Need room for 50 IoT sensors on one segment? Try 10.0.0.0/26 and check the usable host count to confirm the prefix leaves enough addresses before you commit to it in your network plan.
Verifying a cloud VPC or subnet CIDR block before provisioning
Before creating a subnet in a cloud console, enter the CIDR block you're about to assign (e.g. 10.0.4.0/22) to double-check its exact address range doesn't overlap with an existing subnet.
Quick reference
| CIDR | Subnet mask | Wildcard mask | Usable host count |
|---|---|---|---|
| /32 | 255.255.255.255 | 0.0.0.0 | 1 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 |
| /30 | 255.255.255.252 | 0.0.0.3 | 2 |
| /29 | 255.255.255.248 | 0.0.0.7 | 6 |
| /28 | 255.255.255.240 | 0.0.0.15 | 14 |
| /27 | 255.255.255.224 | 0.0.0.31 | 30 |
| /26 | 255.255.255.192 | 0.0.0.63 | 62 |
| /25 | 255.255.255.128 | 0.0.0.127 | 126 |
| /24 | 255.255.255.0 | 0.0.0.255 | 254 |
| /23 | 255.255.254.0 | 0.0.1.255 | 510 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,022 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,046 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,094 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,190 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,382 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,766 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,534 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,070 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,142 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,286 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,574 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,150 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,302 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,606 |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,214 |
| /7 | 254.0.0.0 | 1.255.255.255 | 33,554,430 |
| /6 | 252.0.0.0 | 3.255.255.255 | 67,108,862 |
| /5 | 248.0.0.0 | 7.255.255.255 | 134,217,726 |
| /4 | 240.0.0.0 | 15.255.255.255 | 268,435,454 |
| /3 | 224.0.0.0 | 31.255.255.255 | 536,870,910 |
| /2 | 192.0.0.0 | 63.255.255.255 | 1,073,741,822 |
| /1 | 128.0.0.0 | 127.255.255.255 | 2,147,483,646 |
| /0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,294 |
Frequently asked questions
Is my IP address sent to a server?
No. All calculation happens entirely in your browser, and what you enter is never sent to a server.
Why do /31 and /32 subnets calculate host counts differently?
A typical subnet excludes the network and broadcast addresses when counting hosts. But /32 is a single address with just one host, and /31 is a special case for point-to-point links (RFC 3021) where both addresses are usable, so these two are calculated separately.
Should I enter the subnet mask as CIDR or dotted notation?
Both work. You can type '24' or '/24', or '255.255.255.0' — it's detected automatically.
What is the wildcard mask used for?
The wildcard mask is the inverse of the subnet mask, and it's commonly used in router access control lists (ACLs) and OSPF configuration to specify an address range.
Why is the usable host count always 2 less than the total addresses in the block?
For any prefix of /30 or shorter, the first address in the block is reserved as the network address and the last is reserved as the broadcast address, so neither can be assigned to a device. A /24 has 256 total addresses but only 254 are usable for that reason.
What do the private IP ranges mean, and does this tool flag them?
RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 for private networks — addresses in these ranges are never routed on the public internet. This tool calculates subnet math for any valid IPv4 address, whether public or private, but doesn't currently flag or label which range an address falls into.
Does entering a host address instead of a network address change the result?
No. You can enter any address that falls within the subnet, like 192.168.1.100/24 rather than 192.168.1.0/24 — the tool masks it down to the correct network address automatically, so the broadcast address and usable range come out the same either way.