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

Prefix Expansion Calculator

List child prefixes at a selected length.

Prefix Expansion 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 Prefix Expansion Calculator Works?

This tool works by stepping through a parent prefix in increments of the child block size and listing every child prefix.

  1. Enter the parent prefix

    Type a block such as 10.20.0.0/22.

  2. Choose the child length

    Pick a longer prefix, such as /25.

  3. Step through the parent

    The calculator starts at the parent network and adds 128 addresses (the /25 block size) per step.

  4. List each child

    Each row shows the child prefix, host range, and broadcast. A /22 into /25 gives 8 rows.

Prefix Expansion Calculator Formula

The formula is Child_k = Parent Network + k × 2^(32 − c), for k from 0 to 2^(c − p) − 1.

Kth child

C_k = N + k × 2^(32−c)

c is the child prefix length.

Number of children

2^(c − p)

Parent length p, child length c.

Last child

C_last = N + (2^(c−p) − 1) × 2^(32−c)

Ends at the parent broadcast.

Worked example: 10.20.0.0/22 into /25

Children = 2^(25 − 22) = 8
Step     = 2^7 = 128 addresses
C_0 = 10.20.0.0/25     C_1 = 10.20.0.128/25
C_7 = 10.20.0.0 + 7 × 128 = 10.20.3.128/25

Prefix Expansion Calculator Conversion Table

The table expands 10.20.0.0/22 into its 8 child /25 prefixes, with the host range and broadcast of each child.

#Child PrefixFirst HostLast HostBroadcast
110.20.0.0/2510.20.0.110.20.0.12610.20.0.127
210.20.0.128/2510.20.0.12910.20.0.25410.20.0.255
310.20.1.0/2510.20.1.110.20.1.12610.20.1.127
410.20.1.128/2510.20.1.12910.20.1.25410.20.1.255
510.20.2.0/2510.20.2.110.20.2.12610.20.2.127
610.20.2.128/2510.20.2.12910.20.2.25410.20.2.255
710.20.3.0/2510.20.3.110.20.3.12610.20.3.127
810.20.3.128/2510.20.3.12910.20.3.25410.20.3.255

What is Prefix Expansion Calculator?

The Prefix Expansion Calculator is a tool that lists every child prefix of a chosen length inside a parent prefix.

Expansion turns a single block into a complete list. A /22 expanded to /24 gives 4 entries, and the same /22 expanded to /28 gives 64 entries. The list is the starting point for VLAN tables, route filters, and allocation sheets.

The Subnet Count Calculator returns only the number of children. The Prefix Expansion Calculator returns the children themselves, each with its host range and broadcast address.

What are the uses of Prefix Expansion Calculator?

There are 4 main uses of the Prefix Expansion Calculator, including allocation tables, prefix lists, and de-aggregation.

  • Building allocation tables

    IPAM imports need one row per subnet. The expansion gives every row.

  • Writing prefix lists

    BGP prefix lists sometimes list each more-specific prefix. The expansion produces the entries.

  • De-aggregating announcements

    Traffic engineering announces more-specific prefixes. The expansion lists the /24s inside a /22.

  • Populating VLAN plans

    Each child prefix maps to one VLAN in a numbered plan.