Ko-fiSupport

Subnet Calculator Technical Overview

Calculate IPv4 network ranges, CIDR prefixes (/0 to /32), subnet masks, ACL wildcard masks, and usable host counts instantly. Includes 22+ pre-calculated CIDR reference tables and CCNA worked examples. Verified against RFC 950, RFC 4632 (CIDR), and RFC 3021 (/31 point-to-point) using unsigned 32-bit bitwise arithmetic.

Instant CIDR (/0 to /32) subnet mask and wildcard mask computationNetwork address, broadcast address, and first/last usable host calculation22+ pre-calculated CIDR and RFC 1918 subnet reference breakdown pagesOne-click copy for router and switch configurationEnter Base IPv4 Address: Type any IPv4 host or network address (e.g., 192.168.1.1 or 10.0.0.0) into the IP input field.Select CIDR Prefix (/0 to /32): Choose the CIDR prefix length (such as /24, /26, or /30) from the dropdown selector.
Enterprise & LAN ExamplesMask: 255.240.0.0Usable Hosts: 1,048,574

172.16.0.0/12 RFC 1918 Private Block (255.240.0.0 — 172.16.0.0 to 172.31.255.255)

172.16.0.0/12 is the second RFC 1918 private IPv4 space, uniting 16 contiguous /16 networks (172.16.0.0/16 through 172.31.0.0/16). Docker bridge networks and enterprise WAN cores frequently allocate from this range to avoid colliding with home 192.168.1.0/24 routers on VPN clients.

Calculated IPv4 Parameters for 172.16.0.0/12

Network Address (ID)172.16.0.0/12All host bits set to 0
Directed Broadcast IP172.31.255.255All host bits set to 1
Subnet Mask255.240.0.012 network bits
ACL / OSPF Wildcard Mask0.15.255.255255.255.255.255 − mask
First Usable Host IP172.16.0.1Typical Default Gateway (.1)
Last Usable Host IP172.31.255.254Broadcast IP − 1
Usable Host Capacity1,048,5742^20 − 2 usable hosts
Interesting Octet & Block SizeOctet 2 (Block: 16)1,048,576 total IPv4 addresses

32-Bit Binary Bitwise Breakdown

Routers determine the Network Address by performing a bitwise AND between the 32-bit IPv4 address and the 12-bit Subnet Mask, and compute the Broadcast Address by setting the remaining 20 host bits to 1.

Input IPv4 (172.16.0.0)
10101100.00010000.00000000.00000000
Subnet Mask (255.240.0.0 / 12)
11111111.11110000.00000000.00000000
Bitwise AND → Network ID (172.16.0.0)
10101100.00010000.00000000.00000000
Host Bits = 1 → Broadcast IP (172.31.255.255)
10101100.00011111.11111111.11111111
CCNA 200-301 Speed-Solving Note

How to Solve 172.16.0.0/12 in Under 15 Seconds

Many candidates mistakenly believe 172.16.0.0/16 is the entire RFC 1918 range. In fact, it is a /12 (mask 255.240.0.0, block size 16 in the 2nd octet), covering 172.16.0.0 to 172.31.255.255. Address 172.32.0.1 is a public Internet IP!

Sample Cisco IOS Interface & Routing Configuration

ip access-list standard RFC1918_172_BLOCK
 permit 172.16.0.0 0.15.255.255

Adjacent /12 Subnet Blocks in the Same Octet Boundary

Each /12 block advances by the magic block size of 16 in octet 2. The active block containing 172.16.0.0 is highlighted below.

Block #Subnet ID / CIDRUsable Host RangeDirected Broadcast
#1 172.0.0.0/12172.0.0.1 – 172.15.255.254172.15.255.255
#2 Match172.16.0.0/12172.16.0.1 – 172.31.255.254172.31.255.255
#3 172.32.0.0/12172.32.0.1 – 172.47.255.254172.47.255.255
#4 172.48.0.0/12172.48.0.1 – 172.63.255.254172.63.255.255
#5 172.64.0.0/12172.64.0.1 – 172.79.255.254172.79.255.255
#6 172.80.0.0/12172.80.0.1 – 172.95.255.254172.95.255.255
#7 172.96.0.0/12172.96.0.1 – 172.111.255.254172.111.255.255
#8 172.112.0.0/12172.112.0.1 – 172.127.255.254172.127.255.255

Explore Other Pre-Calculated IPv4 Subnet & CIDR Reference Guides

Jump to another worked CIDR prefix or RFC 1918 enterprise subnet breakdown:

Sponsored