IP Subnet Calculator
Calculate the network address, broadcast address, subnet mask, and usable host range from an IPv4 address and CIDR prefix.
About this calculator
Break down an IPv4 address and CIDR prefix into its network address, broadcast address, subnet mask, and usable host range.
Subnetting splits a larger network into smaller, self-contained segments. The CIDR prefix (the "/24" in 192.168.1.0/24) tells you how many of the address's 32 bits are fixed for the network portion — the remaining bits are available for host addresses. A /24 leaves 8 bits for hosts (256 addresses), while a /30 leaves only 2 bits (4 addresses), which is why smaller prefixes describe bigger networks and larger prefixes describe smaller ones. The first address in a subnet is always reserved as the network address and the last as the broadcast address, so usable hosts is always 2 less than the total address count (except for /31 and /32, which are special cases).
How to use
- Enter an IPv4 address, e.g. 192.168.1.10.
- Enter the CIDR prefix length (0-32), e.g. 24.
- Press Calculate to see the network address, broadcast address, subnet mask, wildcard mask, usable host range, and total/usable host counts.
Tips
- A /24 network gives you 254 usable host addresses — the most common size for a home or small office LAN.
Formula
Number of hosts = 2^(32 − prefix)
Usable hosts = 2^(32 − prefix) − 2 (for prefixes ≤ 30)