SpeedDrain
RFC 4632 CIDR · RFC 1918 Private IP · RFC 3021

IPv4 Subnet & CIDR Calculator

Design network subnets, calculate broadcast bounds and usable host IP ranges, and visualize binary bit allocations in real time.

Subnet Presets:
/24 • Mask: 255.255.255.0
/8 (16.7M)/16 (65.5K)/24 (256)/28 (16)/30 (4)/32 (1)
Network Address

192.168.1.0/24

Routing identifier for subnet

Broadcast Address

192.168.1.255

Reserved for subnet-wide broadcast

Subnet Mask

255.255.255.0

Wildcard: 0.0.0.255

Usable Host Range

192.168.1.1 — 192.168.1.254

Assign to network cards, VM interfaces, or DHCP pools

Capacity

254 Usable

256 Total IP addresses (2^8)

LAN
Address Scope

RFC 1918 Private

192.168.0.0/16 (Class C Private)

IPv4
Classful Legacy

Class C (/24 Default)

Supernetted via Classless Inter-Domain Routing (CIDR)

Binary Bit Representation (Network vs Host Bits)
IP Binary:11000000.10101000.00000001.00000001
Mask Binary (/24):
11111111.11111111.11111111.00000000

IPv4 Subnetting & CIDR Cheatsheet

1. Understanding CIDR Notation

Classless Inter-Domain Routing replaces rigid Class A/B/C address blocks with variable length subnet masks (/1 to /32). The prefix length (such as /24) denotes the exact count of fixed network bits, leaving the remaining bits for host addressing.

2. Why Subtract 2 Usable Hosts?

In standard IPv4 subnets, two host addresses are reserved by networking standards: the lowest address (all host bits 0) represents the Network ID, and the highest address (all host bits 1) serves as the Broadcast Address.

3. RFC 1918 Private Ranges

Private subnets intended for LANs, Docker bridges, and VPC clouds are never routed over the public internet: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.

Common CIDR Prefix Reference Table

CIDR PrefixSubnet MaskTotal IP AddressesUsable Host Capacity
/16255.255.0.065,53665,534 hosts (AWS / GCP VPC size)
/24255.255.255.0256254 hosts (Standard office / home LAN)
/28255.255.255.2401614 hosts (Micro-service subnet)
/30255.255.255.25242 hosts (Legacy router point-to-point)
/32255.255.255.25511 host (Single static host route)