What's My IP

Networking

What Is a Subnet Mask?

Networking · 5 min read · Updated October 26, 2026

Your IP:216.73.216.41Full details

A subnet mask is a number that tells your device which part of an IP address identifies the network and which part identifies a single device on that network. The most common home subnet mask is 255.255.255.0, and it simply means the first three numbers of an address point to the network, while the last number points to one device.

You do not need to memorize subnet masks to use the internet. Your router sets one automatically when your devices connect. But knowing what it means helps when you troubleshoot a connection, set up a private IP address that never changes, or follow a guide that asks you to check your network settings.

What 255.255.255.0 actually means

Think of an IP address like a street address. In the address 192.168.1.10, the subnet mask 255.255.255.0 says the first three groups, 192.168.1, are the network, like the street name. The last group, 10, is the device, like the house number. A 255 means that group is fixed as part of the network. A 0 means that group can vary from device to device.

With this mask, your home network can hold up to 254 devices, numbered from 1 to 254 in the last group. The .0 address stands for the network itself and the .255 address is used to send a message to every device at once, so neither one is given to a single device. Your router usually takes .1.

How subnet masks split a network into pieces

A subnet mask also lets a big network be split into smaller pieces, called subnets. A company might give each department its own subnet, so office traffic stays separate, or an internet provider might hand out blocks of addresses to different customers. The mask is what draws the boundary between one piece and the next.

For home use, this rarely matters. Most homes run one flat network where every device can see every other device. If you ever see a mask like 255.255.255.192 on a work network, it just means that network was split into smaller groups, and your device belongs to one of them.

Common subnet masks you will see

The masks you are most likely to meet are 255.0.0.0 for very large networks, 255.255.0.0 for medium networks, and 255.255.255.0 for typical home and small office networks. Smaller masks like 255.255.255.128 and 255.255.255.192 split a network into even smaller groups. All of these apply to IPv4 addresses, the four-number format most home networks still use.

You may also see shorthand called CIDR notation, such as 192.168.1.10/24. The /24 means the first 24 bits of the address are the network, which is exactly the same as a mask of 255.255.255.0. Likewise, /16 matches 255.255.0.0 and /8 matches 255.0.0.0. It is the same idea, written more briefly.

Where to find your subnet mask, and should you change it?

On Windows, open Command Prompt and run ipconfig, then look for the Subnet Mask line under your connection. On a Mac, open System Settings, Wi-Fi, Details on your network, and check the TCP/IP tab. On an iPhone or Android phone, the same details appear in the Wi-Fi settings for your connected network. The full steps for Windows are in our Windows IP address guide.

In almost every case, leave the mask alone. Your router assigns the correct one automatically, and changing it can break your connection. Only change it if you are setting up a static IP address or following specific instructions for your network, and in that case copy the existing mask exactly rather than guessing a new one.

Frequently asked questions

What is a subnet mask in simple terms?

It is a number that splits an IP address into two parts: the network part and the device part. It tells your device which other devices are on the same local network and which ones are reached through the router.

What does 255.255.255.0 mean?

It means the first three groups of an IP address identify the network and the last group identifies the device. On a 192.168.1.x network, every device shares 192.168.1 and differs only in the last number.

What does /24 mean after an IP address?

It is CIDR shorthand for the subnet mask 255.255.255.0. The number counts how many bits of the address belong to the network: /24 means 24 bits, /16 means 16 bits, and /8 means 8 bits.

Why is my subnet mask 255.255.255.0?

Because that is the standard mask for a small network. It allows up to 254 devices, which is more than enough for a home or small office, and it is what most routers assign by default.

Should I change my subnet mask?

No, unless you have a specific reason and instructions to follow. Your router sets it automatically. Changing it without a reason can stop your device from reaching the internet or other devices on your network.

What happens if the subnet mask is wrong?

Your device may fail to reach the internet or other devices on the same network, because it misjudges which addresses are local and which need the router. Restoring the automatic setting, or copying the mask your router assigns to other devices, usually fixes it.

Related guides