IPv6 Subnet Prefix Length Calculator

July 1, 2026

IPv6 Subnet Prefix Length Calculator

Plan IPv6 site delegations, desired subnet counts, SLAAC /64 LANs, nibble boundaries, host bits, hierarchy levels, and growth reserve for a clean home lab address plan.

🗂IPv6 Deployment Presets
⚙Prefix Planning Inputs

Example: 2001:db8:1234:: or fd42:1200:10::

Used to split allocation bits across hierarchy levels.

Allocation Prefix
/56
nibble-aligned block
Available Final Subnets
65,536
/64s from the site prefix
Host Bits Per Subnet
64
SLAAC-friendly interface ID bits
Growth Fit
0.06%
planned use after reserve
Site prefix and length2001:db8:1234::/48
Requested subnets with reserve32 + 25% reserve = 40
Subnet bits available16 bits from /48 to /64
Recommended allocation block/56 holds 256 /64 subnets
Nibble boundary status/56 is aligned on a hex nibble
Allocation levels2 levels, about 8 bits per level
SLAAC planning note/64 keeps 64 host bits for SLAAC
Profile noteGood for routed home lab VLANs
Ready to calculate.
🧭IPv6 Prefix Grid
Site bits Allocation bits Final subnet bits Host bits

Each square represents one IPv6 hex nibble, or 4 bits. Boundaries at /32, /48, /56, /60, and /64 are easier to document because they end cleanly between hex digits.

📊IPv6 Prefix Capacity Grid
/32
65,536 /48 sites
/40
256 /48 sites
/48
65,536 /64 LANs
/52
4,096 /64 LANs
/56
256 /64 LANs
/60
16 /64 LANs
/64
1 SLAAC LAN
/127
router transit pair
🌐Common IPv6 Delegation Sizes
PrefixTypical Role/64 SubnetsSubnet BitsPlanning Use
/32Provider or large organization4,294,967,29632Can delegate many /48 sites
/40Region or large lab group16,777,21624Useful above many /48 sites
/48Normal site assignment65,53616Clean site, building, VLAN hierarchy
/52Large zone inside a site4,09612Good routed area below a /48
/56Home or small business delegation2568Common ISP customer prefix
/60Small residential delegation164Enough for a few home VLANs
/64Single LAN or VLAN10Standard SLAAC subnet size
🗺Allocation Level Examples
HierarchyExample PrefixBlocks BelowGood FitNote
Site/4816 bits to /64Whole home lab or officeStart of local plan
Area or building/5216 /56 blocksFloors, racks, buildingsNibble aligned
Zone/5616 /60 blocksSecurity zones or labsEasy DHCPv6-PD target
VLAN group/6016 /64 LANsSmall routed blockNice for firewall rules
LAN or VLAN/642^64 hostsSLAAC, RA, NDPDo not split for clients
📋SLAAC and Host-Bit Reference
PrefixHost BitsSLAAC FitTypical UsePlanning Caution
/6464YesClient LAN, VLAN, WiFiDefault choice for normal subnets
/7256NoSpecial lab segmentationBreaks normal SLAAC expectations
/8048NoContainer or service poolUse only with managed addressing
/9632NoTranslation or mapped rangeNot a client LAN size
/11216NoInfrastructure rangeDocument neighbor behavior
/1271NoPoint-to-point routersNot for Ethernet client VLANs
/1280NoSingle host routeLoopback or address object only
🧮Nibble Boundary Planning
BoundaryHex Digits FixedBlocks to /64Readable ExampleOperational Benefit
/3282^32 /64s2001:db8::/32Provider-scale summary
/40102^24 /64s2001:db8:1200::/40Regional grouping
/481265,536 /64s2001:db8:1234::/48Clean site identity
/52134,096 /64s2001:db8:1234:1000::/52Large routed area
/5614256 /64s2001:db8:1234:1200::/56Common PD child
/601516 /64s2001:db8:1234:1230::/60Compact VLAN set
/64161 /642001:db8:1234:1234::/64LAN boundary
💡IPv6 Planning Tips
Protect the /64 rule for client LANs. IPv6 has enough space that normal VLANs, WiFi networks, and user segments should stay at /64 for SLAAC, router advertisements, and predictable neighbor discovery behavior.
Use nibbles when humans will operate it. A slightly larger allocation on /52, /56, or /60 is often easier to route, summarize, document, and troubleshoot than a mathematically tight off-nibble prefix.
This calculator is a planning aid for IPv6 prefix hierarchy and capacity. Confirm the final plan with your ISP delegation, router advertisements, DHCPv6-PD behavior, firewall policy, and IPAM records before deployment.

