Skip to content

IP Range Calculator

Read the inclusive range of a block, from the network address through the broadcast, and the tighter usable host range inside it. Firewall objects and IPAM exports usually want the inclusive pair. DHCP scopes usually want the usable pair.

CIDR prefix

CIDR prefix

1,022 usable hosts

10101100000100000000010100000100
/22
/8/16/24/32
Network bitsHost bits

Drag the line, or use the arrow keys. The result updates as it moves.

172.16.4.0/22

Private network (RFC 1918). The whole block shares this label.

Inclusive block

172.16.4.0 to 172.16.7.255

Usable host range

172.16.4.1 to 172.16.7.254

Network address

172.16.4.0

Broadcast address

172.16.7.255

Subnet mask

255.255.252.0

Total addresses

1,024

Usable hosts

1,022

First host

172.16.4.1

Last host

172.16.7.254

Wildcard mask

0.0.3.255

Historical class

B

On a conventional LAN the network and broadcast addresses are not hosts. Usable hosts are the addresses between them.

Historical class B describes the old classful split. Size the network with the CIDR prefix.

Binary

IP address
10101100.00010000.00000101.00000100
Subnet mask
11111111.11111111.11111100.00000000
Network address
10101100.00010000.00000100.00000000

Network and host bits

22 network bits10 host bits

network = address AND 255.255.252.0 = 172.16.4.0

broadcast = network OR 0.0.3.255 = 172.16.7.255

total = 2^10 = 1,024

usable = total - 2 = 1,022

Continue with this block in the range calculator, the wildcard mask, or the membership check.

Two ranges, on purpose

The inclusive block for 172.16.5.4/22 is 172.16.4.0 through 172.16.7.255. That is every address the prefix covers, including the network and broadcast.

The usable host range drops those two ends: 172.16.4.1 through 172.16.7.254. On a /31 those ends are not dropped, because both addresses are hosts.

Questions

No. The range starts at the network address of the prefix, which may be lower than the address you entered.

Use the network address with the wildcard mask, not a from-to host list, unless the ACL syntax asks for an inclusive range.

Sources

Reviewed 8 October 2026. The methodology page records what these labels do not cover.

Related tools