HTTP & IP

CIDR / Subnet Calculator

Break down a CIDR block: network address, broadcast, usable IPs, subnet mask.

About Subnet Calculator

Breaks down a CIDR block into its network address, broadcast address, subnet mask, and the range and count of usable host addresses. Subnetting math is simple in principle but easy to get wrong under time pressure, and a single off-by-one error in a subnet plan can mean an unexpected address conflict discovered only after deployment. Works for both IPv4 and IPv6 CIDR notation, since IPv6 subnetting is easy to miscalculate by hand given the much larger address space.

Why usable host count is 2 less than the address count for IPv4: the first address is reserved as the network address, the last as broadcast — a /24 has 256 total addresses but only 254 usable hosts. IPv6 doesn't reserve a broadcast address the same way, a common point of confusion moving between the two.

📖 Read more in our Knowledge Base →

Common Subnets

/32 → 1 host
/31 → 2 hosts (p2p)
/30 → 2 usable
/29 → 6 usable
/28 → 14 usable
/27 → 30 usable
/26 → 62 usable
/25 → 126 usable
/24 → 254 usable
/23 → 510 usable
/22 → 1022 usable
/16 → 65534 usable
/8 → 16M usable

Related Tools

What CIDR notation means

In 192.168.10.0/24, the number after the slash is the prefix length: how many leading bits identify the network. The remaining bits identify hosts. An IPv4 address has 32 bits, so a /24 leaves 8 host bits — 28 = 256 addresses. Each step up in prefix length halves the block; each step down doubles it.

IPv4 subnet cheat sheet

PrefixSubnet maskAddressesUsable hosts
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422 (point-to-point, RFC 3021)
/32255.255.255.25511 (single host)

Subnetting tips

  • Blocks must start on their own boundary. A /26 can start at .0, .64, .128 or .192 — never at .50. If the calculator reports a different network address than the one you typed, your input was not aligned.
  • Plan from largest to smallest. Allocate the biggest subnets first so smaller ones fill the gaps without overlapping.
  • Leave headroom. Moving a live network to a bigger prefix later means renumbering; picking one size larger at the start is usually cheaper.
  • IPv6 is different. A LAN is normally a /64 regardless of host count, and there is no broadcast address.

Need to go the other way — from a start/end address pair to CIDR blocks? Use the IP range to CIDR converter.