Subnet calculator › CIDR /12
/12 subnet mask (255.240.0.0)
A /12 uses the first 12 bits for the network and the remaining 20 bits for hosts: 1,048,576 addresses, 1,048,574 usable hosts.
| CIDR notation | /12 |
|---|---|
| Subnet mask | 255.240.0.0 |
| Wildcard mask | 0.15.255.255 |
| Binary mask | 11111111.1111|0000.00000000.00000000 |
| Hex mask | 0xFFF00000 |
| Total addresses | 1,048,576 (220) |
| Usable hosts | 1,048,574 · 1,048,576 addresses minus the network and broadcast addresses. |
| Block size | The second octet changes in steps of 16 |
What is a /12 used for?
- Private
172.16.0.0/12(172.16.0.0 to 172.31.255.255) - Docker picks default bridge networks such as
172.17.0.0/16from inside it
/12 address range examples
Splitting 10.0.0.0/8 into /12 gives 16 subnets. The first 8 are shown.
| Network | Usable range | Broadcast |
|---|---|---|
| 10.0.0.0/12 | 10.0.0.1 ~ 10.15.255.254 | 10.15.255.255 |
| 10.16.0.0/12 | 10.16.0.1 ~ 10.31.255.254 | 10.31.255.255 |
| 10.32.0.0/12 | 10.32.0.1 ~ 10.47.255.254 | 10.47.255.255 |
| 10.48.0.0/12 | 10.48.0.1 ~ 10.63.255.254 | 10.63.255.255 |
| 10.64.0.0/12 | 10.64.0.1 ~ 10.79.255.254 | 10.79.255.255 |
| 10.80.0.0/12 | 10.80.0.1 ~ 10.95.255.254 | 10.95.255.255 |
| 10.96.0.0/12 | 10.96.0.1 ~ 10.111.255.254 | 10.111.255.255 |
| 10.112.0.0/12 | 10.112.0.1 ~ 10.127.255.254 | 10.127.255.255 |
Splitting a /12 further
| Split into | Subnets | Hosts each |
|---|---|---|
| /13 | 2 | 524,286 |
| /14 | 4 | 262,142 |
| /15 | 8 | 131,070 |
| /16 | 16 | 65,534 |
| /17 | 32 | 32,766 |
| /18 | 64 | 16,382 |
| /19 | 128 | 8,190 |
| /20 | 256 | 4,094 |
How many /12s fit in a larger block
- One /8 holds 16 /12 subnets