Network
Subnet Calculator
Calculate a subnet
Try:
192.168.1.0/24
254 usable hosts · Private (RFC 1918)
1
1
0
0
0
0
0
0
192
1
0
1
0
1
0
0
0
168
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
Network: 24 bitsHost: 8 bits
- Network
- 192.168.1.0/24
- Broadcast
- 192.168.1.255
- Usable range
- 192.168.1.1 – 192.168.1.254
- Usable hosts
- 254256 total, minus network and broadcast
- Netmask
- 255.255.255.0
- Wildcard mask
- 0.0.0.255
- Address type
- Private (RFC 1918)For internal networks; not routed on the internet.
- Class
- CHistorical; routing has used CIDR since 1993.
- Reverse DNS zone
- 1.168.192.in-addr.arpa
- Hex
- 0xC0A80100
- Integer
- 3232235776
Look up PTR records for this block with the PTR lookup.
Subnet tools
4 subnets of 62 usable hosts each.
| # | Subnet | Usable range | Broadcast |
|---|---|---|---|
| 1 | 192.168.1.0/26 | 192.168.1.1 – 192.168.1.62 | 192.168.1.63 |
| 2 | 192.168.1.64/26 | 192.168.1.65 – 192.168.1.126 | 192.168.1.127 |
| 3 | 192.168.1.128/26 | 192.168.1.129 – 192.168.1.190 | 192.168.1.191 |
| 4 | 192.168.1.192/26 | 192.168.1.193 – 192.168.1.254 | 192.168.1.255 |
IPv4 prefix reference
| Prefix | Netmask | Wildcard | Addresses | Usable hosts |
|---|---|---|---|---|
| 0.0.0.0 | 255.255.255.255 | 4,294,967,296 | 4,294,967,294 | |
| 128.0.0.0 | 127.255.255.255 | 2,147,483,648 | 2,147,483,646 | |
| 192.0.0.0 | 63.255.255.255 | 1,073,741,824 | 1,073,741,822 | |
| 224.0.0.0 | 31.255.255.255 | 536,870,912 | 536,870,910 | |
| 240.0.0.0 | 15.255.255.255 | 268,435,456 | 268,435,454 | |
| 248.0.0.0 | 7.255.255.255 | 134,217,728 | 134,217,726 | |
| 252.0.0.0 | 3.255.255.255 | 67,108,864 | 67,108,862 | |
| 254.0.0.0 | 1.255.255.255 | 33,554,432 | 33,554,430 | |
| 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 | |
| 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 | |
| 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 | |
| 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 | |
| 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 | |
| 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 | |
| 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 | |
| 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 | |
| 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 | |
| 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 | |
| 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 | |
| 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 | |
| 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 | |
| 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 | |
| 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 | |
| 255.255.254.0 | 0.0.1.255 | 512 | 510 | |
| 255.255.255.0 | 0.0.0.255 | 256 | 254 | |
| 255.255.255.128 | 0.0.0.127 | 128 | 126 | |
| 255.255.255.192 | 0.0.0.63 | 64 | 62 | |
| 255.255.255.224 | 0.0.0.31 | 32 | 30 | |
| 255.255.255.240 | 0.0.0.15 | 16 | 14 | |
| 255.255.255.248 | 0.0.0.7 | 8 | 6 | |
| 255.255.255.252 | 0.0.0.3 | 4 | 2 | |
| 255.255.255.254 | 0.0.0.1 | 2 | 2 | |
| 255.255.255.255 | 0.0.0.0 | 1 | 1 |
What a subnet is and how the prefix works
A subnet is a block of addresses that share the same leading bits. In CIDR notation, 192.168.1.0/24 means the first 24 bits identify the network and the remaining 8 bits number the hosts, giving 256 addresses.
In IPv4 the first address of a block is the network address and the last is the broadcast address, so a /24 has 254 usable hosts. IPv6 has no broadcast address, and a LAN is normally a /64. Move the prefix on the bit ruler above to see how each extra network bit halves the block.
CIDR prefix
/n: the number of network bits. Each step shorter doubles the block.
Netmask
The prefix written as an address, e.g. /24 = 255.255.255.0.
Wildcard mask
The inverted netmask used in Cisco ACLs and OSPF, e.g. 0.0.0.255.
How to use this tool
1
Enter a network
Type an address with a prefix, a netmask or a wildcard mask, a range, or an IPv6 block.
2
Adjust the prefix
Drag the slider or use − and + to grow or shrink the block. Results update as you go.
3
Read and copy the results
Copy any value, all of them, or a link that reopens this exact calculation.
4
Plan the address space
Split the block into equal subnets, or list your networks by host count and let the planner place them.
Related tools
6 tools
CIDR Aggregator
Merge a list of IPs, ranges and CIDR blocks into the fewest CIDRs, find duplicates and overlaps, and export nginx, Apache, iptables or nftables rules
WireGuard AllowedIPs Calculator
Route everything through WireGuard except your LAN, an IP or any subnet: subtracts CIDR ranges and returns the exact AllowedIPs line
Subnet Mask Cheat Sheet
Printable table of every CIDR prefix from /0 to /32 with subnet mask, wildcard, addresses and usable hosts, plus private ranges and IPv6 sizes
IP Location
Find geographical location, ISP, organization, and detailed information for any IP address
Public IP
Display your current public IP address, location, and network information
Port Checker
Check if specific ports are open on a server or IP address with connection testing
Frequently asked questions
6 Q&A
They express the same thing. CIDR writes the number of network bits (
/24); the netmask writes them as an address (255.255.255.0). This calculator accepts either, and a wildcard mask too.10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). Carrier-grade NAT uses 100.64.0.0/10, which is not private space either.In IPv4 the first identifies the network itself and the last is the broadcast address that reaches every host, so neither is given to a device. IPv6 has no broadcast, so every address can be used.
Yes. Enter a block like
2001:db8::/48 to see its range, size, address type and reverse DNS zone, and split it into /64s for your LANs.The
in-addr.arpa or ip6.arpa zone where PTR records for the block live. A block that doesn’t fall on an octet (IPv4) or hex-digit (IPv6) boundary spans several zones; an IPv4 block smaller than a /24 is delegated from its /24 using RFC 2317.