Enter an IPv4 address and prefix length (CIDR) to see the network it belongs to, the usable host range and the masks.
How to use this calculator
- Type an address, or address/prefix such as 10.0.4.17/22.
- Choose the prefix length if you did not type it.
- Read the network, broadcast, host range, masks and address type.
Formula
Usable hosts = 2^(32 − prefix) − 2Worked example
192.168.1.10/24 → network 192.168.1.0, broadcast 192.168.1.255, hosts .1–.254 (254 hosts).
Frequently asked questions
Why are two addresses not usable?
The first address names the network and the last is the broadcast. Point-to-point /31 links (RFC 3021) are the exception and use both.
What is a wildcard mask?
The inverse of the subnet mask, used by Cisco ACLs and OSPF.
Results are for learning and preliminary design. Check critical work against the relevant codes and a qualified engineer.