Free technology and media calculator

IP Address Range Calculator

Find the IPv4 or IPv6 network and address range from an address and CIDR prefix.

Open the interactive ip address range calculator

Free tools and planners

Formula

For IPv4 or IPv6, block size = 2^(address bits − prefix); the network is the address rounded down to the block size, and the final address is network + block size − 1. IPv4 also reports the dotted-decimal subnet mask for the prefix; /0–/30 exclude network and broadcast from the conventional assignable range; /31 uses both addresses for point-to-point links and /32 contains one address. IPv6 reports the full inclusive range without a broadcast address.

Worked example

2001:db8::1234/64 has network 2001:db8:: and an inclusive range of 2001:db8::–2001:db8::ffff:ffff:ffff:ffff.

Assumptions and limitations

IPv6 counts the full inclusive subnet range and does not subtract subnet-router anycast, reserved, or otherwise unavailable addresses; /127 contains two addresses and /128 one. IPv4 uses the conventional network/broadcast exclusions for prefixes /0–/30, while /31 and /32 include all addresses in the range. This does not test reachability or discover devices.

Keep moving with a practical next step

Browse free calculators, planners, and templates, or explore the blog and business directory. No subscription is required.