What does this calculator do?
Allocate IPv4 subnets by descending host need without overlaps.
Formula
The calculator applies this deterministic formula or algorithm:
sort hosts ↓ → smallest fitting prefix → align → allocate sequentially
How to use it
Enter the labelled values, choose the required mode and review the primary and secondary outputs. Lists may be pasted with one value per line or separated by semicolons.
Worked example
Parent IPv4 CIDR 192.168.1.0/24; Required host counts 100;50;20 → Subnet allocations = #1 100 hosts: 192.168.1.0/25 | mask 255.255.255.128 | 192.168.1.1-192.168.1.126 | broadcast 192.168.1.127 | total 128 | usable 126 #2 50 hosts: 192.168.1.128/26 | mask 255.255.255.192 | 192.168.1.129-192.168.1.190 | broadcast 192.168.1.191 | total 64 | usable 62 #3 20 hosts: 192.168.1.192/27 | mask 255.255.255.224 | 192.168.1.193-192.168.1.222 | broadcast 192.168.1.223 | total 32 | usable 30.
Assumptions
Inputs use the units and timing shown in the labels. Optional values default to zero. Rounding is applied only to displayed results.
Limitations
This is a deterministic planning estimate from user-entered data. It does not use live prices, rates, product databases, legal rules or external APIs.
Common mistakes
Keep rates, periods and units consistent; verify that pasted series are in the intended order and use editable coverage or overhead assumptions appropriate to your case.
Frequently asked questions
What assumptions does the VLSM Calculator use?
Inputs use the units and timing shown in the labels. Optional values default to zero. Rounding is applied only to displayed results.
Does it send my inputs anywhere?
No. The calculation runs locally in your browser and uses no external calculation or lookup API.
Sources
- RFC 4632 — Classless Inter-Domain Routing (CIDR): the address-block, prefix-length and aggregation model used for every IPv4 subnet result on this page.
- RFC 3021 — Using 31-Bit Prefixes on IPv4 Point-to-Point Links: why a /31 has two usable addresses and no broadcast address, and why /32 is a single host.
- RFC 4291 — IP Version 6 Addressing Architecture: prefix and interface-identifier structure (IPv6 has no broadcast address). IPv6 output follows the canonical text form of RFC 5952.
- Reviewed: 2026-08-14
Related calculators
Last updated: 2026-08-14 · v1.0.0 · Report an error