/12 subnet (CIDR)

A /12 network has subnet mask 255.240.0.0, 1,048,576 total addresses and 1,048,574 usable hosts.

255.240.0.0Subnet mask
0.15.255.255Wildcard mask
1,048,576Addresses
1,048,574Usable hosts

Open 10.0.0.0/12 in the subnet calculator →

Details

PropertyValue
Network bits12
Host bits20
Mask in binary11111111.11110000.00000000.00000000
Mask in hex0xFFF00000
Total addresses220 = 1,048,576
Usable hosts220 − 2 = 1,048,574
Number of /24s inside4,096
Historic class equivalent—

Typical use: 172.16.0.0/12 private block.

Example: 10.0.0.0/12

Network 10.0.0.0, broadcast 10.15.255.255, hosts 10.0.0.1 to 10.15.255.254.

Neighbouring prefixes

Each step of one bit halves (or doubles) the size: a /12 holds two /13s.

Frequently asked questions

How many hosts in a /12?
1,048,574 usable out of 1,048,576 addresses.
What is the subnet mask for /12?
255.240.0.0 (binary 11111111.11110000.00000000.00000000).