Calculator: IPv6 subnet boundaries

Enter the labelled inputs to calculate: Network address; Last address; Count.

Network address
2001:db8::
Last address
2001:db8::ffff:ffff:ffff:ffff
Count
18446744073709551616

How the calculation works

N=2^(128−p); A₀=A AND M

IPv4 uses strict dotted decimal. IPv6 accepts embedded IPv4 tails and compresses the longest leftmost zero run. Zone identifiers are excluded. Prefix tools describe address ranges, not routability or host allocation policy.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

N=2^(128−p); A₀=A AND M

What assumptions apply?

IPv4 uses strict dotted decimal. IPv6 accepts embedded IPv4 tails and compresses the longest leftmost zero run. Zone identifiers are excluded. Prefix tools describe address ranges, not routability or host allocation policy.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Also try:

Back to category →