Productivity and Utilities

IPv6 Subnet Planner

Enter an IPv6 prefix and a longer length to cut it into subnets and list them.

Your numbers

Example prefix from the documentation range. Any address and length, such as 2001:db8::/32. Host bits are cleared for you.

Must be as long as the prefix length or longer, up to 128.

Between 1 and 256 subnets are written out.

Counting from 0. Use it to jump ahead in a long list.

Result

Subnets of /64

65,536

2001:db8:abcd::/48 cut into /64 blocks.

Host bits in each subnet
64
Bits added to the prefix
16
Listed below
8 of 65,536

The prefix and the size of each subnet

ItemValue
Prefix, compressed2001:db8:abcd::/48
Prefix, expanded2001:0db8:abcd:0000:0000:0000:0000:0000/48
Addresses in each subnet18,446,744,073,709,551,616

Subnets 0 to 7

No.SubnetFirst addressLast address
02001:db8:abcd::/642001:db8:abcd::2001:db8:abcd:0:ffff:ffff:ffff:ffff
12001:db8:abcd:1::/642001:db8:abcd:1::2001:db8:abcd:1:ffff:ffff:ffff:ffff
22001:db8:abcd:2::/642001:db8:abcd:2::2001:db8:abcd:2:ffff:ffff:ffff:ffff
32001:db8:abcd:3::/642001:db8:abcd:3::2001:db8:abcd:3:ffff:ffff:ffff:ffff
42001:db8:abcd:4::/642001:db8:abcd:4::2001:db8:abcd:4:ffff:ffff:ffff:ffff
52001:db8:abcd:5::/642001:db8:abcd:5::2001:db8:abcd:5:ffff:ffff:ffff:ffff
62001:db8:abcd:6::/642001:db8:abcd:6::2001:db8:abcd:6:ffff:ffff:ffff:ffff
72001:db8:abcd:7::/642001:db8:abcd:7::2001:db8:abcd:7:ffff:ffff:ffff:ffff
How this was calculated
  1. The address is read as a 128-bit number and the host bits after the prefix length are cleared.
  2. Adding 16 bits to the prefix gives 2^16 subnets. Each one holds 2^64 addresses.
  3. Subnet number n starts at the prefix plus n times the subnet size. Addresses are written in the compressed form of RFC 5952: lowercase, no leading zeros, and the longest run of two or more zero groups shortened to ::.

Calculated using SumPanda.com · https://sumpanda.com/ipv6-subnet-planner/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the ipv6 subnet planner

  1. Type an IPv6 prefix with its length, such as 2001:db8:abcd::/48. Full, shortened and upper case spellings are all accepted.
  2. Enter the length of the subnets you want to cut it into. It must be as long as the prefix length or longer, and at most 128.
  3. Choose how many subnets to list (1 to 256) and which number to start at, counting from 0.
  4. Read the count of subnets, the number of addresses in each one and the table of first and last addresses.

Formula

subnets = 2^(new length - prefix length)

addresses in each subnet = 2^(128 - new length)

subnet n starts at prefix + n x 2^(128 - new length)

The address is treated as a 128-bit number, so every step is exact even when there are far more subnets than a computer could list.

A /48 cut into /64 subnets

A site with 2001:db8:abcd::/48 has 2^(64 - 48) = 65,536 subnets of length /64. Each holds 2^64 = 18,446,744,073,709,551,616 addresses.

Subnet 0 is 2001:db8:abcd::/64, which runs to 2001:db8:abcd:0:ffff:ffff:ffff:ffff, and subnet 1 is 2001:db8:abcd:1::/64. The last address of subnet 0 is written with a lone 0 group because a single zero group is never shortened.

Writing IPv6 addresses the standard way

The compressed form follows RFC 5952: letters in lower case, no leading zeros in a group, and the longest run of two or more zero groups replaced by a double colon (the first run if two tie). A single zero group is left as 0. The page also shows the expanded form with all eight groups of four digits.

An address typed with host bits set, such as 2001:db8::ff/32, is accepted and the extra bits are cleared, with a note so you can see what was done.

Planning with /64 subnets

Most IPv6 networks use /64 for each segment, because several features expect that size. A home or small site often gets a /56 or /48, giving 256 or 65,536 segments. For IPv4 planning use the Subnet Calculator and the VLSM Subnet Planner, and to merge ranges use the CIDR Aggregator.

Assumptions and limits

  • The prefix is a standard IPv6 address followed by a slash and a length from 0 to 128.
  • All subnets have the same length. Mixed sizes need a separate plan for each size.
  • Zone identifiers such as %eth0 are not accepted, and a dotted IPv4 ending is read as the last 32 bits.
  • At most 256 subnets are written out at a time; the starting number can be as large as 9,007,199,254,740,991.
  • Reserved ranges, such as the documentation prefix 2001:db8::/32 used in the example, are treated like any other.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

Why does the page say the prefix was changed?

Bits after the prefix length belong to hosts, not to the network. The page clears them so the prefix is the true start of the block, and tells you when it did.

How many addresses is a /64?

2^64, which is 18,446,744,073,709,551,616. That is 4 billion times the whole IPv4 address space.

Can I split into subnets smaller than /64?

Yes, up to /128. The page does the arithmetic for any length, but many networks need /64 for automatic addressing to work.

Why are some last addresses written with a single 0?

The standard says a double colon must replace at least two groups, so a lone zero group stays as 0.