IPNetwork calculator

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.

Direct answer/24 = 255.255.255.0

A /24 contains 256 total addresses and normally 254 usable hosts. Its wildcard mask is 0.0.0.255.

Free foreverPrivate inputsInstant results
Live calculator

Enter your values

Browser-based
Network range192.168.1.0/24

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.

Common IPv4 subnet masks, wildcard masks, and host counts
CIDRSubnet maskWildcard maskTotal addressesUsable hosts
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122 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.255

192.168.1.0 with this wildcard covers 192.168.1.0 through 192.168.1.255.

/26 network match

0.0.0.63

192.168.1.64 with this wildcard covers 192.168.1.64 through 192.168.1.127.

/30 network match

0.0.0.3

10.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. 1. Convert /26 to a subnet mask

    Twenty-six network bits produce 255.255.255.192.

  2. 2. Find the block size

    256 − 192 = 64, so the last-octet subnet boundaries are 0, 64, 128, and 192.

  3. 3. Locate the IP address

    The final octet 77 falls inside the 64–127 block.

  4. 4. Identify network and broadcast

    The network address is 192.168.10.64 and the broadcast address is 192.168.10.127.

  5. 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.

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.

/24 subnet mask/24 subnet cheat sheet/25 CIDRwildcard mask calculator

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

Guide 06

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 08

CIDR 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 ↗