IP
IPLocatorNETWORK TOOLS

Understanding IPv4 Subnetting & CIDR Architecture

An IPv4 address consists of 32 bits arranged in four 8-bit octets separated by dots (e.g., 192.168.1.1). Subnetting is the process of borrowing bits from the host portion of an IP address to create smaller, isolated networks called subnets. In modern network engineering, CIDR (Classless Inter-Domain Routing, RFC 4632) has replaced rigid legacy address classes (Class A, B, and C) with flexible variable-length subnet masks (VLSM).

The prefix length (such as /24 or /16) designates exactly how many of the 32 bits belong to the network identifier. The remaining bits determine how many host machines (servers, computers, IoT devices, or mobile endpoints) can be connected within that broadcast domain. In standard subnets, two addresses are always reserved: the Network Address (all host bits set to 0) and the Broadcast Address (all host bits set to 1). The formula for calculating total usable hosts is 2^(32 - CIDR) - 2.

Whether you are designing a cloud Virtual Private Cloud (AWS VPC or Azure VNet), configuring corporate VLANs, preparing for Cisco CCNA examinations, or setting up a secure home lab router, calculating exact host boundaries and Cisco wildcard masks prevents routing conflicts and ensures efficient IP allocation.

Real-Time Network Subnetting

IPv4 Subnet & CIDR Calculator

Calculate network boundaries, broadcast addresses, usable host ranges, and Cisco wildcard masks with visual binary bit breakdowns.

COMMON NETWORK PRESETS:
Network Address (CIDR)
192.168.1.0/24
Subnet Mask (Netmask)
255.255.255.0
Usable Host Range
192.168.1.1 – 192.168.1.254
Broadcast Address
192.168.1.255
Usable Hosts
254 of 256 total
Cisco Wildcard Mask
0.0.0.255
IP Scope & Classification
RFC 1918 Private
Class C Private Network (Home / Office LAN)
Class & Hexadecimal
Class C (/24 default)
Hex: 0xC0A80101
32-BIT BINARY OCTET BREAKDOWN
■ Network (24 bits)■ Host (8 bits)
OCTET 1
11000000
OCTET 2
10101000
OCTET 3
00000001
OCTET 4
00000001
Binary Mask: 11111111.11111111.11111111.00000000Network Prefix: /24

Complete CIDR Subnet Cheat Sheet

Reference table for IPv4 prefix lengths, netmasks, wildcards, and maximum usable hosts.

CIDRSUBNET MASKUSABLE HOSTSTOTAL ADDRESSESWILDCARD MASKTYPICAL USE CASEACTION
/1128.0.0.02,147,483,6462,147,483,648127.255.255.255Large Global Backbone Routing
/2192.0.0.01,073,741,8221,073,741,82463.255.255.255Large Global Backbone Routing
/3224.0.0.0536,870,910536,870,91231.255.255.255Large Global Backbone Routing
/4240.0.0.0268,435,454268,435,45615.255.255.255Large Global Backbone Routing
/5248.0.0.0134,217,726134,217,7287.255.255.255Large Global Backbone Routing
/6252.0.0.067,108,86267,108,8643.255.255.255Large Global Backbone Routing
/7254.0.0.033,554,43033,554,4321.255.255.255Large Global Backbone Routing
/8255.0.0.016,777,21416,777,2160.255.255.255Class A / ISP Supernet Block
/9255.128.0.08,388,6068,388,6080.127.255.255Subnetted Corporate Network
/10255.192.0.04,194,3024,194,3040.63.255.255Subnetted Corporate Network
/11255.224.0.02,097,1502,097,1520.31.255.255Subnetted Corporate Network
/12255.240.0.01,048,5741,048,5760.15.255.255Subnetted Corporate Network
/13255.248.0.0524,286524,2880.7.255.255Subnetted Corporate Network
/14255.252.0.0262,142262,1440.3.255.255Subnetted Corporate Network
/15255.254.0.0131,070131,0720.1.255.255Subnetted Corporate Network
/16255.255.0.065,53465,5360.0.255.255Class B / Large Datacenter Block
/17255.255.128.032,76632,7680.0.127.255Subnetted Corporate Network
/18255.255.192.016,38216,3840.0.63.255Subnetted Corporate Network
/19255.255.224.08,1908,1920.0.31.255Subnetted Corporate Network
/20255.255.240.04,0944,0960.0.15.255Mid-sized Enterprise / Cloud VPC
/21255.255.248.02,0462,0480.0.7.255Mid-sized Enterprise / Cloud VPC
/22255.255.252.01,0221,0240.0.3.255Mid-sized Enterprise / Cloud VPC
/23255.255.254.05105120.0.1.255Mid-sized Enterprise / Cloud VPC
/24255.255.255.02542560.0.0.255Standard Office / Home LAN (Class C)
/25255.255.255.1281261280.0.0.127Subnetted Corporate Network
/26255.255.255.19262640.0.0.63Subnetted Corporate Network
/27255.255.255.22430320.0.0.31Subnetted Corporate Network
/28255.255.255.24014160.0.0.15Small Branch / Server Subnet
/29255.255.255.248680.0.0.7Small Branch / Server Subnet
/30255.255.255.252240.0.0.3Traditional Point-to-Point (2 hosts)
/31255.255.255.254220.0.0.1Point-to-Point Link (RFC 3021)
/32255.255.255.255110.0.0.0Single Host Route (/32)
Open Port Checker
Test external TCP ports (80, 443, 22, 3389, 25565) and verify router port forwarding.
DNS Record Lookup
Inspect A, AAAA, MX, and TXT records for any domain with zero rate limits.
SSL Certificate Checker
Inspect port 443 TLS certificate validity, expiration dates, and issuing certificate authority.

