IP Subnet Calculator - IPv4 & IPv6

Calculate network address, range, subnet mask, and host count for any IPv4 or IPv6 address and prefix. Enter an IP address and choose the prefix length from the dropdown.

Protocol

What is an IP Subnet Calculator and how does it work?

An IP Subnet Calculator is a tool that calculates subnet details from an IP address and CIDR prefix (such as /24 or /64). It shows the network address, subnet mask, usable IP range, total hosts, and broadcast address (IPv4). It works for both IPv4 and IPv6.

  • Network and IP range: The calculator displays the network address, first and last usable IP, total number of IP addresses, and broadcast address for IPv4. IPv6 does not use broadcast.
  • IP address and CIDR: Enter an IPv4 or IPv6 address and choose a CIDR prefix (like /24 or /64). The prefix defines the subnet size and how many hosts are available.
  • Subnet mask and hosts: For IPv4, the tool converts the CIDR into a subnet mask (e.g., /24 = 255.255.255.0) and calculates usable hosts using 2^(32 − prefix) − 2.
  • Why use a subnet calculator: It helps plan networks, check IP ranges, design subnets, and understand routing boundaries without doing manual binary calculations.

An IP Subnet Calculator quickly converts an IP address and CIDR prefix into a clear summary of network details, host range, and subnet information.

Was this tool helpful?

Frequently asked questions about IP subnet calculator

Answers to common questions about subnets, CIDR, and network addressing.