Ready now
IP / CIDR / Subnet Calculator
Preparing controls…
About this tool
What IP / CIDR / Subnet Calculator does
Calculate an IPv4 network address, broadcast address, netmask, host range, and host counts from CIDR notation.
Calculate an IPv4 network, broadcast address, subnet and wildcard masks, host range and address counts from an address/prefix pair. All calculations are arithmetic; no network lookup is performed.
Inspect a conventional /24
Input or settings
192.168.1.42/24
Expected result
Network: 192.168.1.0/24 Broadcast: 192.168.1.255 Subnet mask: 255.255.255.0 First usable host: 192.168.1.1 Last usable host: 192.168.1.254 Total addresses: 256 Usable hosts: 254
How to use it
- Enter an IPv4 address followed by / and a prefix from 0 through 32.
- Choose Calculate subnet and compare the network and host-range labels.
- Use the /31 or /32 rules only when they match your network design.
Common uses
- Check the address range represented by an IPv4 firewall rule.
- Compare a conventional subnet with a point-to-point or single-host prefix.
Important limitations
- IPv4 only; IPv6 input is rejected.
- For /31 both addresses are treated as usable for point-to-point links; /32 represents one address. The displayed broadcast arithmetic is not a separate usable broadcast endpoint for those cases.
Frequently asked questions
Why does /31 have two usable addresses?
This tool applies point-to-point semantics, so both addresses are usable instead of subtracting network and broadcast addresses.
What does /32 represent?
One host address: network, first host and last host are the same, and the usable-host count is one.