The math
The subnet ID lives in the third and fourth hextets. Each /64 is one LAN with 264 interface addresses, enough for SLAAC.
First subnets of 2001:db8::/32
| # | /64 subnet |
|---|---|
| 1 | 2001:db8::/64 |
| 2 | 2001:db8:0:1::/64 |
| 3 | 2001:db8:0:2::/64 |
| 4 | 2001:db8:0:3::/64 |
| 4,294,967,296 | 2001:db8:ffff:ffff::/64 |
Addresses are written in RFC 5952 form: lowercase, no leading zeros, longest zero run compressed to ::.
Planning tip
Keep subnet boundaries on nibbles (multiples of 4 bits) so each subnet ID maps to whole hex digits and reverse DNS (ip6.arpa) delegation stays clean. Encode structure (site, function, VLAN) in those digits instead of allocating sequentially.
Other sizes inside a /32
| New prefix | How many fit | /64 networks in each |
|---|---|---|
| /36 | 16 | 268,435,456 |
| /40 | 256 | 16,777,216 |
| /44 | 4,096 | 1,048,576 |
| /48 | 65,536 | 65,536 |
| /52 | 1,048,576 | 4,096 |
| /56 | 16,777,216 | 256 |
| /60 | 268,435,456 | 16 |
| /64 | 4,294,967,296 | 1 |
In practice
Each /64 holds 18,446,744,073,709,551,616 addresses. If you use 100 /64 networks (one per VLAN, say), you take up 0.00000233% of the /32 and still have 4,294,967,196 left. The 32 bits between /32 and /64 are 8 hex digits: each digit multiplies the number of networks by 16.
To try other values, open the IPv6 subnets calculator with these numbers already filled in.