Subnetting splits one large network into smaller, tidier subnets. It wastes fewer addresses, keeps broadcast traffic small, and makes networks easier to manage. Here is the beginner-friendly explanation, with a worked example.
Published 28 November 2026 • SHM Soft
Every device on a network needs an IP address. A small office might need 30 addresses. A university might need 30,000. If you hand out addresses with no plan, you end up with one giant network where every device can see every other device, and broadcast traffic reaches everyone. That is hard to manage and hard to secure.
Subnetting is the fix. It means taking one large block of IP addresses and splitting it into smaller blocks, called subnets. Each subnet is its own small network with its own range of addresses. In this guide, we explain what subnetting is, why networks use it, and how the maths works, one step at a time.

Subnetting is the process of dividing a larger IP network into smaller sub-networks. You do it by borrowing bits from the host part of an IP address and using them as extra network bits. That sounds technical, so here is a simpler picture. Think of a street with 256 house numbers. Subnetting is like splitting that street into four smaller streets of 64 houses each, and giving each small street its own name. The houses are the same, but now the postman knows exactly which small street to go to.
In an IP address, the left part identifies the network and the right part identifies the device. A subnet mask draws the line between the two parts. When you subnet, you move that line to the right. More bits belong to the network part, so you get more networks, and each network has fewer device addresses. The total number of addresses stays the same. You are just organising them better.
A classic example is the network 192.168.1.0/24. On its own, it holds 256 addresses and 254 usable ones. Split it into four subnets with a /26 mask, and you get 192.168.1.0, 192.168.1.64, 192.168.1.128, and 192.168.1.192. Each subnet has 64 addresses and 62 usable ones. You could give one subnet to Sales, one to Accounts, one to the warehouse, and one to guests. That is subnetting in action.
Why do networks use subnetting?
The first reason is organisation. A network that mirrors the business is easier to understand. When something breaks, you can tell from the IP address which department or building the device is in. The second reason is performance. Each subnet is its own broadcast domain, so broadcast traffic stays small and local instead of flooding the whole network.
The third reason is security. Routers sit between subnets, and routers can filter traffic. If the guest subnet should never reach the finance servers, a rule on the router blocks it. Without subnets, everything is in one flat space and there is nothing to filter at. The fourth reason is saving addresses. If a branch office needs only 14 addresses, you give it a /28 subnet with 16 addresses, not a whole /24 with 256. The addresses you save can be used elsewhere.
Subnetting and the CCNA exam
If you are studying for the CCNA, subnetting is the skill you cannot skip. It appears all over the exam, in questions about addressing, routing, and troubleshooting. Many students find it hard at first, then find it becomes automatic with practice. Our guide on how to pass the CCNA has a study plan that puts daily subnetting practice at the centre, because it is the one skill that pays off in almost every part of the exam.
There are many ways to learn subnetting, but the block size method is the fastest for most people. The block size is the size of each subnet, and it comes from the mask. Take the interesting octet, the one where the mask is not 0 or 255, and subtract its value from 256. That is your block size.
Here is a worked example. You have the network 192.168.10.0/26. The mask is 255.255.255.192. The interesting octet is the last one, with the value 192. Block size is 256 minus 192, which is 64. So the subnets start at 0, 64, 128, and 192. The four subnets are 192.168.10.0/26, 192.168.10.64/26, 192.168.10.128/26, and 192.168.10.192/26.
Now take an address like 192.168.10.100. Which subnet is it in? The subnets start at 0, 64, 128, and 192. The number 100 falls between 64 and 128, so the address belongs to the 192.168.10.64/26 subnet. Its usable range is 192.168.10.65 to 192.168.10.126. The broadcast address is 192.168.10.127. That is the whole method: find the block size, list the subnet starts, and see where the address falls.
It takes practice, but it becomes quick. Most people can do it in their head within a few weeks of daily drills. Ten minutes a day with a subnetting practice site beats one long weekend of cramming, because the skill is really about speed and confidence, not just knowing the idea.
There are two ways to carve up a network. Fixed Length Subnet Masking, or FLSM, uses the same mask for every subnet. It is simple, but it wastes addresses. If one department needs 100 addresses and another needs only 6, FLSM gives both the same size subnet, and most of the small one sits empty.
Variable Length Subnet Masking, or VLSM, lets each subnet have a different size. The big department gets a /25 with 126 usable addresses, and the small one gets a /29 with 6 usable addresses. Nothing is wasted. VLSM is how real networks are designed, and it is a CCNA topic, so it is worth learning once you are comfortable with the basic method.
The trick with VLSM is order. Always carve out the biggest subnet first, then the next biggest, and so on. If you start with the small ones, you can paint yourself into a corner where the big block no longer fits anywhere. Plan on paper first, largest to smallest, and the rest falls into place.

