MyAICalc Logo
MyAICalc Personal AI Calculator Hub
IT Utility

IP Subnet Calculator

Determine network boundaries, broadcast addresses, and usable host ranges for both IPv4 and IPv6.

IPv4 Subnet Calculator

IPv4 Config

Click calculate to view IPv4 results

IPv6 Subnet Calculator

IPv6 Config

Click calculate to view IPv6 results

Understanding IP Subnetting

A subnet is a division of an IP network (internet protocol suite). The act of dividing a network into at least two separate networks is called subnetting, and routers are devices that allow traffic exchange between subnetworks, serving as a physical boundary.

An IP address is comprised of a network number (routing prefix) and a rest field (host identifier). CIDR is a method used to create unique identifiers for networks, as well as individual devices. For IPv4, networks can also be characterized using a subnet mask, which is expressed in dot-decimal notation.

IPv4 vs IPv6

IPv4 is the most common network addressing architecture used, though the use of IPv6 has been growing since 2006. In IPv4, subnet masks are used to differentiate the network number and host identifier.

In IPv6, the network prefix performs a similar function as the subnet mask in IPv4, with the prefix length representing the number of bits in the address. IPv6 uses 128-bit addresses (compared to 32-bit in IPv4), providing a practically inexhaustible pool of IP addresses.

Key Terms

  • Network AddressThe first address in a subnet, used to identify the network itself. Cannot be assigned to a host.
  • Broadcast AddressThe last address in a subnet, used to send data to all hosts on the network.
  • Usable HostsThe addresses between the network and broadcast addresses that can be assigned to devices.

Typical Subnets for IPv4

Prefix SizeNetwork MaskUsable Hosts per Subnet
Class A
/8255.0.0.016,777,214
/9255.128.0.08,388,606
/10255.192.0.04,194,302
/11255.224.0.02,097,150
/12255.240.0.01,048,574
/13255.248.0.0524,286
/14255.252.0.0262,142
/15255.254.0.0131,070
Class B
/16255.255.0.065,534
/17255.255.128.032,766
/18255.255.192.016,382
/19255.255.224.08,190
/20255.255.240.04,094
/21255.255.248.02,046
/22255.255.252.01,022
/23255.255.254.0510
Class C
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522