The /12 subnet

A /12 subnet uses the mask 255.240.0.0 and holds 1,048,576 addresses, 1,048,574 of them usable.

/12
Prefix length
255.240.0.0
Subnet mask
0.15.255.255
Wildcard mask
1,048,574
Usable hosts

A /12 is a large network of 1,048,576 addresses, 1,048,574 of them usable, with the mask 255.240.0.0. It is bigger than most single sites need and is usually subdivided.

Address plans use a /12 as a site-level or campus-level supernet, then split it into /24s or smaller per VLAN. The wildcard 0.15.255.255 matches the whole block in an access list.

Below you can see the exact network, broadcast, and host range for any /12 you enter, calculated instantly in your browser.

Calculate a /12 network

Accepts CIDR (192.0.2.0/24), IP + mask (192.0.2.0 255.255.255.0), or a bare IP (defaults to /24).

Network address172.16.0.0
Usable host range172.16.0.1 - 172.31.255.254
Broadcast address172.31.255.255
Usable hosts1,048,574
Subnet mask255.240.0.0
Wildcard mask0.15.255.255
CIDR notation172.16.0.0/12
Total addresses1,048,576
IP (binary)10101100.00010000.00000000.00000000
Mask (binary)11111111.11110000.00000000.00000000
Try:

Example: 172.16.0.0/12

Taking 172.16.0.0/12 as a worked example, the block breaks down like this:

Network address172.16.0.0
Usable range172.16.0.1 - 172.31.255.254
Broadcast address172.31.255.255
Total addresses1,048,576
Usable hosts1,048,574
Size16 class B blocks

Frequently asked questions

What is the subnet mask for a /12?

A /12 uses the subnet mask 255.240.0.0. Its wildcard mask, used in access lists, is 0.15.255.255.

How many hosts are in a /12 subnet?

A /12 has 1,048,576 total addresses and 1,048,574 usable hosts (the total minus the network and broadcast addresses, except for /31 and /32).

What is a /12 used for?

Large network. It is equivalent to 16 class B blocks.

How do I calculate a /12 network?

Set the host bits to zero for the network address and to one for the broadcast address. The calculator on this page does it for any /12 block you enter.