Subnet Netmask Calculator – Find Hosts, Ranges & CIDR Fast

March 20, 2026

🌐 Subnet Netmask Calculator

Calculate subnet masks, CIDR notation, usable hosts, IP ranges, and network/broadcast addresses instantly.

Quick Presets
⚙️ Subnet Configuration
Invalid IP address. Please enter a valid IPv4 address (e.g. 192.168.1.0).
✅ Subnet Calculation Results
📊 CIDR Block Quick Reference
254
Hosts in /24
65,534
Hosts in /16
/30
Min P2P Prefix
16.7M
Hosts in /8
📋 Full CIDR to Subnet Mask Reference
CIDR Subnet Mask Wildcard Mask Total IPs Usable Hosts Block Size Common Use
/8255.0.0.00.255.255.25516,777,21616,777,21416,777,216ISP / Large Org
/16255.255.0.00.0.255.25565,53665,53465,536Campus / Enterprise
/20255.255.240.00.0.15.2554,0964,0944,096Large VLAN Block
/22255.255.252.00.0.3.2551,0241,0221,024Medium LAN
/23255.255.254.00.0.1.255512510512Large Office
/24255.255.255.00.0.0.255256254256Home / Small Office
/25255.255.255.1280.0.0.127128126128Half Subnet
/26255.255.255.1920.0.0.63646264Floor / Dept VLAN
/27255.255.255.2240.0.0.31323032Small VLAN
/28255.255.255.2400.0.0.15161416Small Segment
/29255.255.255.2480.0.0.7868Tiny Segment
/30255.255.255.2520.0.0.3424P2P / Router Links
/31255.255.255.2540.0.0.122*2RFC3021 P2P Only
/32255.255.255.2550.0.0.011*1Host Route / Loopback
🔒 RFC 1918 Private Address Space
Range CIDR Class Total IPs Default Mask Typical Use
10.0.0.0 – 10.255.255.255/8A16,777,216255.0.0.0Enterprise / Data Center
172.16.0.0 – 172.31.255.255/12B1,048,576255.240.0.0Corporate VPN / WAN
192.168.0.0 – 192.168.255.255/16C65,536255.255.0.0Home / SOHO Networks
127.0.0.0 – 127.255.255.255/8Loopback16,777,216255.0.0.0Local Host Testing
169.254.0.0 – 169.254.255.255/16Link-Local65,536255.255.0.0APIPA / No DHCP
🏠 Common Network Scenarios & Recommended Subnets
Scenario Recommended CIDR Usable Hosts Subnet Mask Notes
Home Router LAN/24254255.255.255.0Standard default for home routers
Home Lab (Proxmox etc.)/24 or /23254 / 510255.255.255.0Use /23 if running many VMs
Small Office (20 devices)/2730255.255.255.224Tight fit; use /26 for headroom
Medium Office (100 devices)/25126255.255.255.128Good fit with 26 spare hosts
Router-to-Router Link/302255.255.255.252Only 2 hosts needed
IoT Isolation VLAN/2662255.255.255.192Isolated from main LAN
Guest Wi-Fi/24254255.255.255.0Easy DHCP management
Server Farm VLAN/26 or /2562 / 126255.255.255.192Static IPs, low density
Campus Building/221,022255.255.252.0Multiple floors/departments
Data Center Block/204,094255.255.240.0Room for VLANs and servers
💡 Tip: Always add a growth buffer. The 10% overhead setting reserves ~25 hosts on a /24 for future devices, DHCP reservations, and management interfaces. For IoT or smart-home networks, use 20% — device counts grow fast.
⚠️ Note: Usable hosts = Total IPs – 2. Every subnet loses 1 IP for the Network Address (first) and 1 for the Broadcast Address (last). A /30 has 4 total IPs but only 2 usable — perfect for point-to-point router links. A /31 (RFC 3021) is the exception and allows 2 usable IPs on P2P links.

subnet netmask is made up of a 32-bit number, that works with an IP-address to point out what part of that address belongs to the net and what to the host. Picture it like this: it splits things similarly to brackets that separate the local code of a phone number. The net section is like the local code, while the host section is like the own phone number.

Terms like “netmask”, “subnet mask” and simply “mask” all point to the same idea. It is a basic mask that tells the program which IP-addresses belong to a certain net and which do not. In IPv4, subnet masks help to clearly identify the net ID from the host ID.

What a Subnet Mask Does

All devices in the same subnet share the same net prefix even so each has its own host ID.

So, what does a subnet mask do in practice? From the view of a device, the computer uses the IP-address together with the netmask to figure out whether another computer is on the same local net. If yes, the device can send data directly.

Otherwise, the message passes through the default gate. A subnet mask also tells the device about the size of its local net.

A subnet mask helps to split a big net into smaller logical nets, called subnets. That improves things regarding efficiency, security and performance, because it reduces the broadcast traffic and makes the management of the net easier. The process of splitting a net into smaller parts is called subnetting.

Each subnet follows certain logic and forms part of the wider main net.

Another advantage is the savings for routing. Instead of entries for every separate machine in the net, the system only must keep entries for every subnet. That simplifies the whole process.

Here is how the math part works. A subnet mask always ends with a sertain amount of zeros, when one writes it in binary form. For instance, if at the end there are 8 zeros, that means 2 to the power of 8, so 256 possible addresses in the subnet.

The max amount of usable hosts equals 2 raised to the power of the host bits, minus 2. The two removed addresses are the all-zero address, that serves as net address, and the all-one address, that works as broadcast address.

The most common subnet masks that folks see are 255.255.255.0, or also /24. Home routers usually use it. It gives a range of addresses, for instance 192.168.1.0 until 192.168.1.255, although the truly usable range is 1 until 254.

Most home and small business nets have fewer than 512 devices, so /24 works well. It eases the counting of usable IP-addresses for a /24-subnet, because the first three octets stay the same.

One can change the subnet mask to create nets of different sizes. For instance, changing from 255.255.0.0 (/16) to 255.255.128.0 (/17) one splits one net of 65,534 users into two nets of 32,766 users each. When one applies a bitwise AND-operation to any IP-address with the subnet mask, itresults in the routing prefix, also called the net address.

Subnet Netmask Calculator – Find Hosts, Ranges & CIDR Fast

Related posts

Leave a Comment