IPv4 Subnet Calculator & CIDR Cheat Sheet
Enter an IPv4 address and CIDR prefix, then use the practical /24 to /31 cheat sheet to check masks, wildcard masks, addresses, and usable hosts.
A /24 contains 256 total addresses and normally 254 usable hosts. Its wildcard mask is 0.0.0.255.
Enter your values
254 usable hosts
- Subnet mask
- 255.255.255.0
- First host
- 192.168.1.1
- Last host
- 192.168.1.254
- Broadcast
- 192.168.1.255
- Total addresses
- 256
Nothing is uploaded. Results update locally as you type.
How it works
Transparent math, not a mystery result.
NetCalcKit uses standard decimal network units unless the page explicitly says otherwise. The calculator updates in your browser and labels ideal estimates separately from real-world conditions.
Quick reference
CIDR subnet cheat sheet: /24 to /31
Use this table to check the most common small IPv4 subnets. Traditional usable-host counts exclude the network and broadcast addresses; /31 is the point-to-point exception described in RFC 3021.
| CIDR | Subnet mask | Wildcard mask | Total addresses | Usable hosts |
|---|---|---|---|---|
| /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 on point-to-point links |
Inverse masks
What is a wildcard mask?
A wildcard mask is the bitwise inverse of a subnet mask. In access-control lists and routing configuration, a 0 bit means the corresponding address bit must match; a 1 bit means it may vary.
Calculate it one octet at a time by subtracting the subnet-mask octet from 255. A /24 mask of 255.255.255.0 becomes 0.0.0.255. A /26 mask of 255.255.255.192 becomes 0.0.0.63, and a /30 becomes 0.0.0.3.
/24 network match
0.0.0.255192.168.1.0 with this wildcard covers 192.168.1.0 through 192.168.1.255.
/26 network match
0.0.0.63192.168.1.64 with this wildcard covers 192.168.1.64 through 192.168.1.127.
/30 network match
0.0.0.310.0.0.8 with this wildcard covers the four-address block from 10.0.0.8 through 10.0.0.11.
Worked calculation
Calculate 192.168.10.77/26 step by step
A worked example makes the boundary logic easier to verify than memorising a table. For 192.168.10.77/26, only the final octet changes within the subnet.
1. Convert /26 to a subnet mask
Twenty-six network bits produce 255.255.255.192.
2. Find the block size
256 − 192 = 64, so the last-octet subnet boundaries are 0, 64, 128, and 192.
3. Locate the IP address
The final octet 77 falls inside the 64–127 block.
4. Identify network and broadcast
The network address is 192.168.10.64 and the broadcast address is 192.168.10.127.
5. Identify hosts and wildcard
Traditional usable hosts run from 192.168.10.65 through 192.168.10.126. The wildcard mask is 0.0.0.63.
Network planning
Where these subnet results are useful
Subnetting is practical address planning, not just certification math. Use the calculator to check a design before applying it, and confirm production changes against the platform documentation.
- Plan a /24 LAN with up to 254 traditional host addresses for clients, printers, phones, and infrastructure.
- Split a /24 into two /25 networks to separate departments, floors, or security zones.
- Use /28, /29, or /30 blocks where a small fixed number of addresses is needed.
- Use /31 on supported point-to-point links to avoid wasting network and broadcast addresses.
- Generate wildcard masks for router or firewall ACLs that use inverse-mask matching.
- Check DHCP scope boundaries so the pool stays inside the intended network and avoids reserved infrastructure addresses.
Before deployment
Common subnetting mistakes
A calculator prevents arithmetic slips, but the result still has to be applied correctly. These are the mistakes worth checking before changing a live network.
- Reading /24 as “24 hosts” instead of 24 network-prefix bits.
- Using the total address count as the traditional usable-host count without removing network and broadcast addresses.
- Entering a wildcard mask where the device expects a subnet mask, or the reverse.
- Assigning the network or broadcast address to a host on a traditional /30-or-larger subnet.
- Treating /31 like a traditional subnet instead of checking whether the point-to-point devices support RFC 3021.
- Forgetting that overlapping subnets can create routing ambiguity even when each individual mask is valid.
Continue with confidence
Related tools and practical guides
CIDR Subnet Mask Cheat Sheet
Review a wider CIDR reference with masks, address counts, and host counts.
Open page ↗IPv4 Subnetting Basics
Learn network, broadcast, host range, and prefix concepts from the beginning.
Open page ↗Bandwidth Sharing Calculator
Estimate a per-device share after the subnet size and user count are known.
Open page ↗Calculation methodology
See how NetCalcKit handles IPv4 validation, /31 point-to-point links, and /32 hosts.
Open page ↗All internet and network tools
Continue with speed, data, transfer-time, and network planning calculators.
Open page ↗What this tool answers
Calculate an IPv4 network and use the /24 to /31 cheat sheet for CIDR masks, wildcard masks, address counts, usable hosts, and broadcast ranges.
Common questions
Good to know.
What subnet mask does /24 use?+
A /24 uses 255.255.255.0. It contains 256 total IPv4 addresses and normally provides 254 usable host addresses.
What does /25 mean in CIDR?+
A /25 uses subnet mask 255.255.255.128. It splits a /24 into two 128-address networks, each with 126 traditional usable hosts.
What is the wildcard mask for a /24?+
The wildcard mask for /24 is 0.0.0.255. It is the inverse of subnet mask 255.255.255.0.
How do I calculate a wildcard mask?+
Subtract each subnet-mask octet from 255. For 255.255.255.192, the wildcard is 0.0.0.63.
Does a /31 subnet have usable addresses?+
On an RFC 3021 point-to-point link, both /31 addresses can be used because no separate network or broadcast address is required.
Understand the result
Helpful guides for this calculator
IPv4 Subnetting
Work through an IPv4 /26 subnet step by step. Find its mask, network, broadcast, usable hosts and wildcard, then check DHCP capacity and /31 exceptions.
11 min read · Read guide ↗Guide 08CIDR Subnet Mask Cheat Sheet
Look up IPv4 CIDR values from /0 to /32: subnet masks, wildcard masks, address counts and usable hosts, plus worked examples for real networks.
12 min read · Read guide ↗