IP
IPLocatorNETWORK TOOLS
← IPLocator/Blog
● Supabase DB

Networking · 11 min read · October 28, 2026 · IPLocatorTools

Subnet Calculator: CIDR Notation, Netmask & IP Range Explained

Subnetting confuses almost everyone at first. This guide explains CIDR notation, subnet masks, IP ranges, and how to calculate them — with a free instant tool.

👁️ 24 views
⚡Direct Answer & Executive Summary
● Verified StandardsNetworking Protocol

Subnetting confuses almost everyone at first. This guide explains CIDR notation, subnet masks, IP ranges, and how to calculate them — with a free instant tool.

Subnetting is one of those concepts that looks complicated but makes perfect sense once you see it clearly. Whether you're setting up a firewall, configuring a VPN, dividing a corporate network, or studying for CCNA — this guide explains everything.

Use the Subnet Calculator at IPLocatorTools to instantly calculate any subnet — enter an IP and prefix length to get the network address, broadcast, usable host range, and subnet mask. Free, no signup.

What Is Subnetting?

Subnetting is the practice of dividing a large IP address block into smaller sub-networks (subnets). Instead of one big flat network with thousands of devices, you create smaller, isolated groups — improving security, performance, and manageability.

The internet itself is built on subnetting. Your ISP receives a large block from ARIN/RIPE, divides it into smaller blocks for business customers, who may further divide those for internal VLANs.

Understanding CIDR Notation

CIDR (Classless Inter-Domain Routing) notation expresses an IP address and its subnet mask in a compact format:

192.168.1.0/24

The number after the slash (/24) is the prefix length — the number of bits in the network portion of the address. The remaining bits are the host portion.

| CIDR | Subnet Mask | Total IPs | Usable Hosts | |---|---|---|---| | /32 | 255.255.255.255 | 1 | 0 (host route) | | /30 | 255.255.255.252 | 4 | 2 | | /29 | 255.255.255.248 | 8 | 6 | | /28 | 255.255.255.240 | 16 | 14 | | /27 | 255.255.255.224 | 32 | 30 | | /26 | 255.255.255.192 | 64 | 62 | | /25 | 255.255.255.128 | 128 | 126 | | /24 | 255.255.255.0 | 256 | 254 | | /23 | 255.255.254.0 | 512 | 510 | | /22 | 255.255.252.0 | 1,024 | 1,022 | | /21 | 255.255.248.0 | 2,048 | 2,046 | | /20 | 255.255.240.0 | 4,096 | 4,094 | | /16 | 255.255.0.0 | 65,536 | 65,534 | | /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |

Usable hosts = Total IPs - 2 (one reserved for network address, one for broadcast)

How to Calculate a Subnet: Step-by-Step

Example: 192.168.10.50/26

Step 1: Identify the prefix length Prefix = /26 → 26 network bits, 6 host bits

Step 2: Calculate total IPs 2^(32-26) = 2^6 = 64 total IPs

Step 3: Calculate usable hosts 64 - 2 = 62 usable hosts

Step 4: Find the network address Round down the host portion to all zeros. 192.168.10.50 → 50 in binary = 110010. With /26, the block boundary is at every 64th address. 50 is in the 0–63 block. Network = 192.168.10.0

Step 5: Find the broadcast address Last address in the block: 192.168.10.63

Step 6: Usable host range 192.168.10.1 — 192.168.10.62

Or skip all of this and use the Subnet Calculator to get all values instantly.

The Three Private IP Address Ranges

RFC 1918 defines three blocks reserved for private/internal network use — they are never routed on the public internet:

| CIDR Block | Subnet Mask | Usable Hosts | Common Use | |---|---|---|---| | 10.0.0.0/8 | 255.0.0.0 | 16,777,214 | Large enterprise networks | | 172.16.0.0/12 | 255.240.0.0 | 1,048,574 | Medium corporate networks | | 192.168.0.0/16 | 255.255.0.0 | 65,534 | Home routers (192.168.1.x) |

Your home router assigns addresses from 192.168.0.0/16 — that's why your devices have IPs like 192.168.1.5. Your router uses NAT to translate these private addresses to your public IP when traffic leaves your network.

Special Purpose IP Ranges

| Range | Purpose | |---|---| | 127.0.0.0/8 | Loopback (localhost) | | 169.254.0.0/16 | Link-local (APIPA, no DHCP) | | 100.64.0.0/10 | Carrier-Grade NAT (CGNAT) | | 0.0.0.0/8 | "This network" (unassigned) | | 255.255.255.255/32 | Limited broadcast | | 224.0.0.0/4 | Multicast |

Real-World Subnetting Examples

Home Network (/24)

Most home routers use 192.168.1.0/24:

Small Office Network (/26)

A /26 gives you 62 usable IPs — enough for a small office:

VPS / Cloud Server Host Route (/32)

Cloud providers assign individual IPs as /32 host routes:

Corporate Network Division

A company receives 10.0.0.0/16 from their ISP and divides it:

Subnet Mask vs CIDR vs Wildcard Mask

These three formats all express the same information differently:

| /CIDR | Subnet Mask | Wildcard Mask | |---|---|---| | /24 | 255.255.255.0 | 0.0.0.255 | | /26 | 255.255.255.192 | 0.0.0.63 | | /28 | 255.255.255.240 | 0.0.0.15 | | /16 | 255.255.0.0 | 0.255.255.255 |

Wildcard mask = 255.255.255.255 minus the subnet mask. Used in Cisco ACLs and firewall rules.

The Subnet Calculator shows all three formats automatically.

Frequently Asked Questions

What is the difference between /24 and /16? A /24 has 256 IPs (254 usable), covering a single "class C" range like 192.168.1.0–255. A /16 has 65,536 IPs, covering an entire second octet range like 192.168.0.0–192.168.255.255. The smaller the suffix number, the larger the network.

Why do subnets have 2 fewer usable addresses than total IPs? The first address is the network address (identifies the subnet itself) and the last address is the broadcast address (used to send packets to all hosts). Neither can be assigned to an individual device.

What does /32 mean? A /32 is a single host — no network address, no broadcast. It's used for host routes (in BGP/routing tables), loopback interfaces, and cloud server assignments.

What's the difference between a subnet and a VLAN? A subnet is a Layer 3 (IP) concept — a range of IP addresses. A VLAN is a Layer 2 (Ethernet) concept — a virtual network segment. In practice, one VLAN typically maps to one subnet, but they operate at different OSI layers.

CHECK YOUR IP NOW

See What Your IP Reveals →
IT

Written by IPLocatorTools

IPLocatorTools provides free IP lookup, DNS lookup, speed test, and other network diagnostic tools. Our guides help users understand IP addresses, online privacy, and network security.

Last updated: October 28, 2026 · Published: October 28, 2026

Related Articles

The $60 IPv4 Address: Market Prices, Exhaustion & IPv6 Dual-Stack Migration (2026 Guide)
10 min read · November 15, 2026
→
Starlink IP Geolocation, CGNAT & Latency: Why Does SpaceX Route You 500 Miles Away? (2026 Guide)
11 min read · November 15, 2026
→
Is It Down Right Now? How to Diagnose Website Outages vs Local Connection Drops
9 min read · October 31, 2026
→
← All articles