Subnet Calculator
Free IPv4 and IPv6 subnet calculator. Enter an IP with a CIDR prefix or subnet mask to get the network and broadcast address, usable host range, and wildcard mask.
Try
/
Addressing
- Network address
- 192.168.1.0
- Broadcast address
- 192.168.1.255
- Usable host range
- 192.168.1.1 – 192.168.1.254
- CIDR notation
- 192.168.1.0/24
Masks
- Subnet mask
- 255.255.255.0
- Wildcard mask
- 0.0.0.255
- Binary mask
- 11111111.11111111.11111111.00000000
Capacity
- Total addresses
- 256
- Usable hosts
- 254
- IP class
- C
Trusted by 20,000+ organizations for over two decades.
CIDR to subnet mask cheat sheet
The prefixes you reach for most — plus the full /0–/32 table when you need it.
Most-used subnets
| CIDR | Subnet mask | Wildcard mask | Total addresses | Usable hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
Show the full /0–/32 table
| CIDR | Subnet mask | Wildcard mask | Total addresses | Usable hosts |
|---|---|---|---|---|
| /0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,296 | 4,294,967,294 |
| /1 | 128.0.0.0 | 127.255.255.255 | 2,147,483,648 | 2,147,483,646 |
| /2 | 192.0.0.0 | 63.255.255.255 | 1,073,741,824 | 1,073,741,822 |
| /3 | 224.0.0.0 | 31.255.255.255 | 536,870,912 | 536,870,910 |
| /4 | 240.0.0.0 | 15.255.255.255 | 268,435,456 | 268,435,454 |
| /5 | 248.0.0.0 | 7.255.255.255 | 134,217,728 | 134,217,726 |
| /6 | 252.0.0.0 | 3.255.255.255 | 67,108,864 | 67,108,862 |
| /7 | 254.0.0.0 | 1.255.255.255 | 33,554,432 | 33,554,430 |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
What is a subnet?A subnet is a smaller network carved out of a larger one. Splitting an IP range into subnets keeps traffic organized, tightens security, and makes separate networks routable to each other — for example, across a site-to-site VPN. Each subnet has a network address at the start, a broadcast address at the end, and the usable host addresses in between.
How subnet calculation worksThe subnet mask decides where the network ends and the hosts begin. Apply it to an IP address to get the network address; switch the host bits on and you get the broadcast address. A /24 — mask 255.255.255.0 — holds 256 addresses and 254 usable hosts, like 192.168.1.1 through 192.168.1.254.
CIDR notation explainedCIDR notation packs an address and its prefix into one value, like 10.0.0.0/8. The number after the slash counts the 1-bits in the mask, so /24 is 255.255.255.0 and /16 is 255.255.0.0. It replaced the rigid Class A/B/C system with allocation you can size to fit. Our subnet mask cheat sheet maps every prefix from /0 to /32.
Subnet mask vs wildcard maskA subnet mask marks the network part of an address with 1-bits. A wildcard mask is its mirror image — its 1-bits mark the parts that can change. For a /24, the subnet mask is 255.255.255.0 and the wildcard mask is 0.0.0.255. You'll see wildcard masks in firewall rules and router access lists.
Take your subnet plan into production
Designing a network? CloudConnexa routes traffic between your sites, clouds, and remote users — even when IP subnets overlap — with no servers to host or maintain.Trusted by network teams worldwide
Jason K.REPAYEasy to configure options, add users, and that it has two factor authentication built in. You can configure the system to allow connections on common ports so that you're able to connect from pretty much anywhere in the world.
Johnathan B.Surry TelephoneConfiguring and updating my own server is super simple. In my experience, I've always had some difficulty setting up hardware VPN appliances, but OpenVPN was no-nonsense.
Alex H.DGDeanThe OpenVPN Access Server AMI is a great out of the box VPN solution for your AWS VPC...
John G.Anovys, LLCOpenVPN offers users a very simple and secure VPN option that is both economical and quick to install. Users are able to easily install it on their client devices.
Jeremy F.Intelligent PathwaysThe availability of client software for all operating systems and mobile devices means my customers can connect regardless of their setup.
Josh Wc.nexgen|packaging, LLCExcellent, flexible solution for our Azure environment.
Backed by enterprise-grade security

Keep exploring
Overlapping subnets, no renumbering
See how CloudConnexa connects sites that share the same IP range — fully managed.
Learn moreZero-trust network access
Segment your network and enforce access policies down to the subnet level.
Learn moreFull-mesh site-to-site networking
Connect every site to every other site — no hub bottleneck, routes managed for you.
Learn more