Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Home Page > Miscellaneous > General Tools

VLSM Calculator

Split one network into right-sized subnets with MiniWebtool’s VLSM Calculator. Enter the hosts each subnet needs to get network addresses, masks, usable ranges and broadcasts, an address map, practice problems and a PDF plan.

Need help using this tool? Ask AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Free to useNo sign-up requiredInstant Results
VLSM CalculatorTry it now — free ▼
List the hosts, get every subnet in one plan

Enter your network and the hosts each subnet needs. You get the network address, mask, usable range and broadcast of every subnet, largest first.

Examples:

Type an address with a prefix (192.168.10.0/24) or with a mask (192.168.10.0 255.255.255.0).

Subnets you need

VLSM address plan

Free PDFs carry a light MiniWebtool.com watermark. Download without watermark with Pro ›

🔒 Calculated in your browser. Nothing you type is sent anywhere.

Embed VLSM Calculator Widget

About VLSM Calculator

The VLSM Calculator divides one IPv4 network into subnets of different sizes, each just big enough for the hosts it needs. Type the network you were given and the host count for every department, VLAN or link, and you get a complete addressing plan: the network address, prefix, subnet mask, usable host range, broadcast address and wildcard mask of each subnet, the space left over, and a map of how the blocks sit in the network. It is built for networking students checking an assignment and for anyone planning the addresses of an office or a lab.

At a Glance

VLSM Calculator divides one IPv4 network into right-sized subnets by the hosts each one needs and lists every network address, mask, usable range and broadcast address.

VLSM Calculator: features at a glance
FeatureWhat you getGood for
Subnets by hosts neededEach subnet gets the smallest block that fits, largest first.Assignments and address plans
Full subnet tableNetwork address, prefix, mask, usable range, broadcast and wildcard for every subnet.Router and DHCP setup
Point-to-point linksAdd router links as /30 or /31.WAN links between sites
Address space mapColoured blocks for each subnet and the space left over.Seeing waste at a glance
Practice problemsRandom networks with the answers hidden until you check them.CCNA and networking students
Copy and PDFCopy the table into a spreadsheet or download the plan as a PDF, free with a light watermark.Documentation

How to use the calculator

  1. Enter the network. Type it with a prefix, such as 192.168.10.0/24, or with a mask, such as 192.168.10.0 255.255.255.0.
  2. List the subnets. Give each one a name and the number of hosts it needs. Count every device that needs an address, including the router interface.
  3. Add the links. Choose how many point-to-point links between routers you need and whether they are /30 or /31.
  4. Read the plan. The table updates as you type. Leave the order on largest first unless your assignment asks for the subnets in a set order.
  5. Keep it. Copy the table into a spreadsheet, or download the address plan as a PDF.

Practice VLSM problems

Press New practice problem for a random network and set of subnets. The answers stay hidden: work out each subnet on paper, then show the answers one row at a time to check yourself. A PDF downloaded while the answers are hidden is a blank worksheet, and one downloaded after showing them is the answer key.

VLSM step by step: a worked example

The network 192.168.10.0/24 has 256 addresses. It needs subnets for Sales (60 hosts), Engineering (28 hosts), HR (12 hosts) and two WAN links of 2 hosts each.

  1. Sort by size: Sales 60, Engineering 28, HR 12, then the two links.
  2. Sales: 60 hosts need 64 addresses, a /26. It gets 192.168.10.0/26: hosts .1 to .62, broadcast .63.
  3. Engineering: 28 hosts need 32 addresses, a /27, starting at .64: hosts .65 to .94, broadcast .95.
  4. HR: 12 hosts need 16 addresses, a /28, starting at .96: hosts .97 to .110, broadcast .111.
  5. WAN links: two /30 blocks at .112 and .116, with hosts .113–.114 and .117–.118.
  6. Left over: 192.168.10.120 to .255, 136 addresses for future subnets.

Subnet sizes cheat sheet

PrefixSubnet maskAddressesUsable hosts
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/27255.255.255.2243230
/26255.255.255.1926462
/25255.255.255.128128126
/24255.255.255.0256254
/23255.255.254.0512510
/22255.255.252.01,0241,022

To size a subnet, take the hosts it needs, add 2 for the network and broadcast addresses, and round up to the next number in the Addresses column. For a single network rather than a whole plan, the IP subnet calculator shows the same details for one address and mask.

Frequently asked questions

What is VLSM?

VLSM (variable length subnet masking) means splitting one network into subnets of different sizes, each with its own mask, instead of cutting it into equal pieces. A department with 60 hosts gets a /26 and one with 12 hosts gets a /28, so far fewer addresses are wasted.

How do you calculate VLSM?

Sort the subnets from the most hosts to the fewest. For each one, find the smallest block whose size minus 2 covers the hosts (64 addresses give 62 hosts, 32 give 30, 16 give 14, 4 give 2). Give the first block the start of the network, then start each next block where the previous one ended. Working largest first keeps every block on a boundary of its own size.

Why do you allocate the largest subnet first?

A block of 64 addresses has to start on a multiple of 64. If small subnets go first, the large ones have to skip ahead to the next boundary and the space in between is wasted. Largest first packs the blocks with no gaps.

Why does a subnet have 2 fewer usable hosts than addresses?

The first address of a subnet is the network address and the last is the broadcast address, and neither can be given to a device. A /26 has 64 addresses and 62 usable hosts. The exception is a /31 point-to-point link, which uses both of its 2 addresses.

What is the difference between VLSM and FLSM?

FLSM (fixed length subnet masking) cuts a network into equal subnets that all use the same mask, so every subnet is as big as the largest one needs. VLSM sizes each subnet separately. With subnets of 60, 28 and 12 hosts, FLSM uses three /26 blocks (192 addresses) while VLSM uses a /26, a /27 and a /28 (112 addresses).

What is the difference between VLSM and CIDR?

Both drop the old fixed class A, B and C boundaries. VLSM divides one network into smaller subnets of different sizes. CIDR works the other way as well: it writes any network as an address and a prefix length such as /22 and lets routers combine many networks into one route.

Should point-to-point links use /30 or /31?

A /30 has 4 addresses and 2 usable hosts and works everywhere. A /31 has only 2 addresses and no network or broadcast address (RFC 3021), which halves the space links take. Most current routers support /31 on point-to-point links; use /30 if an exam or older equipment expects it.

What if my subnets do not fit?

The calculator tells you how many addresses the subnets need and the smallest network prefix that would hold them. You can ask for a bigger network, split a large subnet, or reduce the host counts. Remember each subnet rounds up to a power of 2, so 65 hosts need a /25 of 128 addresses.

Reference this content, page, or tool as:

"VLSM Calculator" at https://MiniWebtool.com/vlsm-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: December 3, 2026

Chat with your favorite AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

General Tools:

Top & Updated:

IP Address to Hex ConverterWord Ladder GeneratorQR Code ScannerView all →
Home Page > Miscellaneous > General Tools > VLSM Calculator