The most common mistake is forgetting that the first and last addresses in a subnet are reserved. The first address is the network address, and the last address is the broadcast address. Neither can be given to a device. A /26 subnet has 64 addresses but only 62 usable ones. A /30 subnet, often used for links between routers, has 4 addresses but only 2 usable ones. People who forget this end up one address short, usually at the worst moment.
The second mistake is mixing up the number of subnets with the number of hosts. Borrowing one bit doubles the number of subnets but halves the hosts in each. Borrow too many bits and you have plenty of subnets but no room for devices. Always start from the requirement: how many subnets do I need, and how many hosts must the biggest one hold? Then pick the mask that satisfies both.
The third mistake is designing on the fly instead of on paper. Subnetting is easy to get wrong when you do it in your head during a live change. Write the plan down, list the subnets, and check the ranges before you touch any device. Five minutes with a notebook saves an hour of troubleshooting later. If you want to see how subnetting connects to the bigger picture, read our guide on what an IP address is, which explains the address itself before the mask splits it up.
Watch on YouTube: Free CCNA | Subnetting (Part 1) | Day 13 | CCNA 200-301 Complete Course
Subnetting in the real world
In a real office, subnetting usually follows the VLAN plan. Each VLAN gets its own subnet, so the Layer 2 separation and the Layer 3 separation match. Sales might be VLAN 10 with 192.168.10.0/24. Accounts might be VLAN 20 with 192.168.20.0/24. Guests might be VLAN 30 with 192.168.30.0/24. Anyone reading an IP address can tell which group a device belongs to, and the router between the subnets controls who may talk to whom.
On larger networks, the same idea scales up. A company with many branches gives each branch a block, and each branch subnets its own block for its departments. The routing tables stay small because routers only need to know about the big blocks, not every small subnet inside them. This is called route summarisation, and it is one of the reasons the internet itself can work at all.
Even at home, you meet subnetting without knowing it. Your home router hands out addresses from a small subnet like 192.168.1.0/24. Your DHCP server picks addresses from that range. The mask 255.255.255.0 is doing quiet work in the background every time a phone joins your Wi-Fi.
What is subnetting in simple words?
Subnetting is splitting one large network into smaller networks. Each small network, or subnet, gets its own range of IP addresses, which makes the network easier to organise, faster, and safer.
Why do we need subnetting?
We need it to organise addresses, reduce broadcast traffic, improve security between groups, and avoid wasting addresses. Without it, large networks become one flat space that is hard to manage and hard to protect.
How many usable hosts are in a /26 subnet?
A /26 subnet has 64 addresses in total. Two are reserved, the network address and the broadcast address, so there are 62 usable host addresses.
What is the difference between subnetting and VLANs?
Subnetting divides IP address space at Layer 3. VLANs divide switch ports at Layer 2. They are often used together, with one subnet per VLAN, but they are separate concepts that solve the same problem at different layers.
Is subnetting still needed with IPv6?
Yes, but it is much easier. IPv6 has so many addresses that you never run out, so the goal shifts from saving addresses to organising them. You still split a large IPv6 block into smaller subnets for departments and sites.
Conclusion
Subnetting looks like maths, but it is really about organisation. One big network becomes many small networks, each with a clear purpose, a clear range of addresses, and clear rules about who can talk to whom. Broadcast traffic shrinks, security improves, and troubleshooting gets easier because an IP address tells you where a device lives.
Learn the block size method, practise ten minutes a day, and remember the two reserved addresses in every subnet. Once the method clicks, you will use it everywhere: in the CCNA exam, in office networks, and in any design where addresses need a plan instead of a guess.
Related articles:
What Is a Subnet Mask? CIDR Notation Explained
The mask that draws the line between network and host, and how CIDR shorthand works.
What Is an IP Address? A Complete Beginner's Guide
What an IP address is, public vs private, and how devices use them to find each other.
How to Pass CCNA Faster: Study Strategies That Work
A realistic study plan that puts daily subnetting practice at the centre.
Want a clear price for your project?
Tell us what you need and we will send a free quote with no hidden charges.