How to Get Fast at Subnetting for the CCNA
Short answer
Speed comes from three things: a tiny chart you can rebuild in under a minute, one method you use for every question, and short daily timed practice. Most of the time you save comes from not converting to binary. You look up the block size on your chart and count in multiples.
Sound familiar? A post on r/ccna put it like this: “I understand the concept and can usually get the right answers if I take my time and write everything out, but it still takes a lot of mental effort and feels slow for exam pacing.”
That is a good place to be. You already understand subnetting. You just need to get fast. This page is one path to do that: one chart, one method, one daily routine. You don’t need ten tricks. You need one way of working that you repeat until it’s automatic.
Why you’re slow (and it’s normal)
- You still convert to binary. Writing out 32 bits for every question takes minutes. The chart replaces it.
- You work out each mask from scratch. If you have to think “what is /27 again?”, the chart fixes that too.
- You switch methods. One video shows a trick, another shows a different one. Each switch resets your speed.
- You only practise untimed. Untimed practice builds accuracy, but not speed. You need both, in that order.
A few words first
You’ll see these terms all through the page:
- Prefix: the number after the slash, like /26. It says how many bits at the front of the address are the network part.
- Subnet mask: the same thing written as four numbers, like 255.255.255.192. A /26 and 255.255.255.192 mean the same.
- Interesting octet: an IPv4 address has four numbers called octets. The interesting octet is the one where the mask is not 255 and not 0. That’s where all the work happens.
- Block size: how big each subnet is in the interesting octet. Subnets start at every multiple of it. Some people call it the magic number.
- Network address: the first address in a subnet. It names the subnet; you can’t give it to a device.
- Broadcast address: the last address in a subnet. A packet sent there goes to every device in the subnet.
- Usable hosts: the addresses between those two, the ones you can give to devices. Usually the total minus 2.
The subnetting chart to write from memory
This is the whole chart. It’s the “brain dump” many people write on their whiteboard or note board at the start of the exam.
| Bit value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Mask octet | 128 | 192 | 224 | 240 | 248 | 252 | 254 | 255 |
| Block size | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| Prefix if 4th octet | /25 | /26 | /27 | /28 | /29 | /30 | /31 | /32 |
| Prefix if 3rd octet | /17 | /18 | /19 | /20 | /21 | /22 | /23 | /24 |
| Prefix if 2nd octet | /9 | /10 | /11 | /12 | /13 | /14 | /15 | /16 |
Usable hosts (4th octet only): /25 = 126, /26 = 62, /27 = 30, /28 = 14, /29 = 6, /30 = 2. That’s the block size minus 2.
Two special cases, one line each:
- /31 has 2 addresses, and both are usable on a point-to-point link between two routers (RFC 3021). There is no network or broadcast address.
- /32 is one single address, one host. You see it on loopbacks and in routes to one device.
Here is how it looks written by hand. Write it exactly like this, every time:
bit 128 64 32 16 8 4 2 1
mask 128 192 224 240 248 252 254 255
block 128 64 32 16 8 4 2 1
4th /25 /26 /27 /28 /29 /30 /31 /32
3rd /17 /18 /19 /20 /21 /22 /23 /24
2nd /9 /10 /11 /12 /13 /14 /15 /16
Rebuild it in 3 moves
You don’t memorise 48 numbers. You rebuild them from three simple rules:
- Bit row: start at 128 and halve. 128, 64, 32, 16, 8, 4, 2, 1.
- Mask row: keep a running total of the bit row. 128. Then 128 + 64 = 192. Then 192 + 32 = 224. Then 240, 248, 252, 254, 255.
- Block row: 256 minus the mask. 256 − 192 = 64, 256 − 224 = 32, and so on. You’ll notice it’s the same as the bit row, so you can just copy it.
Then the prefix rows: count up by one. The 4th-octet row starts at /25, the 3rd at /17, the 2nd at /9. Each row ends 8 later, at /32, /24 and /16.
Now read a column top to bottom. The /27 column says: mask octet 224, block size 32. The /21 column (3rd octet) says: mask octet 248, block size 8, so the mask is 255.255.248.0.
Practise: write the chart from memory
Try it now, without looking up. Tab moves along a row, Enter checks. Wrong cells turn red with a ✗; hover or tap one to see the right value.
Write the chart from memory
Fill in every box, then press Check (or Enter). The clock starts on your first key. When you can fill it in under 60 seconds with no red cells, you've got it.
Stopwatch: 0:00
| Bit value Start at 128 and halve each time | ||||||||
|---|---|---|---|---|---|---|---|---|
| Mask octet Running total of the bit row | ||||||||
| Block size 256 minus the mask octet | ||||||||
| Prefix if 4th octet Count up from /25 | ||||||||
| Prefix if 3rd octet Count up from /17 | ||||||||
| Prefix if 2nd octet Count up from /9 |
Personal best (no red cells): –
Last 7 attempts:
Saved in this browser only. No account.
Do this twice a day for the first few days. Once you can do it in under a minute with no red cells, write it once at the start of each practice session and move on.
One method for every question: block size
This is how to subnet in your head, for every question type. Learn these steps and don’t switch.
- Find the interesting octet. It’s the one where the mask is not 255 and not 0. For /28 that’s the 4th octet; for /21 it’s the 3rd.
- Block size = 256 minus that mask octet. Or just read it off your chart.
- Network = the biggest multiple of the block size that is less than or equal to the IP’s number in that octet. Always round down.
- Broadcast = next network minus 1.
- Usable hosts = network + 1 up to broadcast − 1.
For the octets after the interesting one: on the network side they are 0, on the broadcast side they are 255. Octets before it just copy the IP.
Worked examples
Each one shows how it sounds in your head, then the answer.
10.20.37.200/28
“/28 is the 4th octet. Mask 240, block 16. Multiples of 16: 176, 192, 208. 200 is between 192 and 208, so 192. Broadcast is 208 minus 1, 207.”
- Mask: 255.255.255.240
- Network: 10.20.37.192
- Broadcast: 10.20.37.207
- Usable: 10.20.37.193 to 10.20.37.206 (14 hosts)
Check it in the subnet calculator.
192.168.5.100/29
“/29, block 8. 96 is a multiple of 8, 104 is the next. 100 is in the 96 block. Broadcast 103.”
- Network: 192.168.5.96
- Broadcast: 192.168.5.103
- Usable: 192.168.5.97 to 192.168.5.102 (6 hosts)
198.51.100.77/25
“/25, block 128. Subnets are 0 and 128. 77 is below 128, so network 0, broadcast 127.”
- Network: 198.51.100.0
- Broadcast: 198.51.100.127
- Usable: 198.51.100.1 to 198.51.100.126 (126 hosts)
172.16.93.10/21 (3rd octet)
“/21 is the 3rd octet. Mask 248, block 8. 88 and 96 are multiples of 8. 93 is in the 88 block. Network 172.16.88.0. Next network is 96, so broadcast is 95 in the 3rd octet and 255 in the 4th.”
- Mask: 255.255.248.0
- Network: 172.16.88.0
- Broadcast: 172.16.95.255
- Usable: 172.16.88.1 to 172.16.95.254 (2,046 hosts)
Check it in the subnet calculator.
172.31.200.9/19
“/19, 3rd octet. Mask 224, block 32. 192 and 224. 200 is in the 192 block. Broadcast is 223.255.”
- Mask: 255.255.224.0
- Network: 172.31.192.0
- Broadcast: 172.31.223.255
- Usable: 172.31.192.1 to 172.31.223.254 (8,190 hosts)
“Is 10.1.1.130 in 10.1.1.64/26?”
“/26, block 64. The subnet starts at 64, the next starts at 128. So it runs .64 to .127. 130 is past that.”
No. 10.1.1.130 is in 10.1.1.128/26, which runs from 10.1.1.128 to 10.1.1.191.
”What’s the smallest subnet for N hosts?”
Find the first usable-hosts number on your chart that is big enough.
| Hosts needed | Prefix | Usable hosts |
|---|---|---|
| 12 | /28 | 14 |
| 50 | /26 | 62 |
| 100 | /25 | 126 |
| 500 | /23 | 510 |
| 2 (router link) | /30 | 2 (or /31 where the device supports it) |
For 500: a /24 gives 254, not enough. A /23 is twice as big: 512 addresses, 510 usable.
”How many /27s fit in a /24?”
8. The rule is 2 to the power of the difference in prefix length: 27 − 24 = 3, and 2³ = 8.
“How many /30s in a /26?” 30 − 26 = 4, and 2⁴ = 16.
Wildcard masks
A wildcard mask is used in ACLs and OSPF. It’s 255 minus each mask octet.
- /28: 255.255.255.240 → 0.0.0.15
- /21: 255.255.248.0 → 0.0.7.255
Check your answers with the wildcard mask calculator or the wildcard mask cheat sheet.
The 15-minute daily plan
How much subnetting practice is enough? For most people, short and daily beats long and rare. Here is a two-week plan. Each link opens the practice trainer in the right mode, at CCNA level. Studying for Network+? Pick the Network+ level at the top of the trainer.
| Days | What to do (about 15 minutes) |
|---|---|
| 1–3 | Write the chart from memory twice in the trainer above. Then do IPv4 basics, untimed until you get most answers right without help. |
| 4–7 | Write the chart once. Then do IPv4 basics with timer mode on. Aim for under a minute per question. |
| 8–10 | Chart once. Add Which subnet? (timed) and Mask ↔ prefix (timed). |
| 11–14 | Chart once. Add VLSM design (timed). Finish every day with Review my mistakes and Practise my weak spot. |
| Exam day | Write the chart first, if your exam’s rules allow it. Then don’t do binary at all: read the block size off the chart. |
“Review my mistakes” asks you again the exact questions you got wrong. “Practise my weak spot” picks the topic where your accuracy is lowest. Both need a few answers saved first; until then the links just open the normal trainer.
How long does it take to learn subnetting this way? It depends on the person. In the same r/ccna thread, one reply said: “I spent around 15 minutes a day on the subnet practice website for about a couple weeks and then it became instant for me”. That’s one person’s experience, not a promise. If it takes you longer, keep going. The routine is what matters.
About the exam: the test provider gives you something to write on, such as a whiteboard or an erasable note board. What you may write, and when, can differ between a test centre and an online exam, and the rules can change. Check the current Pearson VUE rules for your exam before you plan around writing the chart.
Common mistakes when going fast
- Broadcast off by one. For a .192 block of 16 the broadcast is .207, not .208. 208 is the next network.
- Working in the wrong octet. /21 means the 3rd octet. For 172.16.93.10/21, the 4th octet of the broadcast is always 255: 172.16.95.255.
- Forgetting the 2 reserved addresses. A /26 has 64 addresses but 62 usable. So 63 hosts need a /25, not a /26.
- Rounding up instead of down. 100 in a block of 8 is in the .96 subnet, not .104. Always take the multiple at or below.
- Mixing up block size and number of subnets. A /27 has a block size of 32, and 8 of them fit in a /24. Block size is how big each one is; the number of subnets is how many fit.
- Practising untimed forever. Accuracy first, then the clock. Once you’re mostly right, switch timer mode on.
- Switching methods every week because a video showed a new trick. Pick one method (this one or another) and stick to it.
Do I still need this after the exam?
Day to day you’ll use a tool: the subnet calculator, the VLSM calculator or the subnet overlap checker. But quick mental checks still help. They let you spot a wrong mask in a config, a wildcard that’s too wide in an ACL, or two cloud VPC ranges that overlap, before you even open a tool.
FAQ
How long until subnetting becomes automatic?
It varies from person to person, so nobody can give you a fixed number of days. What matters most is short, timed practice every day, not long sessions once a week. One person on r/ccna said about 15 minutes a day on a practice site for a couple of weeks made it instant for them. Treat that as one person's experience, not a promise.
What subnetting chart should I write down at the start of the exam?
The small chart on this page: bit values (128 down to 1), mask octets (128 to 255), block sizes, and the prefix for each column in the 4th, 3rd and 2nd octet. It takes under a minute once you have practised it. Rules on what you may write, and when, can change and differ between test centre and online exams, so check the current Pearson VUE rules for your exam first.
Do I need to know binary to subnet fast?
You need to understand it once, so you know why the chart works. After that, use block sizes. Converting every address to binary is the main thing that makes people slow.
How fast should I be for the CCNA?
Aim to answer each subnetting question correctly in under a minute with timer mode on in the practice trainer. Get accurate first, then work on speed.
Is subnetting really that important for the CCNA?
Yes. It is tested on its own, and it also shows up inside other topics, such as routing, access lists (ACLs) and wildcard masks. If subnetting is slow, those questions get slow too.
What is the "magic number" method?
It is the same as the block size method on this page. The magic number is 256 minus the interesting mask octet. For 255.255.255.224 it is 256 - 224 = 32, so the subnets start at 0, 32, 64, 96 and so on.
Is VLSM on the exam, and how do I get fast at VLSM?
VLSM (variable length subnet masking, which means using different-sized subnets in one network) is part of CCNA-level subnetting. To get fast, always place the largest subnet first, then the next largest, and so on. Practise with the VLSM design mode in the practice trainer and check your plans with the VLSM calculator.
Does this work for Network+ subnetting too?
Yes. Network+ uses the same IPv4 maths, so the same chart, method and daily plan work. Choose the Network+ level in the practice trainer.
What about IPv6 subnetting?
IPv6 subnetting is different and mostly easier. You work with hex digits instead of octets, and LANs are almost always /64. The IPv6 cheat sheet, the IPv6 subnet calculator and the IPv4 vs IPv6 subnetting guide cover it.
Keep learning
More prefix pages: /21, /27, /28. For the background, read subnetting for beginners and understanding CIDR notation. For a wider list of shortcuts, see 10 subnet calculation hacks. For IPv6, see the IPv6 cheat sheet, the IPv6 subnet calculator and the IPv4 vs IPv6 subnetting guide.
Last updated: 25 November 2026. A note on this page: the two quotes come from public r/ccna threads, linked where they appear. Every number in the examples was checked with Python’s ipaddress module and the subnet calculator. Exam rules change, so check them with Pearson VUE yourself. The chart trainer runs in your browser and saves your times on this device only.