VLSM Calculator
Enter a base network and host requirements — get optimally sized VLSM subnets, largest first
Base Network
Subnet Requirements
Sorted largest-first automatically (VLSM)
How VLSM works
Variable Length Subnet Masking allows you to divide an address space into subnets of different sizes, rather than splitting everything into equal-sized blocks. The rule is: always allocate the largest subnet first.
- Sort your requirements from most hosts needed to fewest.
- Find the smallest prefix that accommodates the host count (2^n − 2 ≥ hosts).
- Assign that block starting at the next available address.
- Move the pointer to the address after that block's broadcast, then repeat.
VLSM is tested directly on the CCNA 200-301 exam — expect a scenario question that gives you a /24 or /23 and asks you to allocate efficiently for several departments with different host counts.
Embed this vlsm calculator on your site
Teaching networking? Add the vlsm calculator to your course page, blog or study-group site for free. It works on any page that accepts HTML, has no ads or cookie banner, and stays up to date. Please keep the credit line under it.
<iframe src="https://courseiva.com/embed/vlsm-calculator" width="100%" height="760" style="border:0;border-radius:12px" title="VLSM calculator by Courseiva" loading="lazy"></iframe>
<p style="font-size:13px">VLSM calculator by <a href="https://courseiva.com/labs/vlsm-calculator">Courseiva</a></p>Want to see it first? Open the embed version.