About this tool
Subnet Calculator takes an IPv4 address in CIDR notation, such as 192.168.1.0/24, and shows eight values: netmask, wildcard mask, network address with prefix, broadcast address, first and last usable host, total addresses and usable hosts. Results update as you type.
The address must be four decimal numbers from 0 to 255 followed by a slash and a prefix from 0 to 32. If you enter a host address with bits outside the prefix (for example 192.168.1.77/24), it is masked down to the network address, so you get the same answer as for 192.168.1.0/24. For ordinary subnets the usable count is the total minus the network and broadcast addresses. The two smallest sizes follow RFC 3021: a /31 has two usable addresses and no broadcast, and a /32 is a single host, so the broadcast cell shows a dash.
This is IPv4 only; IPv6 prefixes are not accepted. Invalid text shows an error and no results. Everything is computed locally in your browser, which makes it safe for internal addressing plans.