IP MANAGE

Free VLSM calculator

VLSM Calculator

VLSM (variable-length subnet masking) gives every subnet the size it needs instead of one size for all. Enter your block and how many devices each subnet needs. The calculator sorts them from largest to smallest and gives each the first free, correctly aligned block, so nothing overlaps and the free space stays in one piece at the end.

Allocate subnets

IPv4 /8 to /32 or IPv6 /16 to /64.
One per line: a name and a number, such as “Sales: 50”. The name is optional.

VLSM plan for 192.168.1.0/24

This is an example result. Enter your own block and subnets above and press Calculate.

Subnets placed
5 of 5
Addresses allocated
228 of 256 (89%)
Efficiency
80.6% of the allocated usable addresses are needed
Free ranges left
3

The block from its first to its last address. Green is allocated, grey is free.

SubnetDevicesAllocatedUsable rangeMaskUsableEfficiency
Engineering100192.168.1.0/25192.168.1.1 – 192.168.1.126255.255.255.12812679.3%
Sales50192.168.1.128/26192.168.1.129 – 192.168.1.190255.255.255.1926280.6%
Guest25192.168.1.192/27192.168.1.193 – 192.168.1.222255.255.255.2243083.3%
Link A2192.168.1.224/31192.168.1.224 – 192.168.1.225255.255.255.2542100%
Link B2192.168.1.226/31192.168.1.226 – 192.168.1.227255.255.255.2542100%

Free ranges left

192.168.1.228/30 192.168.1.232/29 192.168.1.240/28

Keep planning 192.168.1.0/24 in the subnet planner

How VLSM allocation works

  1. Count the devices. Add room for the network and broadcast address: 50 devices need 52 addresses.
  2. Round up to a power of two. 52 becomes 64, a /26 (62 usable hosts).
  3. Place the largest first. A big subnet must start on a multiple of its own size, so placing it first avoids gaps.
  4. Repeat in order of size, each at the lowest free address that fits.

The example above fits five subnets, from 100 hosts down to a pair of point-to-point links, into a single /24 with 28 addresses to spare. Efficiency is devices divided by usable addresses: the closer to 100%, the less address space you waste. A /31 uses two addresses for a link where an old /30 would use four.

Want names, shareable links and a CSV export, with free ranges you can add with one click? Use the subnet planner. For the address maths behind each row see the CIDR calculator.

Built and maintained by Bhavesh Vala. Last reviewed . Every calculation uses the same tested rules as the subnet planner, including /31, /32 and IPv6. About