What is this calculator?
Find the network, broadcast and address counts for an IPv4 subnet.
What can you use it for?
Use it for practical planning, conversions, measurement or checking the result described here. Find the network, broadcast and address counts for an IPv4 subnet.
How to use it
- Enter ipv4 address.
- Enter cidr prefix length.
- Select Calculate (or Generate for random tools).
- Read the answer and any additional results below the form. Check the units and the limits of the method.
Formula and method
Broadcast = network OR inverted mask
The CIDR prefix determines the number of host bits. /31 and /32 have special address-count semantics.
Worked example
IPv4 address: 192.168.1.10, CIDR prefix length: 24. The result is 192.168.1.0/24 (network).
Assumptions and limits
IPv4 only. /31 uses point-to-point semantics and /32 is a single address.
Frequently asked questions
What inputs does the IP Subnet Calculator need?
Use ipv4 address, cidr prefix length. Read the answer and any additional results below the form. Check the units and the limits of the method.
What assumptions apply to the IP Subnet Calculator?
IPv4 only. /31 uses point-to-point semantics and /32 is a single address.