Skip to main content
Fully client-side · IPv4 + IPv6

CIDR / subnet calculator.

Convert any CIDR notation into the network address, broadcast, usable host range, host count, netmask, and wildcard mask. Calculation runs in your browser — nothing is sent to our servers.

Network
192.168.1.0/24
Address family
IPv4
Netmask
255.255.255.0
Wildcard mask
0.0.0.255
First host
192.168.1.1
Last host
192.168.1.254
Broadcast
192.168.1.255
Usable hosts
254 (of 256 total)

What is CIDR?

CIDR — Classless Inter-Domain Routing — is the notation we use to describe a contiguous range of IP addresses. 10.0.0.0/24 means "the 256 addresses starting at 10.0.0.0," because the /24 says the first 24 bits are the network and the remaining 8 are host space.

How to read the results

  • Network address — the first address in the block. By convention, this isn't assignable to a host on classful IPv4 segments.
  • Broadcast address (IPv4 only) — the last address. Also not assignable to a host; sending to it reaches every device on the segment.
  • First/Last host — the range you can actually hand out to devices.
  • Netmask — the same prefix length expressed as a dotted-quad mask. /24 is 255.255.255.0.
  • Wildcard mask — the bitwise inverse of the netmask. Cisco ACLs use it.
  • Usable hosts — total addresses minus 2 (network + broadcast) for IPv4 on /30 and shorter. /31 point-to-point links use both endpoints (RFC 3021). /32 is a single host. IPv6 has no broadcast, so every address in a prefix is usable.

Common subnet sizes

PrefixMaskUsable hostsTypical use
/30255.255.255.2522Point-to-point WAN link
/29255.255.255.2486Small office segment
/28255.255.255.24014Small LAN
/24255.255.255.0254Standard home/office subnet
/22255.255.252.01022Mid-size office
/16255.255.0.065,534Large enterprise
/8255.0.0.016,777,214Legacy "Class A" allocations