Packet Path/

Subnetting in Minutes: The Cheatsheet That Sticks

One trick — the block size — answers 95% of subnet questions. Masks, ranges, host counts, and design, in one page you'll actually use.

TCP/IP · Beginner · 9 min · September 30, 2026

Illustration of binary subnet blocks branching from an IP address tree
Quick answerHow do you subnet quickly? Memorise the block sizes (64, 32, 16, 8) and count in blocks from zero — here is the table plus one network split step by step.

The cheat sheet table — /24 to /30

PrefixSubnet maskWildcard maskBlock sizeUsable hosts
/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

Worked split: 192.168.1.0/24 into four /26s

Need four separate networks from one /24? Borrow 2 bits from the host part — 22 = 4 — and the prefix becomes /26. Each new subnet is a block of 64 addresses, so the blocks start at .0, .64, .128 and .192, and in each block the first address names the network and the last is its broadcast.

SubnetUsable rangeBroadcast
192.168.1.0/26192.168.1.1–192.168.1.62192.168.1.63
192.168.1.64/26192.168.1.65–192.168.1.126192.168.1.127
192.168.1.128/26192.168.1.129–192.168.1.190192.168.1.191
192.168.1.192/26192.168.1.193–192.168.1.254192.168.1.255
In plain EnglishEvery device on a network has an address, like a street address plus an apartment number. The subnet mask decides where the street ends and the apartment begins. Subnetting is drawing those lines on purpose — carving one big block of addresses into smaller groups — and the whole skill reduces to one trick: the block size, a single number that tells you exactly where each group starts and ends.

The apartment building analogy

Think of 192.168.7.0/24 as an apartment building at 192.168.7 Street with 256 units:

The mask (the /24) is the architect's decision about how big the building is. Change it to /26 and you have split the building into four smaller ones of 64 units each. That splitting is subnetting.

Under the hood, addresses are 32 binary digits (bits). The mask is 32 bits too: a run of 1s (the network part) followed by 0s (the host part). /24 means "the first 24 bits are the network." Everything below follows from that one sentence.

Try it: the mask stepper

Press the buttons and watch what happens to the bits. Green bits are the network part (locked); amber bits are the host part. Each extra mask bit doubles the number of subnets and halves the hosts per subnet.

Network: 192.168.7.0  ·  binary mask: