DevBolt

VLSM Subnet Calculator Online

Plan variable-length subnets by specifying host requirements for each segment. The calculator optimally divides your address space — all processing happens client-side.

← Back to tools

IP / CIDR Toolkit

Subnet calculator, VLSM divider, IP range converter, and IP address classifier — all in one toolkit.

Common Subnets

Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
CIDR Notation
192.168.1.0/24
First Usable Host
192.168.1.1
Last Usable Host
192.168.1.254
Total Addresses
256
Usable Hosts
254
IP Class
Class C
Range Type
Private (RFC 1918)
CIDR Reference Table
CIDRSubnet MaskAddressesUsable Hosts
/8255.0.0.016,777,21616,777,214
/9255.128.0.08,388,6088,388,606
/10255.192.0.04,194,3044,194,302
/11255.224.0.02,097,1522,097,150
/12255.240.0.01,048,5761,048,574
/13255.248.0.0524,288524,286
/14255.252.0.0262,144262,142
/15255.254.0.0131,072131,070
/16255.255.0.065,53665,534
/17255.255.128.032,76832,766
/18255.255.192.016,38416,382
/19255.255.224.08,1928,190
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

About Subnet Calculation

  • CIDR notation combines an IP address with a prefix length (e.g., 192.168.1.0/24).
  • The prefix length defines how many bits are the network portion — the rest are host bits.
  • Network address = all host bits set to 0. Broadcast = all host bits set to 1.
  • Usable hosts = total addresses minus network and broadcast (except /31 and /32 special cases).
  • Private ranges (RFC 1918): 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
  • Everything runs in your browser — no data is sent over the network.

What is VLSM?

VLSM (Variable Length Subnet Masking) allows different subnets within the same network to use different prefix lengths. Unlike fixed-length subnetting where every subnet is the same size, VLSM lets you allocate a /28 (14 hosts) for a small office and a /22 (1,022 hosts) for a data center floor — all from the same address block. This minimizes IP address waste.

Common use cases

Network architects use VLSM when designing enterprise networks with segments of varying sizes — server rooms, employee floors, IoT subnets, and point-to-point WAN links. CCNA and CCNP candidates practice VLSM calculations extensively. Cloud engineers apply VLSM principles when subdividing VPC address space across multiple availability zones and workload types.

Frequently Asked Questions

How does VLSM differ from fixed-length subnetting?

Fixed-length subnetting divides a network into equal-sized subnets, wasting addresses when segments vary in size. VLSM assigns different prefix lengths to each subnet based on actual host requirements, making much more efficient use of the address space.

What routing protocols support VLSM?

Classless routing protocols — OSPF, EIGRP, BGP, IS-IS, and RIPv2 — all support VLSM by including the subnet mask in routing updates. Classful protocols like RIPv1 do not support VLSM.