// the lab · subnet calculator

subnet calculator

IPv4 calculator, subnet splitter, VLSM planner and IPv6 calculator on one screen. Paste an address, get the network, broadcast, host range, wildcard and copy-ready tables for your change request.

$ modes ipv4 · split · vlsm · ipv6

$ export csv · markdown

$ upload --to-server never

loading subnet calculator…

// how it works

three steps. zero signups.

01

enter an address

Use CIDR (10.0.0.10/24) or a mask (10.0.0.10 255.255.255.0). Results update while you type, and a wrong input is flagged right away.

02

pick a mode

Read one subnet, split a block into equal subnets, plan VLSM by host count, or work out IPv6 prefixes and reverse zones.

03

copy what you need

Tap any result to copy it, or export the table as CSV or Markdown for your ticket, wiki or change request.

// cheat sheet

the CIDR table I keep taped to the rack.

Usable hosts are the total minus the network and broadcast addresses. /31 links use both addresses (RFC 3021), and /32 is a single host.

CIDRsubnet maskwildcardaddressesusable hosts
/16255.255.0.00.0.255.25565,53665,534
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011

// faq

questions people actually ask.

Take 2 to the power of (32 minus the prefix) and subtract 2 for the network and broadcast addresses. A /24 has 254 usable hosts, a /26 has 62 and a /30 has 2. The cheat sheet above lists every prefix from /16 to /32.

They describe the same thing. CIDR writes the number of network bits after a slash (/24); the subnet mask writes the same bits as four numbers (255.255.255.0). The calculator accepts either.

It is the inverse of the subnet mask (0.0.0.255 for a /24). Cisco ACLs and OSPF network statements use wildcard masks, which is why the calculator shows it next to the mask.

RFC 3021 lets point-to-point links use a /31 with no network or broadcast address, so both addresses are usable. That saves half the addresses compared with the old /30 habit. A /32 is a single host, often used for loopbacks.

Variable Length Subnet Masking gives each segment a subnet sized to its host count instead of one fixed size. The planner sorts your requests from largest to smallest and places each one on its own boundary, so nothing overlaps and gaps stay as small as possible.

A /48 holds 65,536 /64 subnets and a /56 holds 256. Use the IPv6 tab and choose which subnet size to count; it also shows the full expanded address and the ip6.arpa reverse zone.

No. Every calculation runs in your browser. Nothing you type is sent to a server, which makes it safe to use with internal addressing plans.

// more from the lab

more free tools, same rules.

Built by roosho, a jack of all IT trades. Runs in your browser. No account, no upload.