SUBNET CALCULATOR
Subnet calculator, CIDR maths, instantly.
Enter an IPv4 address and CIDR prefix to get the network address, broadcast address, host count and subnet mask. Runs locally in your browser.
Input
Results
■ Network prefix bits · ■ Host bits
The entered address is within this subnet’s host range.
Complete CIDR prefix reference
Select any prefix to apply it; all prefixes from /0 through /32 are included.
| CIDR | Subnet mask | Usable hosts |
|---|---|---|
| 0.0.0.0 | 4,294,967,294 | |
| 128.0.0.0 | 2,147,483,646 | |
| 192.0.0.0 | 1,073,741,822 | |
| 224.0.0.0 | 536,870,910 | |
| 240.0.0.0 | 268,435,454 | |
| 248.0.0.0 | 134,217,726 | |
| 252.0.0.0 | 67,108,862 | |
| 254.0.0.0 | 33,554,430 | |
| 255.0.0.0 | 16,777,214 | |
| 255.128.0.0 | 8,388,606 | |
| 255.192.0.0 | 4,194,302 | |
| 255.224.0.0 | 2,097,150 | |
| 255.240.0.0 | 1,048,574 | |
| 255.248.0.0 | 524,286 | |
| 255.252.0.0 | 262,142 | |
| 255.254.0.0 | 131,070 | |
| 255.255.0.0 | 65,534 | |
| 255.255.128.0 | 32,766 | |
| 255.255.192.0 | 16,382 | |
| 255.255.224.0 | 8,190 | |
| 255.255.240.0 | 4,094 | |
| 255.255.248.0 | 2,046 | |
| 255.255.252.0 | 1,022 | |
| 255.255.254.0 | 510 | |
| 255.255.255.0 | 254 | |
| 255.255.255.128 | 126 | |
| 255.255.255.192 | 62 | |
| 255.255.255.224 | 30 | |
| 255.255.255.240 | 14 | |
| 255.255.255.248 | 6 | |
| 255.255.255.252 | 2 | |
| 255.255.255.254 | 2 | |
| 255.255.255.255 | 1 |
Split the current network
Enter how many subnets you need. The tool chooses the smallest power-of-two allocation and lists each subnet range.
Most tools process data locally; see this page for details
What can this tool do?
Enter an IPv4 address and prefix separately, or paste a value such as 192.168.1.10/24. Results include network boundaries, subnet and wildcard masks, address counts, usable ranges, and a visual network/host-bit breakdown. The reference covers every prefix from /0 to /32; select one to apply it. You can also split the current network into a requested number of equal-size subnets. Everything runs locally.
FAQ
Why is the usable host count lower than the total?
Ordinary IPv4 subnets usually exclude the network and broadcast addresses. A /31 point-to-point link uses both endpoints under RFC 3021, while a /32 host route contains one address, so neither uses the usual minus-two rule.
What does the number after the slash mean?
It is the network prefix length, i.e. how many leading bits belong to the network. A /24 gives subnet mask 255.255.255.0.
How are usable addresses counted for /31 and /32?
A /31 is commonly used on point-to-point links, where both addresses are endpoints. A /32 is a single-address host route. Neither subtracts network and broadcast addresses as ordinary subnets do.
Why can the allocated subnet count exceed my request?
Equal-size subnets are allocated in powers of two. For example, five requested subnets need capacity for eight. This tool shows only the first five and reports the unused capacity; all subnet boundaries remain CIDR-aligned.