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.

CIDR required, /0 through /32. Host bits are normalized and the change is shown.

Whole number 0–500. Rounded up per LAN; fixed /31 and /32 entries are unchanged.

Choose the addressing policy for each row. LANs reserve two addresses and use /30 or larger. A point-to-point /31 needs exactly 2 endpoints; a host route /32 needs exactly 1 address. Neither has a directed broadcast.

Paste requirements in bulk

One row per line: Office,60,lan, Router link,2,p2p, or Loopback,1,host. Tabs also work. A bare host count or Office:60 defaults to LAN. Up to 100 rows, 60 characters per name. Names in this format cannot contain commas, tabs, or colons; no quoted CSV.

Ready to allocate. The sample requirements below can be changed freely.

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.