IPv6 Prefix Host Count Calculator: /p Addresses & /64 Subnets

IPv6 Prefix Host Count Calculator

Enter an IPv6 prefix length and instantly see the total addresses as 2^(128 minus prefix), the number of /64 subnets it carves into, how many subnets of any chosen size it holds, and the host bits left for interface identifiers. Built for planning ISP, site, and single-LAN allocations.

🎯Real IPv6 Allocation Presets

📝Prefix Inputs

The network prefix in bits, such as 48 for a /48 site block.

Pick a common policy size to load its prefix instantly.

Target subnet prefix to divide the block into, for example 64.

How many of these /p prefixes you are planning together.

Controls how the astronomically large counts are shown.

Bits reserved for the host portion, 64 for SLAAC autoconfig.

Addresses in the block 0 total addresses = 2^(128 - p)
Number of /64 subnets 0 standard LAN subnets = 2^(64 - p)
Subnets of chosen size 0 of size /s = 2^(s - p)
Host bits 0 128 minus prefix length

🔢Formula Snapshot

2^(128-p)Addresses
128-pHost bits
2^(64-p)/64 subnets
2^(s-p)/s subnets

📋Common IPv6 Prefixes and Their Counts

PrefixHost BitsAddresses/64 Subnets
/32962^96 ≈ 7.92e282^32 ≈ 4.29e9
/40882^88 ≈ 3.09e262^24 = 16777216
/48802^80 ≈ 1.21e242^16 = 65536
/52762^76 ≈ 7.56e222^12 = 4096
/56722^72 ≈ 4.72e212^8 = 256
/60682^68 ≈ 2.95e202^4 = 16
/64642^64 ≈ 1.84e191
/12801N/A

🔧Allocation Policy Guidance

PrefixTypical AssigneeRoleContains
/23 to /29RIR to LIRRegistry poolMillions of /48s
/32ISP or LIRProvider block65536 /48 sites
/40Large downstreamSub-allocation256 /48 sites
/48Enterprise siteSite prefix65536 /64 LANs
/56Home or branchSmall site256 /64 LANs
/64Single subnetOne LANOne SLAAC segment
/127Router linkPoint-to-pointTwo endpoints
/128Loopback or hostSingle addressOne interface

📊Powers of Two Exponent Reference

Exponent n2^n ValueReads AsPrefix With This Host Range
416Sixteen/60 into /64
8256Two hundred fifty six/56 into /64
124096Four thousand/52 into /64
1665536Sixty five thousand/48 into /64
241677721616.7 million/40 into /64
3242949672964.29 billion/32 into /64
641.84e1918.4 quintillionHosts in one /64
801.21e241.21 septillionAddresses in a /48
967.92e2879 octillionAddresses in a /32
1283.40e38340 undecillionWhole IPv6 space

🗃IPv6 Prefix Comparison Grid

PrefixRoleHost BitsAddresses (2^x)/64 Subnets/56 SubnetsTypical Assignee
/29LIR pool992^992^352^27Registry to ISP
/32Provider block962^962^322^24ISP or LIR
/36Sub-allocation922^922^282^20Large ISP unit
/40Regional block882^882^242^16Downstream ISP
/44Aggregate842^842^202^12Metro network
/48Site prefix802^802^162^8Enterprise site
/52Building762^762^122^4Campus zone
/56Small site722^722^81Home or branch
/60Micro block682^682^4N/ATiny deployment
/64One LAN642^641N/ASingle subnet

Formula Breakdown

Host bits = 128 − pIPv6 addresses are 128 bits wide. A /48 prefix fixes 48 network bits and leaves 128 − 48 = 80 host bits for everything inside the block.
Addresses = 2^(128 − p)Each host bit doubles the count, so a /48 holds 2^80 addresses, roughly 1.21e24. A /64 holds 2^64, about 1.84e19 addresses.
/64 subnets = 2^(64 − p)Because a /64 is the standard LAN, a /p with p under 64 splits into 2^(64 − p) of them. A /48 gives 2^16 = 65536 /64 subnets.
/s subnets = 2^(s − p)To count subnets of any size s where s is greater than p, use 2^(s − p). A /48 split into /56 blocks yields 2^8 = 256 subnets.
Total across N blocksPlanning N identical prefixes multiplies each count by N. Two /48 sites together offer 2 × 65536 = 131072 /64 LAN subnets.
Whole space = 2^128A /0 covers the entire IPv6 range, 2^128 or about 3.40e38 addresses, which is why prefixes rather than host counts drive planning.

