Home Net Guide

Home / Subnet calculator / /12

/12 subnet: mask 255.240.0.0

A /12 network holds 1,048,576 addresses, of which 1,048,574 can be given to devices. Its subnet mask is 255.240.0.0.

Prefix length (CIDR)
/12
Subnet mask
255.240.0.0
Wildcard mask
0.15.255.255
Mask in binary
11111111.11110000.00000000.00000000
Network bits / host bits
12 / 20
Total addresses
1,048,576 (2 to the power of 20)
Usable host addresses
1,048,574 (the first address names the network and the last is the broadcast address)
Contains
4,096 networks of size /24

What a /12 is used for

The /12 everyone meets is 172.16.0.0/12, the middle of the three private ranges, running from 172.16.0.0 to 172.31.255.255. It is less used at home than 192.168.x.x, which makes it a good choice when you want to avoid clashing with other networks. Docker takes its default networks from it, starting at 172.17.0.0/16.

Worked example: which /12 is 10.77.20.130 in?

The mask's value in the second octet is 240, so networks advance in steps of 256 minus 240, which is 16, in that octet: 0, 16, 32, 48 and so on up to 240. The second octet of 10.77.20.130 is 77, which falls in the step that starts at 64. The network is therefore 10.64.0.0/12.

Network
10.64.0.0/12
Usable range
10.64.0.1 to 10.79.255.254
Broadcast address
10.79.255.255
Next /12 begins at
10.80.0.0/12

Open this example in the subnet calculator to see it bit by bit, or to try your own address.

All 16 /12 networks in 10.0.0.0/8

NetworkUsable rangeBroadcast
10.0.0.0/1210.0.0.1 to 10.15.255.25410.15.255.255
10.16.0.0/1210.16.0.1 to 10.31.255.25410.31.255.255
10.32.0.0/1210.32.0.1 to 10.47.255.25410.47.255.255
10.48.0.0/1210.48.0.1 to 10.63.255.25410.63.255.255
10.64.0.0/1210.64.0.1 to 10.79.255.25410.79.255.255
10.80.0.0/1210.80.0.1 to 10.95.255.25410.95.255.255
10.96.0.0/1210.96.0.1 to 10.111.255.25410.111.255.255
10.112.0.0/1210.112.0.1 to 10.127.255.25410.127.255.255
10.128.0.0/1210.128.0.1 to 10.143.255.25410.143.255.255
10.144.0.0/1210.144.0.1 to 10.159.255.25410.159.255.255
10.160.0.0/1210.160.0.1 to 10.175.255.25410.175.255.255
10.176.0.0/1210.176.0.1 to 10.191.255.25410.191.255.255
10.192.0.0/1210.192.0.1 to 10.207.255.25410.207.255.255
10.208.0.0/1210.208.0.1 to 10.223.255.25410.223.255.255
10.224.0.0/1210.224.0.1 to 10.239.255.25410.239.255.255
10.240.0.0/1210.240.0.1 to 10.255.255.25410.255.255.255

One size up and one size down

Each bit removed from the prefix doubles a network, and each bit added halves it. A /11 is twice the size, with 2,097,150 usable addresses, and a /13 is half the size, with 524,286 usable addresses. The table of every prefix size compares them all.