IPv4 and IPv6 Subnet Calculator
Compute exact IPv4 or IPv6 CIDR ranges with address-family validation.
Additional calculations: IPv6 subnet address range
Your result
EVERYDAYExample values are prefilled. Results update automatically when JavaScript is available.
IPv6 subnet address range
Expand an IPv6 address and find its network prefix, full address range and exact address count.
How this calculation works
Mask the low 128−prefix bits to obtain the network. Address count=2^(128−prefix); last address=first+count−1.
This additional IPv6-only form accepts hexadecimal groups and one :: compression, but not embedded dotted IPv4 notation. The main calculator above also accepts IPv4-mapped IPv6 addresses. Neither form subtracts a broadcast address for IPv6.
What this tool calculates
Compute exact IPv4 or IPv6 CIDR ranges with address-family validation.
Inputs used: IPv4 or IPv6 address, CIDR prefix length.
On this page How it works & practical examples
How to use the IPv4 and IPv6 Subnet Calculator
Enter an IPv4 or IPv6 address and its CIDR prefix. IPv4 allows 0–32 bits; IPv6 allows 0–128. IPv6 compression and embedded IPv4 suffixes are supported; ranges are calculated with exact integers.
The calculation
Worked example
192.168.1.10/24 has network 192.168.1.0, broadcast 192.168.1.255 and 256 addresses. For IPv6, 2001:db8::1/64 has network 2001:db8:: and 18,446,744,073,709,551,616 addresses; there is no broadcast address.
Assumptions and limits
No routing or address discovery. IPv6 has no broadcast address. Zone identifiers and scoped addresses are rejected; IPv4 host-count conventions remain explicit.
Common questions
Which inputs should I use?
In the main calculator, enter an IPv4 address with a prefix from 0 to 32, or an IPv6 address with a prefix from 0 to 128. IPv4 results distinguish the total address count from conventional usable host counts. IPv6 results show the full range and exact address count.
What does the result exclude?
Neither address-family calculation discovers devices or configures routing. IPv6 zone identifiers are not accepted. For IPv4, /31 uses a two-address point-to-point convention and /32 has one address; actual address assignment policies may differ.