← CIDR calculator

The /12 subnet, explained

Everything about a /12 CIDR block — mask, address count, usable hosts and where a /12 fits in real network plans.

1,048,576
Total addresses
1,048,574
Usable hosts
255.240.0.0
Subnet mask
0.15.255.255
Wildcard mask
Prefix length/12 — 12 network bits, 20 host bits
Subnet mask255.240.0.0
Wildcard (ACL) mask0.15.255.255
Binary mask11111111.11110000.00000000.00000000
Total addresses2^20 = 1,048,576
Usable hosts1,048,574 (total − network − broadcast)
Contains4,096 × /24 subnets
Example block10.0.0.0/12

Notes

A /12 prefix means the first 12 bits of the 32-bit IPv4 address identify the network and the remaining 20 bits identify hosts — giving 2^20 = 1,048,576 addresses. The first address (network) and the last (broadcast) are not assignable in a standard subnet.

Cloud sizing: a /12 is larger than the maximum AWS VPC (/16). Blocks this size are carved into multiple VPCs or used in on-prem/enterprise addressing plans.

Adjacent sizes: /8 · /9 · /10 · /11 · /13 · /14 · /15 · /16 · /17 · /18 · /19 · /20 · /21 · /22 · /23 · /24 · /25 · /26 · /27 · /28 · /29 · /30 · /31 · /32

Frequently asked questions

How many IP addresses are in a /12?

1,048,576 total addresses, of which 1,048,574 are usable hosts (network and broadcast addresses are reserved).

What is the subnet mask for /12?

255.240.0.0 (wildcard mask 0.15.255.255).

What does /12 mean in an IP address?

The /12 suffix is CIDR notation: the first 12 bits are the network part, the last 20 bits are the host part.

Found this useful? 113 free, browser-only tools by Yuvrajsinh Jadav — an engineer who ships production AI systems. No account, nothing sent anywhere.