About this calculator
Useful for configuring routers, servers, firewalls and cloud networks.
How to use it
- Enter the IP address.
- Enter the prefix length.
- Read the subnet details.
The formula
Network = IP AND mask; broadcast = network OR wildcard; hosts = 232 − prefix − 2
- prefix
- number of network bits, such as /24
- wildcard
- inverse of the subnet mask
Worked example
192.168.10.37/24
- Network 192.168.10.0, broadcast 192.168.10.255.
- Usable hosts 192.168.10.1 to 192.168.10.254: 254 hosts.
- Mask 255.255.255.0, wildcard 0.0.0.255; class C, private.
What the result means
/31 and /32 are special: point-to-point links and single hosts.
Assumptions
- IPv4 only.
Limitations
- IPv6 subnets are not covered.
Frequently asked questions
How many hosts in a /24?
254 usable addresses.
What is a wildcard mask?
The inverse of the subnet mask, used in ACLs.
Is 192.168.x.x private?
Yes, it is a private range for local networks.
Last reviewed on 3 October 2026. Found a mistake? Tell us.

