What a subnet is and why it matters for your network
A subnet is the portion of your network that your devices can talk to directly without going through a router. When you have an IP address like 192.168.1.100, the subnet tells you which other addresses on your network are "local" — meaning your device can reach them when ready — and which ones require a router to communicate with.
Finding your subnet matters because it shows you the boundaries of your local network. If you're troubleshooting why one device can't reach another, or setting up network rules, you need to know what subnet they're both on. Most home networks use a subnet mask of 255.255.255.0, which means devices with addresses from 192.168.1.1 to 192.168.1.254 can talk directly to each other.
The subnet is determined by the subnet mask — a number that works alongside your IP address to define which part of the address is the "network" and which part identifies individual devices. You'll see it written as either 255.255.255.0 or as a slash notation like /24.
Key Takeaways
- Your subnet mask is usually 255.255.255.0 on a home network, which means all devices with the same first three numbers in their IP address can reach each other directly.
- Windows shows your subnet mask in Settings under Network, while Mac and Linux users can find it in System Preferences or the terminal.
- The subnet address itself is the lowest usable number in your range — for 192.168.1.100 with mask 255.255.255.0, the subnet is 192.168.1.0.
- If two devices have different subnets, they cannot communicate without a router routing traffic between them, which is useful for network security.
Finding your subnet mask on Windows
On Windows 10 or 11, open Settings and go to Network & Internet, then Status. Scroll down and click "View your network properties." You'll see a list of your network adapters — click the one you're currently using (usually Ethernet or Wi-Fi). Look for "IPv4 subnet mask" in the details that appear.
If you prefer the command line, open Command Prompt and type ipconfig, then press Enter. Look for the line labeled "Subnet Mask" under your active connection. The number you see there — usually 255.255.255.0 — is what you need.
Finding your subnet mask on Mac
Click the Apple menu and go to System Settings, then Network. Select your active connection (Wi-Fi or Ethernet) from the left sidebar. Click "Details" and then the "TCP/IP" tab. The "Subnet Mask" field shows your subnet mask directly.
From the terminal, type ifconfig and press Enter. Find your active connection in the output — it will show a line starting with "netmask" followed by a hexadecimal number. For most home networks, this converts to 255.255.255.0, but you can also look for the "inet" line which shows your IP address alongside the mask.
Finding your subnet mask on Linux
Open a terminal and type ip addr show or ifconfig, depending on your distribution. Look for your active network interface — usually eth0 for Ethernet or wlan0 for Wi-Fi. The output shows your IP address followed by a slash and a number, like 192.168.1.100/24. That number after the slash is the CIDR notation for your subnet.
The /24 notation means the first 24 bits of your address define the network, which converts to the traditional 255.255.255.0 subnet mask. If you see /16 or /8, your subnet is larger and includes more addresses.
Converting between subnet mask formats
Subnet masks come in two formats: the traditional dotted decimal (255.255.255.0) and the slash notation (/24). They mean the same thing. The number after the slash tells you how many bits of your IP address belong to the network portion.
| Slash Notation | Dotted Decimal | Number of Devices |
|---|---|---|
| /24 | 255.255.255.0 | 254 usable addresses |
| /25 | 255.255.255.128 | 126 usable addresses |
| /16 | 255.255.0.0 | 65,534 usable addresses |
| /8 | 255.0.0.0 | 16,777,214 usable addresses |
Most home routers use /24 by default. If you see something different, your router has been configured for a larger or smaller network, which is uncommon in residential setups.
Calculating your subnet address from your IP and mask
Once you have your IP address and subnet mask, you can find the subnet address — the first address in your network range. For an IP of 192.168.1.100 with a mask of 255.255.255.0, the subnet address is 192.168.1.0.
The rule is straightforward: wherever the subnet mask shows 255, keep those numbers from your IP address. Wherever it shows 0, change that part of the IP to 0. So 192.168.1.100 with mask 255.255.255.0 becomes 192.168.1.0 (the network address) and 192.168.1.255 (the broadcast address). Devices on your network use addresses between 192.168.1.1 and 192.168.1.254.
If your mask is 255.255.255.128 instead, the math is slightly different because 128 is not 0 or 255. In that case, you're splitting the last group of numbers in half, so 192.168.1.100 would be on subnet 192.168.1.0 or 192.168.1.128 depending on whether 100 is above or below 128. Most home networks don't use this setup, but it's useful to know if you're managing a more complex network.
Why subnet matters when devices can't communicate
If two devices on your home network can't reach each other, one reason could be that they're on different subnets. Check the IP address and subnet mask of both devices. If the first three numbers of their IP addresses are different, or if their subnet masks are different, they're on separate networks and need a router to communicate.
This is actually a security feature in larger networks — you can isolate guest devices or IoT devices onto a different subnet so they can't directly access your computers. But in a home network where everything should talk to everything else, mismatched subnets are usually a configuration mistake worth fixing.
Frequently Asked Questions
What does the /24 in 192.168.1.0/24 mean?
The /24 means the first 24 bits of the address define the network, and the remaining 8 bits identify individual devices. This converts to the subnet mask 255.255.255.0. Each number in the dotted decimal format is 8 bits, so /24 means three full numbers (24 ÷ 8 = 3) stay the same across all devices on that subnet.
Can I change my subnet mask?
Yes, but you shouldn't without a reason. Your router assigns the subnet mask to your devices, and changing it requires accessing your router's settings. If you do change it, all your devices need to use the same new mask or they won't be able to communicate. Most home networks work fine with the default 255.255.255.0.
Is 192.168.1.0 a usable IP address?
No. The subnet address (192.168.1.0) and the broadcast address (192.168.1.255) are reserved. Devices use addresses from 192.168.1.1 to 192.168.1.254. Your router typically takes 192.168.1.1, leaving 192.168.1.2 through 192.168.1.254 for other devices.
What if my IP address starts with 10 instead of 192.168?
That's still a private network address, just a different range. An IP like 10.0.0.50 with subnet mask 255.255.255.0 means your subnet is 10.0.0.0 and your usable addresses are 10.0.0.1 through 10.0.0.254. The math works the same way regardless of which private range your router chose.