Zero Signup ToolsFree browser tools

Developer Tools

VLSM Subnet Calculator

Divide an IPv4 block into right-sized subnets from a list of host counts. VLSM allocation, largest first, with network, mask, range, and free space.

The supernet you are dividing. Subnets are packed from the start of this block, largest first.

Quick samples

Subnets to fit

List each subnet and the number of hosts it must support. Use 2 for a point-to-point link.

Allocation (5 subnets)

Subnets are listed largest first, in the order they are placed in the parent block.

Staff LAN

172.16.0.0/23

510 usable

Subnet mask

255.255.254.0

Network

172.16.0.0

Broadcast

172.16.1.255

Usable range

172.16.0.1 - 172.16.1.254

Wildcard

0.0.1.255

Hosts

needs 500, has 510

10 spare

Student LAN

172.16.2.0/24

254 usable

Subnet mask

255.255.255.0

Network

172.16.2.0

Broadcast

172.16.2.255

Usable range

172.16.2.1 - 172.16.2.254

Wildcard

0.0.0.255

Hosts

needs 200, has 254

54 spare

Wi-Fi guest

172.16.3.0/25

126 usable

Subnet mask

255.255.255.128

Network

172.16.3.0

Broadcast

172.16.3.127

Usable range

172.16.3.1 - 172.16.3.126

Wildcard

0.0.0.127

Hosts

needs 100, has 126

26 spare

Servers

172.16.3.128/26

62 usable

Subnet mask

255.255.255.192

Network

172.16.3.128

Broadcast

172.16.3.191

Usable range

172.16.3.129 - 172.16.3.190

Wildcard

0.0.0.63

Hosts

needs 60, has 62

2 spare

Core link

172.16.3.192/31

2 usable

Subnet mask

255.255.255.254

Address range

172.16.3.192 - 172.16.3.193

Type

/31 point-to-point

Hosts

needs 2, has 2

Exact fit with no spare host addresses

Block utilization

Parent size

1,024

Total addresses

Allocated

962

93.9% of the block

Free

62

Addresses still available

Hosts requested

862

Across all subnets

Used93.9%

Free space

172.16.3.194 - 172.16.3.25562 addresses, largest aligned block 172.16.3.194/31

How VLSM allocation works

  • Each subnet is rounded up to the smallest power-of-two block that holds its hosts plus the network and broadcast addresses. A request for 50 hosts becomes a /26 (64 addresses, 62 usable).
  • Blocks are placed largest first. This packs them tightly and keeps every subnet aligned to its own size, which is required for a valid route and avoids the gaps that fixed-length subnetting leaves behind.
  • A request for 2 hosts produces a /31 point-to-point link (RFC 3021, both addresses usable, no broadcast), and a request for 1 host produces a /32 host route.
  • If the subnets together need more addresses than the parent block holds, the tool reports the shortfall so you can pick a larger supernet or trim a requirement.

How to use

  1. Enter the parent block you are dividing in CIDR notation, for example 172.16.0.0/22, or load one of the quick samples to see a full plan.
  2. List each subnet you need with the number of hosts it must support. Use 2 for a point-to-point link and 1 for a single host route.
  3. Add or remove rows as needed. Empty rows are ignored, so you can leave spare rows in place while you plan.
  4. Read the allocation: each subnet is shown largest first with its CIDR, mask, network, usable range, broadcast, and wildcard, packed in order from the start of the parent block.
  5. Check the utilization panel for how much of the block is used and what free space is left, then copy the full plan as text for your documentation.

About this tool

VLSM Subnet Calculator turns a single IPv4 block into a complete address plan. Variable Length Subnet Masking is the practice of carving one parent network into subnets of different sizes so each one is just big enough for the hosts it carries, instead of splitting a block into equal pieces and wasting the space that fixed-length subnetting leaves behind. You give the tool a parent block in CIDR notation, such as 172.16.0.0/22, and a list of the subnets you need with the number of hosts each must support, and it works out the rest. The defining step is the order of allocation. Each requirement is first rounded up to the smallest power-of-two block that holds its hosts plus the two addresses every normal subnet reserves for the network and broadcast, so a request for 500 hosts becomes a /23 with 510 usable, a request for 200 becomes a /24 with 254 usable, and a request for 60 becomes a /26 with 62 usable. The blocks are then sorted from largest to smallest and packed contiguously from the start of the parent, which is what makes a VLSM plan valid: a block of a given size always lands on a boundary that is a multiple of its own size, so every subnet is correctly aligned and there are no gaps left by mismatched alignment. Two host counts are handled specially because real networks use them constantly. A request for two hosts produces a /31 point-to-point link under RFC 3021, where both addresses are usable and there is no broadcast, the modern way to number a router-to-router link without burning a /30. A request for a single host produces a /32 host route. For every allocated subnet the tool reports the CIDR, the dotted-decimal subnet mask, the network address, the usable host range, the broadcast address, the wildcard mask used in router ACLs, the number of usable hosts, and how many spare host addresses are left over so you can see at a glance whether a subnet is a tight fit or has room to grow. A utilization panel sums it all up: how many of the parent block's addresses the plan consumes, the percentage used, and the exact range of any free space that remains, tagged with the largest aligned block that would fit there if you need to hand it out later. If the requirements together ask for more addresses than the parent block can hold, the tool does not silently overflow; it reports the shortfall and the total each side needs so you can choose a larger supernet or trim a requirement. This is the calculation network engineers do when sizing VLANs and DHCP scopes, that students work through for the CCNA and CompTIA Network+ exams, and that anyone designing an address scheme reaches for when a flat equal-split would waste half the block. It is deliberately different from a plain subnet calculator, which describes one subnet you already have. This one designs many subnets you do not have yet from a parent block and a set of host counts. Everything runs in your browser on plain integer math. The blocks, names, and host counts you enter, including production network plans, never leave your device and no lookups are made.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsDeveloper Tools