Network calculator
Subnet Host Calculator
Calculate IPv4 subnet range, subnet mask, broadcast address, usable hosts, and public or private IP status from an IP address and CIDR prefix.
Formula
IPv4 subnet range
Modern point-to-point and cloud networks can treat /31 and /32 differently. Verify provider rules.
Addresses = 2^(32 - prefix); network = IP AND subnet mask; broadcast = network + addresses - 1
192.168.1.10/24 belongs to network 192.168.1.0/24 with usable range 192.168.1.1 to 192.168.1.254.
FAQs
Why subtract two addresses?+
Traditional IPv4 subnets reserve the network address and broadcast address. The calculator shows both so the host range is clear.
What are private IP ranges?+
Private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. They are used inside local networks and are not globally routed on the public internet.
Can I paste CIDR notation?+
Yes. Enter an address such as 192.168.1.10/24, or enter the IP address and CIDR prefix in separate fields.
What about /31 and /32?+
The calculator treats /31 as 2 usable point-to-point addresses and /32 as one single host route.
How does the Subnet Host Calculator calculate the result?+
It uses the IPv4 subnet range: Addresses = 2^(32 - prefix); network = IP AND subnet mask; broadcast = network + addresses - 1. 192.168.1.10/24 belongs to network 192.168.1.0/24 with usable range 192.168.1.1 to 192.168.1.254.
What information do I need to use the Subnet Host Calculator?+
Calculate IPv4 subnet range, subnet mask, broadcast address, usable hosts, and public or private IP status from an IP address and CIDR prefix.
Network guide
How to use the Subnet Host Calculator
Calculate IPv4 subnet range, subnet mask, broadcast address, usable hosts, and public or private IP status from an IP address and CIDR prefix. The page also explains the iPv4 subnet range and shows a practical example: 192.168.1.10/24 belongs to network 192.168.1.0/24 with usable range 192.168.1.1 to 192.168.1.254.
- 1
Enter your details
Enter an IP address and CIDR prefix, then complete any other fields shown in the calculator.
- 2
Check the calculation
Review the result alongside the iPv4 subnet range: Addresses = 2^(32 - prefix); network = IP AND subnet mask; broadcast = network + addresses - 1.
- 3
Compare scenarios
Change one or more inputs to see how they affect the subnet Host Calculator result before you use the estimate.
Was this calculator useful?
0/1200