How an IP Address Is Structured

An IPv4 address like 192.168.1.100 is actually a 32-bit binary number, split into four 8-bit groups (octets) for readability. Internally it looks like 11000000.10101000.00000001.01100100. Every IP address has two parts: a network part (which network it belongs to) and a host part (which specific device on that network).

What the Prefix Length Means

CIDR notation (/n) tells you how many of the 32 bits are reserved for the network. The remaining bits identify individual hosts on that network.

💡 /24 = first 24 bits are the network → 8 bits left for hosts → 2⁸ = 256 addresses (254 usable)

Common Prefix Lengths at a Glance

PrefixSubnet MaskTotal IPsUsable HostsTypical Use
/8255.0.0.016,777,21616,777,214ISPs, large enterprises
/16255.255.0.065,53665,534Corporate networks, AWS VPC
/24255.255.255.0256254Office LAN, home network
/28255.255.255.2401614Small AWS subnets
/30255.255.255.25242Router point-to-point links
/32255.255.255.2551Single hostSpecific host routes, firewall rules

Breaking Down Each Common Prefix

/24 — The Most Common Choice

192.168.1.0/24: the first three octets (192.168.1) identify the network; the last octet (.0 to .255) identifies hosts. Two addresses are reserved: the network address (.0) and the broadcast address (.255), leaving 254 usable. Default for home routers and small office networks.

/16 — Medium to Large Scale

10.0.0.0/16 gives you 65,534 usable addresses. Ideal for AWS VPCs where you'll divide the space into multiple smaller /24 or /28 subnets across availability zones.

/8 — Very Large Networks

The entire 10.0.0.0/8 private range contains over 16 million addresses. Used by large data centers and ISPs for internal routing. RFC 1918 defines three private ranges that are non-routable on the public internet.

Private IP Address Ranges (RFC 1918)

RangeCIDRCommon Use
10.0.0.0 – 10.255.255.255/8Enterprise networks
172.16.0.0 – 172.31.255.255/12Mid-size internal networks
192.168.0.0 – 192.168.255.255/16Home / SOHO networks

These ranges are never routed on the public internet. Use them freely for internal addressing.

Practical Examples

💡 The subnet calculator below lets you enter any IP address and prefix, then instantly shows the network address, broadcast address, and full usable host range — no mental arithmetic required.