IPv6 Subnet Calculator and Prefix Planner (/48, /56, /64)
Expand and compress IPv6 addresses per RFC 5952, calculate network prefix boundaries, /64 SLAAC subnet counts, and child prefix blocks.
Input Parameters
Calculation Results
- Input IPv6 Address
- 2001:db8:abcd:12::1
- CIDR Prefix
- 48 bits
- Compressed IPv6 Address (RFC 5952)
- 2001:db8:abcd:12::1
- Expanded IPv6 Address
- 2001:0db8:abcd:0012:0000:0000:0000:0001
- IPv6 Network Prefix (CIDR)
- 2001:db8:abcd::/48
- Compressed Network Address
- 2001:db8:abcd::
- Expanded Network Address
- 2001:0db8:abcd:0000:0000:0000:0000:0000
- First Address in Range
- 2001:db8:abcd::
- Last Address in Range (Compressed)
- 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff
- Last Address in Range (Expanded)
- 2001:0db8:abcd:ffff:ffff:ffff:ffff:ffff
- Prefix Mask (Compressed)
- ffff:ffff:ffff::
- Prefix Mask (Expanded)
- ffff:ffff:ffff:0000:0000:0000:0000:0000
- Host Bits
- 80 bits
- Total IPv6 Addresses
- 1.208.925.819.614.629.174.706.176
- Total Addresses Power
- 2^80
- Number of /64 Subnets (SLAAC)
- 65.536
- Subnet /64 Power
- 2^16
- IP Address Type
- Documentation (2001:db8::/32)
- Reverse DNS Zone (ip6.arpa)
- d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
- Target Child Prefix
- 64 bits
- Child Subnet Count
- 65.536
- Child Subnet Power
- 2^16
Isolate management, server, user, and IoT/CCTV traffic into dedicated 802.1Q VLANs.
| # | Child Prefix | First Address | Last Address | /64 Subnets |
|---|---|---|---|---|
| 1 | 2001:db8:abcd::/64 | 2001:db8:abcd:: | 2001:db8:abcd:0:ffff:ffff:ffff:ffff | 1 |
| 2 | 2001:db8:abcd:1::/64 | 2001:db8:abcd:1:: | 2001:db8:abcd:1:ffff:ffff:ffff:ffff | 1 |
| 3 | 2001:db8:abcd:2::/64 | 2001:db8:abcd:2:: | 2001:db8:abcd:2:ffff:ffff:ffff:ffff | 1 |
| 4 | 2001:db8:abcd:3::/64 | 2001:db8:abcd:3:: | 2001:db8:abcd:3:ffff:ffff:ffff:ffff | 1 |
| 5 | 2001:db8:abcd:4::/64 | 2001:db8:abcd:4:: | 2001:db8:abcd:4:ffff:ffff:ffff:ffff | 1 |
| 6 | 2001:db8:abcd:5::/64 | 2001:db8:abcd:5:: | 2001:db8:abcd:5:ffff:ffff:ffff:ffff | 1 |
| 7 | 2001:db8:abcd:6::/64 | 2001:db8:abcd:6:: | 2001:db8:abcd:6:ffff:ffff:ffff:ffff | 1 |
| 8 | 2001:db8:abcd:7::/64 | 2001:db8:abcd:7:: | 2001:db8:abcd:7:ffff:ffff:ffff:ffff | 1 |
Visual Network Topology Generator (SVG / PNG)
Technical Accuracy Note: Calculation results are engineering estimates based on standard RFC/IEEE/ITU-T models. Actual field performance may vary due to protocol overhead, hardware specifications, and environmental factors.
How to Use This Tool
- Enter an IPv6 address (for example 2001:db8:abcd:12::1) or a full CIDR notation (for example 2001:db8:abcd::/48) into the address input.
- Select the parent prefix length (such as /32 for ISP allocations, /48 for enterprise sites, /56 for branch offices, or /64 for a single LAN).
- Choose a target child prefix length (such as /64 or /56) to compute the number of child subnets and inspect the first 8 boundary-aligned blocks.
Worked Example: Enterprise Site /48 → /64 (2001:db8:abcd::/48)
Computed example: Site allocation 2001:db8:abcd::/48 (expanded: 2001:0db8:abcd:0000:0000:0000:0000:0000) spans 2001:db8:abcd:: through 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff (2^80 = 1.208.925.819.614.629.174.706.176 addresses) and yields 65.536 standard /64 SLAAC subnets (Documentation (2001:db8::/32)).
- IPv6 Address or CIDR Prefix
- 2001:db8:abcd::1
- Parent Prefix Length (0–128)
- 48 bits
- Target Child Prefix (Subnet Split)
- /64 — Standard LAN Subnet (SLAAC)
- Input IPv6 Address
- 2001:db8:abcd::1
- CIDR Prefix
- 48 bits
- Compressed IPv6 Address (RFC 5952)
- 2001:db8:abcd::1
- Expanded IPv6 Address
- 2001:0db8:abcd:0000:0000:0000:0000:0001
- IPv6 Network Prefix (CIDR)
- 2001:db8:abcd::/48
- Compressed Network Address
- 2001:db8:abcd::
- Expanded Network Address
- 2001:0db8:abcd:0000:0000:0000:0000:0000
- First Address in Range
- 2001:db8:abcd::
- Last Address in Range (Compressed)
- 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff
- Last Address in Range (Expanded)
- 2001:0db8:abcd:ffff:ffff:ffff:ffff:ffff
- Prefix Mask (Compressed)
- ffff:ffff:ffff::
- Prefix Mask (Expanded)
- ffff:ffff:ffff:0000:0000:0000:0000:0000
- Host Bits
- 80 bits
- Total IPv6 Addresses
- 1.208.925.819.614.629.174.706.176
- Total Addresses Power
- 2^80
- Number of /64 Subnets (SLAAC)
- 65.536
- Subnet /64 Power
- 2^16
- IP Address Type
- Documentation (2001:db8::/32)
- Reverse DNS Zone (ip6.arpa)
- d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
- Target Child Prefix
- 64 bits
- Child Subnet Count
- 65.536
- Child Subnet Power
- 2^16
Core Concept & Engineering Notes
How It Was Calculated (Formulas & Steps)
Mathematical Formulas
- Host Bits = 128 − Prefix
- Prefix Mask = (2^128 − 1) XOR (2^(128 − Prefix) − 1)
- Network Address = IPv6 BigInt AND Prefix Mask
- Last Address = Network Address OR (NOT Prefix Mask)
- Number of /64 Subnets = 2^(64 − Prefix) for Prefix ≤ 64
- Child Subnet Count (/Pc) = 2^(Pc − Prefix) for Pc ≥ Prefix
Step-by-Step Calculation
- Expand IPv6 address 2001:db8:abcd:12::1 to 8×16-bit hextets: 2001:0db8:abcd:0012:0000:0000:0000:0001 (compressed RFC 5952: 2001:db8:abcd:12::1)
- Apply /48 prefix mask (ffff:ffff:ffff::): network = 2001:db8:abcd::/48, host bits = 128 - 48 = 80
- Address range: 2001:db8:abcd:: to 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff (2^80 = 1.208.925.819.614.629.174.706.176 total addresses)
- Standard /64 SLAAC subnets inside /48: 65.536; child /64 split produces 65.536 (2^16) subnets
Frequently Asked Questions (FAQ)
Why should every end-user IPv6 LAN use a /64 prefix?
IETF standards (RFC 4291 and RFC 4862) split a 128-bit IPv6 address into a 64-bit network prefix and a 64-bit Interface Identifier (IID). Stateless Address Autoconfiguration (SLAAC) requires a 64-bit IID; prefixes longer than /64 break SLAAC on operating systems that do not support DHCPv6.
How many /64 subnets are inside a /48 or /56 prefix?
A /48 prefix provides 2^(64-48) = 2^16 = 65,536 individual /64 subnets. A /56 prefix provides 2^(64-56) = 2^8 = 256 individual /64 subnets.
What is the difference between GUA, ULA, and Link-Local IPv6 addresses?
Global Unicast Addresses (GUA, 2000::/3) are publicly routable on the global internet. Unique Local Addresses (ULA, fc00::/7, typically fd00::/8) are private addresses for internal networks similar to RFC 1918 in IPv4. Link-Local addresses (fe80::/10) are valid only on a single L2 link and are mandatory for Neighbor Discovery.
What prefix length should be used for router-to-router point-to-point links?
RFC 6164 recommends using a /127 prefix on point-to-point router links to prevent Neighbor Discovery exhaustion attacks, while reserving a full /64 out of your address plan so no other interface shares that /64 boundary.
Related Calculators
View All Network & Routing Tools →Calculate IPv4 network address, broadcast, usable host range, netmask, wildcard, binary mask, and RFC address type (RFC 1918, /31, CGNAT).
Split an IPv4 network into N equal subnets or allocate boundary-aligned VLSM blocks by required host count with CSV and Markdown export.
Calculate Limit-At (CIR), Max-Limit (MIR), Burst, PCQ, and FQ-CoDel for RouterOS v7 with automated configuration script generation.
Multi-WAN (2–5 ISP) proportional PCC load balancing and recursive failover configuration script generator for RouterOS v7.
Expose internal server/NVR ports to the public internet (DST-NAT) and eliminate local loopback timeouts using Hairpin NAT.
Prioritize WhatsApp calls, Zoom/Teams conferences, and gaming latency above bulk downloads using RouterOS v7 FQ-CoDel Queue Trees.
References & Notes
- RFC 4291 — IP Version 6 Addressing Architecture
- RFC 5952 — A Recommendation for IPv6 Address Text Representation
- RFC 4193 — Unique Local IPv6 Unicast Addresses (ULA)
- RFC 3849 — IPv6 Address Prefix Reserved for Documentation (2001:db8::/32)
Note: Results above are mathematical estimates based on standard formulas. Always verify against official vendor documentation and site conditions before production deployment.
🔗Related Scenarios & Companion Calculators
Browse All 30+ Scenarios →⚡ Ready-to-Use Scenario Presets:
Instant /32 CIDR reference: Subnet Mask is 255.255.255.255, Wildcard 0.0.0.0, Total IPs 1, and 1 Usable Hosts. Ideal for OSPF/BGP Router Loopback & Single Host Route.
Instant /30 CIDR reference: Subnet Mask is 255.255.255.252, Wildcard 0.0.0.3, Total IPs 4, and 2 Usable Hosts. Ideal for Point-to-Point Inter-Router WAN Link (2 Usable IPs).
Instant /29 CIDR reference: Subnet Mask is 255.255.255.248, Wildcard 0.0.0.7, Total IPs 8, and 6 Usable Hosts. Ideal for DMZ Public Server Sub-Block & BGP Peering (6 Hosts).
🛠️ Sibling Calculators in this Category:
Calculate IPv4 network address, broadcast, usable host range, netmask, wildcard, binary mask, and RFC address type (RFC 1918, /31, CGNAT).
Split an IPv4 network into N equal subnets or allocate boundary-aligned VLSM blocks by required host count with CSV and Markdown export.
Calculate Limit-At (CIR), Max-Limit (MIR), Burst, PCQ, and FQ-CoDel for RouterOS v7 with automated configuration script generation.
Multi-WAN (2–5 ISP) proportional PCC load balancing and recursive failover configuration script generator for RouterOS v7.
Engineering Sensitivity Analysis, Response Curve & Technical Citation
1. 1. 3-Point Engineering Sensitivity & Tolerance Envelope
Comparative evaluation across theoretical laboratory bounds (0% loss), current nominal operating point, and conservative field safety bounds (±15% thermal/aging derating).
| Evaluated Parameter | Ideal Theoretical Bound | Nominal Operating Point | Conservative Safety Bound (±15%) | Engineering Derating Rule |
|---|---|---|---|---|
| CIDR Prefix | 43.2 | 48 | 55.2 | Engineering Safety Margin (+15% Overhead) |
| Host Bits | 72 | 80 | 92 | Engineering Safety Margin (+15% Overhead) |
| Number of /64 Subnets (SLAAC) | 58.98 | 65.54 | 75.37 | Engineering Safety Margin (+15% Overhead) |
| Target Child Prefix | 57.6 | 64 | 73.6 | Engineering Safety Margin (+15% Overhead) |
| Child Subnet Count | 58.98 | 65.54 | 75.37 | Engineering Safety Margin (+15% Overhead) |
2. 2. Mathematical Function Curve & Operating Coordinate (x₀, y₀)
3. 3. Physical Constants & Normative Standard Clauses
DC Loop Resistance for 23 AWG Solid Copper Cat6
Clause 6.4.1 / Table 145-1 — Nominal 23 AWG solid copper loop resistance at 20°C is 14.0 Ω/100m (TIA maximum ceiling is 18.8 Ω/100m).
Single-Mode Optical Fiber Attenuation Coefficient at 1490 nm
Table 1 / Class B+ & C+ Optical Path — Typical G.652.D attenuation at 1490 nm downstream is 0.22–0.25 dB/km (1310 nm upstream: 0.35 dB/km).
Temperature Coefficient of Resistance for Copper
International Annealed Copper Standard — Used in thermal derating equation: R(T) = R_20 × [1 + 0.00393 × (T - 20)].
4. 4. Independent Technical & Academic Citation (IEEE / APA 7th / BibTeX / LaTeX)
Use the standard citation formats below to reference this computational methodology in engineering specifications, audit reports, or academic papers.
[IEEE] KalkuNet Engineering Team, "IPv6 Subnet Calculator and Prefix Planner (/48, /56, /64) — Standard Engineering Computational Instrument," KalkuNet Technical Suite, 2026. [Online]. Available: https://kalkunet.com/en/tools/ipv6-subnet-calculator. [Accessed: 2026-11-08].
[APA 7th] KalkuNet Engineering Team. (2026). IPv6 Subnet Calculator and Prefix Planner (/48, /56, /64) (Production release 2026-11-08) [Engineering computational software]. KalkuNet. https://kalkunet.com/en/tools/ipv6-subnet-calculator
@software{kalkunet_ipv6_subnet_calculator_2026,
author = {{KalkuNet Engineering Team}},
title = {{IPv6 Subnet Calculator and Prefix Planner (/48, /56, /64) --- KalkuNet Engineering Suite}},
year = {2026},
publisher = {KalkuNet.com},
url = {https://kalkunet.com/en/tools/ipv6-subnet-calculator},
urldate = {2026-11-08}
}
% LaTeX Engineering Derivation — Generated via https://kalkunet.com/en/tools/ipv6-subnet-calculator
\begin{equation}
\text{Model: } Host Bits = 128 − Prefix
\end{equation}
% Parameter Input Terukur: address = 2001:db8:abcd:12::1, \; prefix = 48, \; childPrefix = 64
% Hasil Evaluasi Numerik : inputAddress = \mathbf{2001:db8:abcd:12::1}, \; prefix = \mathbf{48}, \; compressed = \mathbf{2001:db8:abcd:12::1}