VLSM Calculator

Allocate IPv4 subnets by descending host need without overlaps.

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.

Formula version1.0.0
Formulasort hosts ↓ → smallest fitting prefix → align → allocate sequentially

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

Related calculators

Last updated: 2026-08-14 · v1.0.0 · Report an error