Subnet Visualizer — see subnetting happen
Subnetting confuses everyone — until you can see it. Drag the slider: each step borrows one bit from the hosts. The borrowed bits light up, the network splits into more, smaller subnets, and every address is worked out for you, live.
The address in bits — 192.168.1.0
| Subnet | Network address | First usable | Last usable | Broadcast |
|---|
Every borrowed bit doubles the subnets
Borrow 1 bit → 2 subnets. Borrow 2 → 4. Borrow 3 → 8. The count is always 2borrowed bits. That is the whole trick — the slider above is just this rule, drawn.
…and halves the hosts
Bits are a fixed budget of 32. Every bit you give to subnets is taken from hosts, so hosts per subnet = 2host bits − 2 (minus the network and broadcast addresses, which no device can use).
Block size does the arithmetic
Block size = 256 − the interesting mask octet. Subnets then step by that number: 0, 64, 128, 192… Once you know the block size, you can write out any subnet table in seconds — no calculator needed on exam day.
Ready to practise?
When the picture makes sense, lock it in: try the subnetting practice quiz for timed drills, the subnet calculator for full worked answers, or the VLSM calculator when subnets need different sizes. Just animated your first packet? Follow it end-to-end in Journey of a Packet.
Built for CCNA, Network+ and A+ subnetting questions
Subnetting is one of the highest-weighted skills on the Cisco CCNA (200-301), and it appears across CompTIA Network+ (N10-009) and A+ networking objectives. Exam questions rarely ask for definitions — they give you an address and a requirement (“at least 6 subnets, 25 hosts each”) and expect you to pick the mask. The visual rule from this page answers all of them: find the borrowed bits that give enough subnets, then check the host bits that remain still give enough hosts.
Questions students ask
Why minus 2 for hosts?
Every subnet reserves its first address as the network address and its last as the broadcast address. Neither can be assigned to a device, so usable hosts = 2host bits − 2. (The exception is /31 point-to-point links in modern practice — exams still expect the −2 rule unless they say otherwise.)
How do I pick a mask from a requirement?
Work subnets first: borrowed bits must satisfy 2n ≥ subnets needed. Then check hosts: remaining host bits must satisfy 2h − 2 ≥ hosts needed. If both fit inside the /24, the mask works — drag the slider to that mask and read the answer off the picture.
What is the “interesting octet”?
The octet where the mask stops being 255 or 0 — for /25 to /30 starting from a /24, that is the last octet. Block size = 256 − that octet's mask value, and subnet addresses are its multiples.
Does this work for bigger networks too?
Yes — the same borrowing works from any starting mask. This visual starts from a /24 because that is where almost all exam practice happens. For mixed sizes in one network, that is VLSM — try the VLSM calculator next.