The /13 subnet

A /13 subnet uses the mask 255.248.0.0 and holds 524,288 addresses, 524,286 of them usable.

Reference data last reviewed:

/13
Prefix length
255.248.0.0
Subnet mask
0.7.255.255
Wildcard mask
524,286
Usable hosts

The /13 mask is 13 network bits followed by 19 host bits, for a total of 32 bits.

13 network bits (the 1s)19 host bits (the 0s)

A /13 is a large network of 524,288 addresses, 524,286 of them usable, with the mask 255.248.0.0. It is bigger than most single sites need and is usually subdivided.

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

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

Calculate a /13 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.23.255.254
Broadcast address172.23.255.255
Usable hosts524,286
Subnet mask255.248.0.0
Wildcard mask0.7.255.255
CIDR notation172.16.0.0/13
Total addresses524,288
IP (binary)10101100.00010000.00000000.00000000
Mask (binary)11111111.11111000.00000000.00000000
Try:

Example: 172.16.0.0/13

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

Network address172.16.0.0
Usable range172.16.0.1 - 172.23.255.254
Broadcast address172.23.255.255
Total addresses524,288
Usable hosts524,286
Size8 class B blocks

A note on the example: 172.16.0.0 is in 172.16.0.0/12, private-use space under RFC 1918. The mid-sized private range, 172.16.0.0 through 172.31.255.255. Every example on this site uses reserved space on purpose, so nothing here points at somebody's real network.

Splitting a /13 into smaller subnets

Borrowing bits from the host part doubles the number of subnets and halves the size of each one. This is what a /13 looks like at the next 4 prefix lengths.

How a /13 block divides into longer prefixes
Split intoSubnetsMaskUsable hosts each
/142255.252.0.0262,142
/154255.254.0.0131,070
/168255.255.0.065,534
/1716255.255.128.032,766

Each subnet has to start on a multiple of its own size, which is what keeps the blocks from overlapping. Working the other way, from a host count back to a prefix, is what subnet by host count is for.

Do this from the terminal

The same numbers are available as keyless JSON, and there are good local tools that need no network at all. Naming them costs nothing and is more useful than pretending this page is the only option.

curl -s https://subnetkit.dev/api/cidr/13.json | jq

# or locally, with no network at all:
ipcalc 172.16.0.0/13
sipcalc 172.16.0.0/13

ipcalc ships in most Linux distributions and sipcalc handles IPv4 and IPv6. The SubnetKit API is the one to reach for in a build step or a script that wants the same values this page shows.

Frequently asked questions

What is the subnet mask for a /13?

A /13 uses the subnet mask 255.248.0.0. Its wildcard mask, used in access lists, is 0.7.255.255.

How many hosts are in a /13 subnet?

A /13 has 524,288 total addresses and 524,286 usable hosts (the total minus the network and broadcast addresses, except for /31 and /32).

What is a /13 used for?

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

How do I calculate a /13 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 /13 block you enter.

How many /14 subnets fit in a /13?

2, each with 262,142 usable hosts and the mask 255.252.0.0. Every extra bit you borrow doubles the number of subnets and halves the size of each one.

Opening a port on a /13

A firewall rule needs two halves: the range and the port. The wildcard mask 0.7.255.255 matches this whole block in an access list. For the other half, the port number reference lists what each TCP and UDP port carries and whether it is encrypted by default, so you can tell what you are about to expose to 524,286 addresses.

Sources

The arithmetic on this page follows the documents below. Every number is computed from the prefix length rather than stored, and the calculation is covered by tests over all 33 prefixes.

Spotted something wrong? Tell us and it gets corrected. How the data is maintained is described on the about page.