Skip to main content
IP Range CalculatorPRO
IPv4 Subnetting & RangeInstant Client-Side Tool

Subnet Count Calculator

Count child prefixes within a parent.

Subnet Count Calculator: inputs and results

Enter an IP address, CIDR prefix, or range. Then check its first and last address below.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

How Subnet Count Calculator Works?

This tool works by subtracting the parent prefix length from the child prefix length and raising 2 to the difference.

  1. Enter the parent prefix

    Type the parent block, for example 10.0.0.0/16.

  2. Enter the child prefix

    Type the target size, such as /24.

  3. Count the borrowed bits

    Borrowed bits = 24 − 16 = 8.

  4. Compute the count

    2^8 = 256 child subnets, each with 254 usable hosts.

Subnet Count Calculator Formula

The formula is Subnets = 2^(child prefix − parent prefix).

Child subnets

S = 2^(c − p)

Requires c ≥ p.

Borrowed bits

b = c − p

Bits moved from the host field to the network field.

Hosts per child

H = 2^(32 − c) − 2

Standard rule.

Total usable hosts

S × H

Usable hosts across all child subnets.

Worked example: /16 parent into /26 children

Borrowed bits = 26 − 16 = 10
Subnets       = 2^10 = 1,024
Hosts each    = 2^6 − 2 = 62
Total hosts   = 1,024 × 62 = 63,488

Subnet Count Calculator Conversion Table

The table shows how many child subnets fit in a /16 parent at 13 child prefix lengths, with hosts per child and total hosts.

ParentChild PrefixBorrowed BitsChild SubnetsHosts per ChildTotal Hosts
/16/182416,38265,528
/16/19388,19065,520
/16/204164,09465,504
/16/215322,04665,472
/16/226641,02265,408
/16/23712851065,280
/16/24825625465,024
/16/25951212664,512
/16/26101,0246263,488
/16/27112,0483061,440
/16/28124,0961457,344
/16/29138,192649,152
/16/301416,384232,768

What is Subnet Count Calculator?

The Subnet Count Calculator is a tool that returns how many child subnets of one prefix length fit inside a parent prefix. A /16 holds 256 /24 subnets and 1,024 /26 subnets.

Each bit borrowed from the host field doubles the number of child subnets. The Subnet Count Calculator shows this trade-off: more subnets mean fewer hosts per subnet.

Classful-era textbooks subtracted 2 subnets for the "subnet zero" and "all-ones subnet". RFC 1878 and modern devices allow both, so the calculator uses the full 2^b count.

What are the uses of Subnet Count Calculator?

There are 4 main uses of the Subnet Count Calculator, including address plan sizing, VLAN capacity, and exam math.

  • Sizing address plans

    A /16 carved into /24s supports 256 VLANs or sites.

  • Checking VLAN capacity

    A campus with 300 VLANs needs more than a /16 split into /24s.

  • Comparing design options

    Engineers compare 64 × /22 against 256 × /24 from the same /16.

  • Solving exam questions

    Exams ask "how many subnets does borrowing 5 bits create". The answer is 2^5 = 32.