What CIDR notation is and why you need it for your network
CIDR notation is a shorthand way to describe an IP address and how many devices can share the same network. It looks like this: 192.168.1.0/24. The number after the slash tells you the network size — higher numbers mean fewer devices can connect, lower numbers mean more devices can fit. You need this when you're setting up routers, configuring firewalls, or telling your network equipment which addresses belong together.
Most home networks use one of three standard CIDR blocks. Your router probably came set to 192.168.1.0/24 or 192.168.0.0/24, which gives you 254 usable addresses for devices. If you're expanding your network or troubleshooting why a device can't see another device, you need to know your actual CIDR block — not just guess.
Key Takeaways
- The CIDR notation for your home network is printed on your router's label or visible in your router's settings under LAN or network configuration.
- The /24 at the end of a home network address means the first three numbers stay the same and the last number changes — so 192.168.1.0/24 includes 192.168.1.1 through 192.168.1.254.
- You can calculate CIDR from a subnet mask by counting how many 1s appear in the binary version, but looking it up in your router settings is faster and more reliable.
- If you change your router's subnet mask, you must also change the CIDR notation — they describe the same thing in different formats.
Finding CIDR in your router's web interface
Log into your router by opening a browser and typing 192.168.1.1 or 192.168.0.1 (whichever one your router uses). Enter your admin username and password — if you haven't changed it, check the sticker on the back of the router or the manual that came with it.
Once you're logged in, look for a section called "LAN Settings", "Network Settings", or "Local Network". You'll see a field labeled "IP Address" and another labeled "Subnet Mask". The IP address is the first part of your CIDR notation. The subnet mask is what you'll convert to the /number part. For a typical home network, the subnet mask is 255.255.255.0, which converts to /24. Write down both numbers.
Different router brands put this in different places. On TP-Link routers, it's under Network > LAN. On Netgear, it's under Advanced > LAN Settings. On Ubiquiti, it's under Network > Networks. If you can't find it, search your router's model number plus "subnet mask" to see a screenshot of where it appears.
Converting subnet mask to CIDR notation
If your subnet mask is 255.255.255.0, your CIDR is /24. If it's 255.255.255.128, your CIDR is /25. If it's 255.255.0.0, your CIDR is /16. These are the most common ones you'll see in home networks.
The pattern works because each section of the subnet mask (the numbers separated by dots) can be 0, 128, 192, 224, 240, 248, 252, 254, or 255. Each of these numbers represents a different number of /bits. Here's the full conversion table:
| Subnet Mask Section | Bits It Represents |
|---|---|
| 0 | 0 bits |
| 128 | 1 bit |
| 192 | 2 bits |
| 224 | 3 bits |
| 240 | 4 bits |
| 248 | 5 bits |
| 252 | 6 bits |
| 254 | 7 bits |
| 255 | 8 bits |
Add up the bits from all four sections. If your subnet mask is 255.255.255.0, that's 8 + 8 + 8 + 0 = 24 bits, so your CIDR is /24. If it's 255.255.255.128, that's 8 + 8 + 8 + 1 = 25 bits, so your CIDR is /25.
Reading CIDR notation to understand your network size
The /number in CIDR tells you how many addresses are in your network. A /24 network has 256 total addresses, but 2 are reserved (the network address itself and the broadcast address), leaving 254 usable addresses for devices. A /25 network has 128 total addresses and 126 usable ones. A /16 network has 65,536 total addresses and 65,534 usable ones.
The first three numbers in the address (like 192.168.1) stay the same for every device on a /24 network. The last number changes from 1 to 254. So if your CIDR is 192.168.1.0/24, your router is probably 192.168.1.1, your first device might be 192.168.1.2, and your last device could be 192.168.1.254. If you see a device with an address like 192.168.2.50, it's on a different network and won't be able to talk to your 192.168.1.0/24 devices without a router between them.
Finding CIDR from the command line on Windows, Mac, or Linux
On Windows, open Command Prompt and type ipconfig, then press Enter. Look for the line that says "IPv4 Address" and the line that says "Subnet Mask". Write down both. Then use the conversion table above to turn the subnet mask into CIDR notation.
On Mac or Linux, open Terminal and type ifconfig (Mac) or ip addr (Linux), then press Enter. Look for the line that shows your IP address and the one that shows the netmask. On Mac, the netmask appears in hexadecimal (like 0xffffff00), which converts to 255.255.255.0 and then to /24. On Linux, it may already show CIDR notation (like /24) right next to the address.
The CIDR you find this way is the address of your individual device, not necessarily the whole network. If your device shows 192.168.1.100/24, your network is 192.168.1.0/24. If it shows 192.168.1.100/25, your network is 192.168.1.0/25.
When you need to change your CIDR and what happens when you do
Most home networks never need a CIDR change. You only change it if you're adding a second router, merging two networks, or you've run out of addresses on your current network. If you have more than 254 devices, you'd change from /24 to /16 or /23 to get more addresses.
Changing CIDR means changing the subnet mask in your router settings, and every device on your network will lose its connection for a few minutes while it gets a new address from the new range. Write down all your device names and their current addresses before you make the change, so you can verify they reconnected afterward. If a device doesn't reconnect, you may need to manually set its address to match the new CIDR block.
Frequently Asked Questions
What does the /24 in 192.168.1.0/24 actually mean?
The /24 means the first 24 bits of the address are the network part, and the last 8 bits are for individual devices. In a /24 network, the first three numbers (192.168.1) stay the same for all devices, and only the last number changes. A /25 would split the last number in half, so two devices could have 192.168.1.0 and 192.168.1.128 as their network addresses.
Can I use CIDR notation to learn about two devices are on the same network?
Yes. If both devices have addresses that match the first part of the CIDR block, they're on the same network. For example, 192.168.1.50 and 192.168.1.100 are both on 192.168.1.0/24, so they can talk directly. But 192.168.1.50 and 192.168.2.50 are not on the same /24 network, so they need a router to communicate.
Is 192.168.1.0/24 the only CIDR block I can use at home?
No. You can use 192.168.0.0/24, 10.0.0.0/24, 172.16.0.0/24, or many others. These are all private address ranges that won't conflict with the internet. Most routers default to 192.168.1.0/24 or 192.168.0.0/24 because they're common, but you can change it in your router settings if you need to.
What happens if two devices have different CIDR notations?
They won't be able to find each other on the network unless a router connects the two networks. If your router is set to 192.168.1.0/24 but a device somehow got 192.168.2.0/24, that device is on a different network and will only work if there's a second router or a manual route telling it how to reach the first network.