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.
FormulaAddresses = 2^(32 - prefix); network = IP AND subnet mask; broadcast = network + addresses - 1
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.
FAQ8 common questions for this calculator.
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?+
For the Subnet Host Calculator, 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?+
For the Subnet Host Calculator, enter an IP address and CIDR prefix. Keep the units consistent with the calculator fields and compare your setup with the worked example on the page.
How accurate is the Subnet Host Calculator?+
Subnet Host Calculator is accurate for the data sizes, rates, and network settings entered. It applies the IPv4 subnet range. Real transfers can vary with congestion, protocol overhead, retries, and server limits.
What should I check before using the Subnet Host Calculator result?+
For the Subnet Host Calculator, check an IP address and CIDR prefix, bits versus bytes, decimal versus binary prefixes, protocol overhead, and the actual connection path. Real transfer times can differ from ideal calculations.
RelatedNearby network calculators for the next step after Subnet Host Calculator.
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.