VLSM (Variable Length Subnet Mask) Calculator
Enter a base network and a list of required host counts to get optimally allocated VLSM subnets with no wasted address space.
VLSM Configuration
Must use the network address, not a host address.
Enter the number of usable hosts needed per subnet.
Configure the base network and subnet requirements, then click Calculate.
Allocation Summary
Base Network
Total Addresses
Remaining Free
Address utilization
Unallocated Address Space
Copied!
Summary
Enter a base network and a list of required host counts to get optimally allocated VLSM subnets with no wasted address space.
How it works
- Enter the base network in CIDR notation (e.g. 192.168.10.0/24).
- Add one or more subnet requirements, each with a label and the number of hosts needed.
- Click "Calculate Subnets" to run the VLSM algorithm.
- The tool sorts requirements largest-first to minimize wasted space.
- Each subnet gets the smallest prefix that satisfies the host count (accounting for network and broadcast addresses).
- Results show the network address, mask, broadcast, first/last usable host, and remaining address space.
Use cases
- Design enterprise network layouts with departments of different sizes.
- Allocate cloud VPC subnets for dev, staging, and production environments.
- Prepare CCNA and network engineering exam practice problems.
- Split a /24 block into web, app, database, and management subnets.
- Minimize address waste when allocating ISP-assigned blocks.
- Document and verify existing VLSM network designs.
- Plan point-to-point WAN links with /30 or /31 subnets alongside larger LAN blocks.
- Audit IP address utilization efficiency across a multi-site organization.
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu