IPv4 subnet planner
Plan an IPv4 subnet from an address and CIDR prefix, including its network and host range. Enter your values below to see the result and method.
inputs.
Related calculators and articles
Compare methods and explore more free tools in computer science.
How to use the IPv4 subnet planner
Plan an IPv4 subnet from an address and CIDR prefix, including its network and host range. Use the free tool above without creating an account.
What it calculates
Plan an IPv4 subnet from an address and CIDR prefix, including its network and host range. The output reflects the input definitions and conventions used by the formula, so keep formats and units consistent when comparing scenarios.
Inputs and units
Enter IP address and CIDR prefix. Review the labels and example values before calculating.
- IP address: enter a value in the unit shown; the browser checks the accepted format and range.
- CIDR prefix: enter a value in the unit shown; the browser checks the accepted format and range.
Formula and method
network = IP AND mask; broadcast = network + host bits set
The calculator applies this relationship directly and keeps intermediate values unrounded for the displayed estimate.
Worked example
For 192.168.10.37/24, the mask is 255.255.255.0, the network is 192.168.10.0, and the conventional usable range is .1 through .254.
How to interpret the result
Use the result to answer the specific sizing, encoding, performance, or representation question stated on this page. It is conditional on the chosen inputs; change one input at a time to see how the estimate responds.
Assumptions and limitations
The tool accepts dotted IPv4 addresses and prefixes from /0 to /32. For /31 and /32, it reports the address block without subtracting network and broadcast addresses from the host count.
Frequently asked questions
How does a prefix determine the IPv4 subnet?
A /p prefix marks p of the 32 address bits as the network portion. The network address is the entered address bitwise-ANDed with that prefix mask; /31 and /32 have special host-count conventions.
Which formula does it use?
network = IP AND mask; broadcast = network + host bits set The guide above explains the input conventions and a worked example.
What should I check before relying on the result?
The tool accepts dotted IPv4 addresses and prefixes from /0 to /32. For /31 and /32, it reports the address block without subtracting network and broadcast addresses from the host count. Confirm that the units, widths, and system conventions match your use case.
How do I use the IPv4 subnet planner?
Enter IP address, CIDR prefix. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of IPv4 subnet planner?
For 192.168.10.37/24, the mask is 255.255.255.0, the network is 192.168.10.0, and the conventional usable range is .1 through .254.
Read the calculation methodology and privacy policy.