Skip to content
Tape and Square

N-01 · Subnet · /12

/12 subnet

A /12 network keeps 12 of the 32 address bits for the network and leaves 20 for hosts. Its mask, host count, the blocks it fits in and example networks, all worked out below.

Short answer

Subnet mask
255.240.0.0Wildcard 0.15.255.255
Usable hosts
1,048,5741,048,576 addresses in total

2^20 = 1,048,576 addresses. The first is the network address and the last the broadcast, so 1,048,574 can go to devices.

The /12 mask in binary and hex

12 one bits, then 20 zero bits. The wildcard is the mask inverted.

MaskDottedHex
Subnet mask255.240.0.0FF.F0.00.00
Wildcard0.15.255.25500.0F.FF.FF

The mask ends inside the second octet, at 240 (11110000). That leaves 4 host bits in the octet, so /12 networks start every 16 in it: 0, 16, 32, 48 and so on. Cisco access lists take the wildcard form, 0.15.255.255, where a 1 bit means “any value” (Cisco document 23602).

RFC 1878's table lists /12 as FF.F0.00.00 hex, 1024 K addresses, equal to 16 B in the old class terms. RFC 1878's host tables start at /17. The 1,048,574 usable figure is the same 2^20 − 2 rule, and Cisco's host and subnet table lists it.

How many /12 subnets fit

The three private ranges (RFC 1918) and one /24.

Block/12 subnets in it
10.0.0.0/816
172.16.0.0/121 (same size)
192.168.0.0/16none: one /12 holds 16
10.100.181.0/24none: one /12 holds 4,096

A /12 is exactly the size of the private range 172.16.0.0/12. 10.0.0.0/8 holds 16 /12 subnets. A /12 is larger than 192.168.0.0/16, so a private network of this size has to come from 10.0.0.0/8 or 172.16.0.0/12. One /12 spans 4,096 /24s.

Splitting a /12

Each extra prefix bit halves the block.

IntoSubnetsUsable each
/132524,286
/144262,142
/158131,070

Two /13 subnets hold 1,048,572 usable addresses between them, 2 fewer than one /12: each half gives up its own network and broadcast address.

/12 subnets of 10.0.0.0/8

10.0.0.0/8 holds 16 of them. The row in bold holds 10.100.181.150.

SubnetFirst usableLast usable
10.0.0.0/1210.0.0.110.15.255.254
10.16.0.0/1210.16.0.110.31.255.254
10.32.0.0/1210.32.0.110.47.255.254
10.48.0.0/1210.48.0.110.63.255.254
10.64.0.0/1210.64.0.110.79.255.254
10.80.0.0/1210.80.0.110.95.255.254
10.96.0.0/1210.96.0.110.111.255.254
10.112.0.0/1210.112.0.110.127.255.254
10.128.0.0/1210.128.0.110.143.255.254
10.144.0.0/1210.144.0.110.159.255.254
10.160.0.0/1210.160.0.110.175.255.254
10.176.0.0/1210.176.0.110.191.255.254
10.192.0.0/1210.192.0.110.207.255.254
10.208.0.0/1210.208.0.110.223.255.254
10.224.0.0/1210.224.0.110.239.255.254
10.240.0.0/1210.240.0.110.255.255.254

Special-purpose /12 blocks

Blocks of exactly this size in the IANA IPv4 Special-Purpose Address Space registry.

BlockUse
172.16.0.0/12Private-Use

Check an address

Pre-filled with 10.100.181.150/12. Change the address or the prefix.

/12

Also accepts 192.168.1.130 255.255.255.192, 192.168.1.0 60 hosts or IPv6 like 2001:db8::/48.

Result

10.96.0.0/12

1,048,574 usable hosts

Network
10.96.0.0
First usable
10.96.0.1
Last usable
10.111.255.254
Broadcast
10.111.255.255
Subnet mask
255.240.0.0
Wildcard mask
0.15.255.255
Total addresses
1,048,576
PRIVATE

Inside 10.0.0.0/8, a private range (RFC 1918). Not routable on the public internet.

Binary view

Address · 10.100.181.150
00001010.01100100.10110101.10010110
Mask · 255.240.0.0
11111111.11110000.00000000.00000000
Network · 10.96.0.0
00001010.01100000.00000000.00000000

Bold bits are fixed for the network; orange bits number the hosts.

10.0.0.0/8 split into /12

  1. 10.96.0.0/12.96.0.1–.111.255.254 ◂

/12 next to /11 and /13

One bit shorter, a /11 (255.224.0.0) has 2,097,152 addresses and 2,097,150 usable, 1,048,576 more than a /12. One bit longer, /13 (255.248.0.0) has 524,288 addresses and 524,286 usable. /11 subnet · /13 subnet

Ask the calculator for a host count and it answers /12 for 524,287 to 1,048,574 hosts: typing "10.96.0.0 1,048,574 hosts" gives this size, one more host gives a /11.

Worked example

Take 10.100.181.150/12. The mask ends in the second octet. There the address is 100 = 01100100 and the mask 240 = 11110000; AND keeps the first 4 bits: 01100000 = 96. The octets after it become 0, so the network is 10.96.0.0. OR the wildcard 0.15.255.255 onto it to set every host bit: 10.111.255.255, the broadcast.

Devices use 10.96.0.1 through 10.111.255.254: 1,048,574 addresses. 10.100.181.150 is number 308,630 of them. In 10.0.0.0/8 this is subnet 7 of 16.

References

  • RFC 4632, Classless Inter-domain Routing (CIDR), §3.1: prefix lengths and block sizes.
  • RFC 950, Internet Standard Subnetting Procedure: subnet masks.
  • RFC 1878, Variable Length Subnet Table For IPv4, the prefix table.
  • Cisco Tech Note 13790, Understand Host and Subnet Quantities: usable hosts per prefix.
  • RFC 1918, Address Allocation for Private Internets: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
  • IANA IPv4 Special-Purpose Address Space registry (updated 2025-10-09).

Other prefixes