VLSM Calculator (Variable Length Subnet Masking)
Split one IPv4 block into variable-size subnets from the number of hosts each one needs. The largest subnets are placed first, and each gets its…
Split one IPv4 block into variable-size subnets from the number of hosts each one needs. The largest subnets are placed first, and each gets its network, host range, broadcast and prefix.
Results
About This Calculator
Enter the block you were given and the number of hosts each subnet needs. Each subnet gets the smallest power-of-two size that holds its hosts plus the network and broadcast addresses. A 2-host point-to-point link becomes a /30.
Subnets are allocated largest first so every one starts on a correct boundary with no overlaps.
Example
Example: 192.168.10.0/24 split for 100, 50, 20 and 2 hosts uses 228 addresses and leaves 28 free.
Assumptions
Each subnet reserves the network and broadcast addresses, so you get size − 2 usable hosts. /31 point-to-point links (RFC 3021) aren't used. Leave room for growth by asking for more hosts than you need today.
Frequently Asked Questions
What is VLSM?
Variable Length Subnet Masking: using different prefix lengths inside one block so each subnet is only as large as it needs to be.
Why sort largest first?
Big subnets need big boundaries. Placing them first means smaller ones fill the gaps without overlapping.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile