172.16.0.0/12

Private (RFC 1918) RFC 1918

The 172.16.0.0/12 block spans 172.16.0.0 through 172.31.255.255, covering 1,048,576 IP addresses. AWS uses 172.31.0.0/16 as the default VPC CIDR in newly created accounts.

Network Address
172.16.0.0
Broadcast Address
172.31.255.255
Subnet Mask
255.240.0.0
Usable Hosts
1,048,574
First Usable IP
172.16.0.1
Last Usable IP
172.31.255.254
Total IPs
1,048,576
Prefix Length
/12

Network address — the base address of the block (172.16.0.0). All devices in this subnet share this prefix. Cannot be assigned to a host.

Broadcast address — packets sent to 172.31.255.255 are delivered to every device in the subnet. Also reserved — not assignable.

Usable hosts — the 1,048,574 addresses between those two that you can assign to servers, VMs, or interfaces.

Subnet mask255.240.0.0 is the dotted-decimal equivalent of /12. Older tools and Cisco configs use this format instead of CIDR slash notation.

Full Details

CIDR Notation 172.16.0.0/12
Network Address 172.16.0.0
Broadcast Address 172.31.255.255
Subnet Mask 255.240.0.0
Wildcard Mask 0.15.255.255
Prefix Length /12
IP Address Class Class B
Total IP Addresses 1,048,576
Usable Host Addresses 1,048,574
First Usable IP 172.16.0.1
Last Usable IP 172.31.255.254
Network (Hex) 0xAC100000
Broadcast (Hex) 0xAC1FFFFF
Governing RFC RFC 1918
Address Type Private (RFC 1918)

Binary Representation

Network Address
10101100 10101100.00010000.00000000.00000000
Subnet Mask
11111111.11110000.00000000.00000000

The first 12 bits (1s in the mask) identify the network. The remaining 20 bits identify hosts within the network.

Subnet Breakdown — splitting into /13

This /12 block can be divided into 2 /13 subnets.

CIDR Network Broadcast First Usable Last Usable Hosts
172.16.0.0/13 172.16.0.0 172.23.255.255 172.16.0.1 172.23.255.254 524,286
172.24.0.0/13 172.24.0.0 172.31.255.255 172.24.0.1 172.31.255.254 524,286

Common Use Cases

  • AWS default VPC (172.31.0.0/16)
  • Mid-size enterprise networks
  • Docker default bridge network (172.17.0.0/16)
  • Container orchestration clusters

/12 Subnet Reference

Total IPs 1,048,576
Usable Hosts 1,048,574
Subnet Mask 255.240.0.0
Wildcard 0.15.255.255

Calculate Another