💡IPv6 Planning Tips

Never subnet past /64: A single /64 already holds 2^64 addresses, about 18.4 quintillion, and stateless autoconfiguration (SLAAC) needs the full 64 host bits to build interface IDs. Assign one /64 per LAN and split at /48 or /56 above it, not below /64.
Give sites a /48: The classic recommendation gives each site a /48, which is 2^16 = 65536 distinct /64 subnets. Even a large campus rarely needs more, and reserving on nibble boundaries like /48, /52, /56, and /60 keeps hextet math clean when you read prefixes.

Planning a network is one of those things where IPv6 addresses become abstract. They’re so big that your brain stops seeing them as real numbers. Then it’s easy to think of them as unlimited resources, in fact they’re a scarce commodity. They are finite chunks of the address space that need to be carefuly carved up.

That’s why we built this: the IPv6 Prefix Host Count Calculator takes all that head-numbing bigness and makes it digestible. It breaks down a prefix length into the number of addresses it has. It shows how many subnet there are and how many hosts is in each subnet. It also shows how many bits each host have. No more trying to do math in your head with exponents.

Why You Need an IPv6 Calculator

You also need to change your thinking about addressing with IPv6 different than IPv4. With IPv4, you have a small number of addresses and so you hoard each one. With IPv6, there are far too many, so now you care more about the structure then anything else. That’s reflected in the tool which focuses on prefixes rather than hosts.

It counts addresses by calculating 2 to the power of 128 minus the prefix length. The rest falls out off that simple equation. This is the magic formula that unlocks what they’re doing. Each time they reduce the prefix length by a single bit, their address space double. Reducing the prefix length by four bits multiplies their address space by 16. That’s why the calculator has this table, you can see how it works in powers of two, and also have a rough approximation in scientific format. It’s a good way for your brain to understand how big these numbers are.

2 to the 80th power: yes, that’s a big number. And the scientific notation tells you where that fits on block size scale.

In most practical plans, it’s not the numbers of addresses that count as much as the /64 subnets you get from them. Because stateless address autoconfiguration needs all sixty-four bits for hosts, a /64 is typical size for a local network segment. This calculator will divide up your prefix into /64-sized chunks and let you know how many distinct LANs you can carve out. For example, if you’re given a /48 site block, the calculator informs you that you’ll recieve 65,536 such subnets. That’s plenty for an enterprise campus with no need to break them down further.

Sometimes, though, you want to subdivide blocks with sizes that aren’t exactly /64. Maybe you’re giving away /56s to branch offices but you have a bigger pool overall. For these kinds of cases, you can set a “target subnet” size in the calculator. It will use whatever difference there is between the block’s prefix and the target prefix to calculate how many of them it fits in. So if you want to address your network in some kind of hierarchy, say with every level having its own logical boundary, this lets you plan for that.

For example, here’s a breakdown of what the result cards show: first, the total addresses represent raw capacity. Second, /64 subnets is the practical unit of deployment. Third, subnets of your desired size (custom planning possible). Fourth, host bits shows how wide the interface identifier is. That way it breaks out how much you can use and how much you could possibly have.

The amount allocated is pretty standard for an internet service provider. They typically gets a /32 block, with millions of possible /48 site allocations within that block. Enterprise? You’re likely getting a /48 for your primary address. Home? Home users might get a /56 or even something smaller. That’s what the tool has presets for, so it will show you the math right away, no need to type in numbers by hand. It makes validation fast at design time when you’re weighing different options.

To put things in perspective, when we’re dealing with huge amounts of numbers, how do you visualize 10 to the 24th power? It’s difficult but if you look at it as a /48 block, it makes more sense. You can switch between display modes so that if you need to see an exact integer (smaller numbers) you can, or switch to scientific notation (larger numbers) if you’d rather just see the number without all those trailing zeroes. That way, the interface doesn’t get bogged down with a bunch of zeros, but you have accuracy where it matters most.

Network engineers rely on it to check that their addressing plan is sound prior to requesting blocks from a regional registry. Students use it as a way to develop an understanding of how long prefixes relates to addressable capacity. Engineers use it as part of network design to ensure they have enough subnets to support all wireless SSIDs and VLANs.

It allows you to make concrete decisions based off exponent math rather than guessing. Suddenly, you’re not concerned with running out of IP addresses. Instead, you can focus on designing your network logically. And yes, there’s plenty of room, provided you design for it.

IPv6 Prefix Host Count Calculator: /p Addresses & /64 Subnets