How to Calculate Subnets in 3 Quick Steps

  1. Enter an IPv4 Address

    Type any IPv4 address (e.g. 192.168.1.1, 10.0.0.1, or 172.16.0.5) into the calculator input.

  2. Select CIDR Prefix or Netmask

    Choose your subnet size using the dropdown or CIDR slider from /1 to /32 (such as /24 for standard 255.255.255.0).

  3. Inspect Instant Subnet Breakdown

    Immediately view your Network ID, First Usable Host, Last Usable Host, Broadcast Address, Wildcard Mask, and Binary Octets.

IPv4 CIDR Prefix & Subnet Mask Quick Reference Chart

Reference cheat sheet for commonly configured network masks, host counts, and Cisco wildcard masks:

CIDR PrefixSubnet MaskUsable HostsTotal IPsWildcard MaskTypical Application
/24255.255.255.02542560.0.0.255Standard LAN / Home Office
/25255.255.255.1281261280.0.0.127Split Department Subnet
/26255.255.255.19262640.0.0.63Office Floor / Small Team
/27255.255.255.22430320.0.0.31Server Rack / DMZ Segment
/28255.255.255.24014160.0.0.15Small Cloud Cluster
/29255.255.255.248680.0.0.7ISP Public IP Block
/30255.255.255.252240.0.0.3Point-to-Point Router Link
/31255.255.255.254220.0.0.1RFC 3021 Point-to-Point
/32255.255.255.255110.0.0.0Single Host / Loopback
Deep Dive Technical Guide

IPv4 Subnetting & CIDR Guide: Calculate IP Ranges and Netmasks

Master binary octet math, VLSM network planning, AWS VPC sizing, and Cisco wildcard calculations.

Read Complete Guide →

Frequently Asked Questions About Subnetting & CIDR

What is a subnet and why is subnetting used?

A subnet (subnetwork) is a logical subdivision of an IP network. Subnetting divides a large network into smaller, manageable, and secure subnetworks. It reduces broadcast traffic congestion, improves network routing efficiency, enhances security by isolating segments, and conserves scarce IPv4 address space.

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation is a concise way to represent an IP address and its associated routing prefix. It is written as an IP followed by a slash and the number of bits in the network mask (for example, 192.168.1.0/24). A /24 prefix indicates that the first 24 bits are the network portion and the remaining 8 bits identify individual hosts.

Why can't the network address and broadcast address be assigned to hosts?

In standard IPv4 subnets (/30 through /1), the first address is reserved as the Network ID (used by routers to identify the subnet itself), and the last address is reserved as the Broadcast Address (used to send packets to all devices on that subnet simultaneously). Therefore, the number of usable host addresses in any subnet is 2^(32 - CIDR) - 2.

What is a wildcard mask and how is it used?

A wildcard mask is the bitwise inverse of a subnet mask (255.255.255.255 minus the subnet mask). For example, a /24 subnet mask of 255.255.255.0 has a wildcard mask of 0.0.0.255. Wildcard masks are commonly used in Cisco IOS Access Control Lists (ACLs) and OSPF routing configurations to specify which IP bits must match.

What are RFC 1918 private IP address ranges?

RFC 1918 defines three blocks of IPv4 addresses reserved for private local networks: 10.0.0.0/8 (10.0.0.0 – 10.255.255.255), 172.16.0.0/12 (172.16.0.0 – 172.31.255.255), and 192.168.0.0/16 (192.168.0.0 – 192.168.255.255). These addresses are non-routable on the public internet and require Network Address Translation (NAT) to access external web servers.

Related IP Addressing & Diagnostic Tools

🔢 IP Address Converter📑 Bulk IP Lookup & CSV💻 MAC Address & OUI Vendor Lookup🛠️ View All All 28 Network Tools →