Free Tool

IP Subnet Calculator

Calculate the network address, broadcast, host range and more for any IPv4 or IPv6 subnet.

What is an IP subnet calculator?

An IP subnet calculator takes an IPv4 or IPv6 address and a subnet mask (or CIDR prefix) and returns the network address, broadcast address, usable host range, total and usable host count, wildcard mask, and IP class. It saves you from doing binary math by hand when planning or troubleshooting a network.

How to use this tool

  1. Choose IPv4 or IPv6.
  2. Enter any IP address (for example 192.168.1.10 or
    2001:db8::).
  3. Enter a CIDR prefix like /24 or a dotted netmask like
    255.255.255.0.
  4. Optionally split the network into 2, 4, 8 or more equal subnets.
  5. Results update as you
    type.

Understanding CIDR notation

CIDR (Classless Inter-Domain Routing) notation expresses a subnet mask as the number of leading 1-bits. /24 means the first 24 bits identify the network and the remaining 8 bits identify hosts. It is the same as 255.255.255.0, with 254 usable hosts per subnet.

Common CIDR blocks

CIDRSubnet MaskWildcardTotal AddressesUsable Hosts
/30255.255.255.2520.0.0.342
/29255.255.255.2480.0.0.786
/28255.255.255.2400.0.0.151614
/27255.255.255.2240.0.0.313230
/26255.255.255.1920.0 .0.636462
/25255.255.255.1280.0.0.127128126
/24 255.255.255.00.0.0.255256254
/23255.255.254.00.0.1.255512510
/22255.255.252.00.0.3.2551,0241,022
/21255.255.248.00.0.7.2 552,0482,046
/20255.255.240.00.0.15.2554,0964,094
/19255.255.224.00.0.31.2558,1928,190
/18255.255.192.00.0.63.25516,384< /td>16,382
/17255.255.128.00.0.127.25532,76832,766
/16255.255 .0.00.0.255.25565,53665,534
/8255.0.0.00.255.255.25516,777,21616 ,777,214

Privacy

This calculator runs entirely in your browser. No IP addresses or queries are sent to our servers.