IPv4 address planning
VLSM Calculator
Turn one parent network and a list of host requirements into an aligned subnet plan. Allocate the largest blocks first, see exactly what each subnet consumes, and keep the free space ready for your next allocation.
Define your network plan
Include gateways and other addressed interfaces in each host count. Network and broadcast reservations are added automatically for LANs.
| Subnet / input row | Host demand | Network / mask | Usable address range | Broadcast / wildcard | Addresses | Usable / spare | Reserved |
|---|
Free space as minimal CIDR blocks
Show the sizing and allocation working
How the plan is calculated
For a LAN, the tool applies growth and rounds up the host count, adds the network and broadcast addresses, then chooses the smallest power-of-two block that fits. For example, 50 hosts with 20% growth need 60 usable addresses: 60 + 2 fits in 64 addresses, or /26.
Why largest first?
Every CIDR block starts at a multiple of its size. Sorting the blocks from largest to smallest lets them pack consecutively from the normalized parent boundary without gaps. Input row numbers remain attached to their original requirements.
Free addresses and spare hosts differ
Free addresses are outside every allocated block. Spare hosts are unused capacity inside a subnet after its growth allowance. Reserved addresses are its network and broadcast addresses. The plan is returned only when all requirements fit.
Planning boundaries
This is a fresh IPv4 allocation with up to 100 subnets. It does not route traffic, detect existing allocations, choose gateways, or reserve cloud-provider addresses. Use a known free parent block and count all gateway, redundancy, and other interface addresses you need.
/31 is for compatible point-to-point links under RFC 3021; /32 identifies a single host route. The tool accepts all IPv4 prefixes for arithmetic, including /0. Arithmetic capacity does not imply that special-use or public addresses are assignable.
Primary references
Calculations run in this page. Your plan is not sent to a service or saved between visits. CSV and table exports prefix spreadsheet formula-like names with an apostrophe; JSON preserves names exactly.