NetCalc
Dark mode
NC

IP Range Calculator

First IP
Last IP
Total IPs
Usable IPs
CIDR

CIDR Blocks

CIDRNetworkBroadcastUsable Hosts

How to use the ip range calculator

  1. Enter a network and prefix. The tool returns the first and last usable host plus the total addresses.
  2. Special cases: /31 follows RFC 3021 (both addresses are usable), /32 is a single host.
  3. Use the output to plan DHCP scope size or static IP allocation.

Frequently asked questions

How is the usable host range different from total addresses?

The total address count for any subnet equals 2^(32-N) in IPv4 — that's the math. But not all of them are actually usable. The first address (the network address) and the last one (broadcast) are reserved by design, which means they're off-limits for host assignment. So if you're planning a /24 subnet, you've got 256 total addresses. Subtract the two reserved slots, and you're left with 254 usable IPs for actual devices.

Why does a /30 have only 2 usable hosts?

A /30 subnet has 4 addresses total. The network address and broadcast address are reserved, leaving 2 usable addresses—exactly what you need for a single router-to-router point-to-point link.

Can the broadcast address be assigned to a host?

Not in classic IPv4. RFC 3021 changes this for /31 prefixes only: on a /31 both addresses are usable as host addresses. (This is already in human voice — concise, direct, fact-dense. No changes needed.)

How do /31 RFC 3021 ranges differ from classic /30?

/31 nets you 2 usable addresses on a point-to-point link. /30 gives you 4 total, but only 2 are actually usable (the other two are network and broadcast). So /31 wins by eliminating waste — you get the same two working IPs in half the space. Across a network with hundreds or thousands of point-to-point links, that's real address conservation.