1. Home
  2. Developer tools
  3. IPv6 Subnet Calculator

IPv6 Subnet Calculator

Plan IPv6 addressing: enter a prefix and see its range, its size and how many /64 LANs fit, then list the first subnets to hand out.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use IPv6 Subnet Calculator

  1. Enter a prefix such as 2001:db8:abcd::/48.
  2. Read the range and the number of /64 subnets.
  3. Copy the subnets you need.

Features

  • Any prefix from /1 to /128
  • Exact counts with big integers
  • Number of /64 subnets inside
  • Lists the first 16 /64 subnets of a larger prefix
  • Full and short notation
  • Notes on /64, /127 and longer prefixes

Supported formats

Input

  • IPv6 prefix with length

You get

  • First and last address
  • Subnet count
  • Sample subnets

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the IPv6 Subnet Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Counts above what fits in a normal number are shown as exact whole numbers or powers of two.
  • Only the first subnets are listed; the full list of a large split would be millions of lines.

Guide

Planning IPv6 networks from a delegated prefix

IPv6 planning feels different from IPv4 planning because the question changes. In IPv4 you count hosts and squeeze them into the smallest block. In IPv6 every ordinary LAN gets a /64, and the real planning task is deciding how a larger prefix is divided into /64 networks. This page takes a prefix and shows its range, how many /64 networks it contains and the first subnets in the list.

Prefix sizes you will meet

Registries give a provider a block of /32 or shorter, and providers delegate smaller prefixes to customers. A /48 for a site or business and a /56 for a home are common choices; RFC 6177 advises giving an end site more than a single /64. Within the customer’s prefix, each LAN, VLAN or Wi-Fi network takes one /64. Some features, for example stateless address autoconfiguration, assume the host part is 64 bits, so using a longer prefix on an ordinary LAN breaks them.

What the page calculates

Enter an address or prefix, or pick one of the chips. The result shows the prefix, its network in full 128-bit form, the first and last address, the total number of addresses (as an exact integer and a power of two), the count of /64 subnets inside, the split between network bits and host bits, and the kind of address, for instance Documentation for 2001:db8::/32. A table then lists the first 16 /64 subnets of the prefix in both short and full notation. The lists are capped because a /32 holds more than four billion /64 networks.

Reading the numbers

Subtract the prefix length from 64 to count /64 networks as a power of two: a /48 is 2¹⁶ = 65,536, a /56 is 2⁸ = 256, a /60 is 2⁴ = 16 and a /64 is exactly one. Add one hex digit (four bits) to the prefix and the number of subnets multiplies by sixteen. Prefixes that are multiples of four bits line up with a hexadecimal digit, which makes them easy to read in an address; a /52 or /56 allocation changes only the digit after the fourth colon.

A worked example

Choose the chip for 2001:db8:1234::/48. The page shows the network in full as 2001:0db8:1234:0000:0000:0000:0000:0000, the first address 2001:db8:1234::, the last 2001:db8:1234:ffff:ffff:ffff:ffff:ffff and a total of 1,208,925,819,614,629,174,706,176 addresses, which is 2⁸⁰. It reports 65,536 /64 subnets, with 48 network bits and 80 host bits, and labels the kind of address as Documentation. The table starts with 2001:db8:1234::/64, then 2001:db8:1234:1::/64, 2001:db8:1234:2::/64 and continues to 2001:db8:1234:f::/64.

Limits

The calculator performs arithmetic and does not query registries, check that a prefix has been assigned to you, or test routing. It lists only the first 16 subnets of a prefix. For IPv4 blocks use the Subnet Calculator, which also accepts IPv6 but is aimed at the host-count questions IPv4 raises.

A readable numbering plan

Because the fourth group of a /48 is a whole 16 bits, it makes a convenient label for each network. A site with the prefix 2001:db8:1234::/48 might number servers as 2001:db8:1234:10::/64, staff as 2001:db8:1234:20::/64 and guests as 2001:db8:1234:30::/64, with the VLAN number or a department code in that group. The prefixes then read like a table and are easy to summarise: 2001:db8:1234:10::/60 covers sixteen networks from :10 to :1f. Sketch the plan here, then copy the first subnets into your router configuration.

Checked against the current version of the IPv6 Subnet Calculator on .

Frequently asked questions

Why does a /64 have so many addresses that nobody counts them?

A /64 holds 2 to the power 64, about 18 quintillion addresses, so address exhaustion within a LAN is not a design concern. The point of the size is to leave room for the 64-bit interface identifiers that automatic address configuration uses.

Can I use a /127 or /126 on a link between two routers?

Yes. RFC 6164 allows /127 for point-to-point links, which prevents a neighbour-cache exhaustion attack on a /64; some operators still use /126 or /64 for habit or hardware reasons.

How many /64 subnets are in a /48?

65,536, which is 2 to the power 16, because 64 minus 48 is 16 extra bits for subnet numbering.

Why not use longer prefixes such as /80 on a LAN?

SLAAC, the automatic address configuration of IPv6, needs a 64-bit interface identifier. A prefix longer than /64 breaks it.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.