This all comes from the fact that most folks beginning a home lab begin with the prefix they get from their ISP (a /48) which then seems overwhelming in scope. A /48 feels like having a whole continent when you only need a garage, which is why people tend to hoard address space instead of planning it. People therefore try to conserve address space, rather than plan it, using just enough bits. This work against them down the road because it makes your routing table a mess with no clear boundary lines.

It’s not so much that choosing a random number is the trick, but converting that number into the structure of networks and hex digits. In this case, IPv6 use 128 bits. This sounds big, until you realize we print them as sequences of four-bit chunks (called nibbles) represented in hexadecimal. So if you don’t stop on a nibble boundary with your prefix length, say by stopping at /53 or /57 instead, then you’re forcing yourself to work with fractional hex values. Not only do these look bad, but they is easy to get wrong when transcribing.

Plan Your IPv6 Address Space Wisely

Most folks miss that point because they focus on the mathematics of capacity while ignoring how easy documentation is to use. If you glance up at the planner, you’ll see it nudges you towards perfectly aligned blocks: e.g., /52, /56, or /60. It’s no coincidence that those numbers corresponds to full hex digits within your address string. If you have a /56 block, it fits nicely into fourteen hex digits which leaves you with two leftover digit for subnetting before you reach the last LAN boundary. This nice alignment is easier to summarize and easier for humans to type correctly during a late-night troubleshooting session. Leave the bit counting to the calculator so you can worry about if this hierarchy make any sense for your physical layout.

And don’t forget that whole “/64 subnet for real user networks” hard-and-fast thing. With IPv4, we’re used to using slimmer subnet masks to conserve address space. But with IPv6, the protocol insist on assigning each Link-Layer network an entire /64 (with the idea being that you use SLAAC and send out Router Advertisements). If you attempt to pack more than one VLAN of clients under a /60 or smaller, then those protocols will break, since the interface ID generation expect sixty-four bits of host. This is not just good practice but is in many cases necessary for the protocol stack to do what it’s supposed to do.

That is, you’re going to spend the time figuring out how to fit those mandatory /64 blocks into a larger structure. Given a /48 site allocation, that give you sixteen bits of space between your site prefix and the last LAN. You can cut it up any way you want, but cutting it on nibbles makes sense, maybe four bits are building numbers, four bits are floors, and four bits is department code, etc. The net effect is that each level forms a neat little pair of hex characters, which is far easier to keep straight in your mind than keeping track of where the binary offset comes from.

Even with as many IPv6 addresses as anyone could possibly need there is still extra room for growth to be considered. The surplus lets you afford to waste some in order to make things clear. A 25% buffer is not just to prevent running out of IP addresses. It is to ensure you stay inside a single, summarizable block so you can avoid rewriting your routing policy and firewall rules when adding another rack of servers. Better to pad out blocks lightly and find out later that you need to split up into separate blocks than to overfill every one and then wish you hadn’t. You should of planned better.

To put things into perspective, the tool comes with a table of common delegations (ranging from /32 provider blocks all the way down to /127 point-to-point links) so you have some idea what small/large looks like here. For example, a /60 is very small in IPv6, containing only sixteen /64 subnets. But that’s plenty flexible to support a nice home network if done thoughtfully. The important part is: don’t make an address plan based solely on arithmetic efficiency! Make one based off your real-world setup and your management style. Begin by assuming you need a /64 per client. Go up to round numbers at convenient nibble boundaries. Leave whatever else is left over to support your own organization way of doing things, instead of making your brain bend to the will of the bits.

IPv6 Subnet Prefix Length Calculator

Related posts

Leave a Comment