CIDR calculator

Calculate an IPv4 network, mask, and host count.

Added 2026-10-31

What it does

CIDR calculator reads one IPv4 network. You can write 192.168.1.10/24, or an address with a contiguous dotted mask. A mask with holes is rejected. The page shows the address, prefix, network, netmask, wildcard, broadcast, first address, last address, and host count. The host count is the size of the prefix, so /24 is 256 and /0 is 4294967296. Hosts are not listed. For a normal prefix, first and last skip the network and broadcast addresses. /31 keeps both addresses, because both are usable. /32 is the single address. IPv6 is not calculated. The text is not looked up on the network and is not uploaded.

How to use it

  1. Paste an IPv4 address and a prefix, such as 192.168.1.10/24.
  2. A dotted mask is accepted only when the one-bits are contiguous.
  3. Read the range. The page does not list every host.

Common mistakes

  • /31 uses both addresses. The host count is 2. First is the network address and last is the other address. Neither is reserved.
  • The host count is the prefix size. /24 reports 256, not 254. First and last still skip the network and broadcast addresses. The page does not print every host.

The calculation stays in this tab. The address is not looked up.

Related tools