Whole Calculator
WHOLE
CALCULATOR

IP Subnet Calculator

IPv4 Subnet Calculator

/24

IP Subnet Calculator: IPv4 and IPv6 Network Planning Made Easy

Our IP Subnet Calculator is a professional networking tool designed to help system administrators and engineers calculate IPv4 and IPv6 subnetting parameters. Whether you need to find usable host ranges, broadcast addresses, or CIDR notation values, this tool provides instant and accurate results.

The calculator supports both IPv4 (32-bit addresses) and IPv6 (128-bit addresses). It breaks down complex network addresses into understandable components like network ID, first/last usable IP, subnet mask, and the total number of hosts.

Subnetting is an essential practice in network management that involves dividing a larger network into smaller, manageable sub-networks (subnets). This improves network performance, security, and address space efficiency.

What is IP Subnetting?

A subnet (sub-network) is a logical subdivision of an IP network. The practice of dividing a network into two or more networks is called subnetting. Routers are used to exchange traffic between subnets, acting as physical boundaries.

In IPv4, a subnet mask (like 255.255.255.0) is used to distinguish the network portion of the address from the host portion. CIDR (Classless Inter-Domain Routing) notation (like /24) is a more modern, compact way to represent this.

IPv6 subnetting functions similarly but handles a much larger address space. Instead of a subnet mask, IPv6 uses a 'prefix length' (e.g., /64) to define the network portion of the 128-bit address.

How to Use the Subnet Calculator

  1. Step 1: Select Protocol: Switch between the IPv4 and IPv6 tabs depending on your network type.
  2. Step 2: Enter IP Address: Input the starting IP address (e.g., 192.168.1.1).
  3. Step 3: Choose Subnet/Prefix: Select the subnet mask or CIDR prefix (e.g., /24 or 255.255.255.0).
  4. Step 4: Analyze Results: View the Network Address, Usable Host Range, Broadcast Address, and Total Hosts instantly.

Subnetting Reference Table

PrefixSubnet MaskTotal HostsUsable Hosts
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/30255.255.255.25242

Network Planning Tips

  • Plan for Growth

    Always leave room for more hosts than you currently need. A /24 subnet is often a safe default for small office networks.

  • Reserve Gateway IPs

    By convention, the first (.1) or last (.254) usable IP in a subnet is typically assigned to the default gateway (router).

  • Understand IPv6

    In IPv6, a /64 prefix is the standard size for a single subnet, providing an incredibly large number of addresses for any local network.

Frequently Asked Questions

What is CIDR?

CIDR stands for Classless Inter-Domain Routing. it's a method for allocating IP addresses and IP routing that replaced the older Class A, B, and C system.

Why do I lose 2 IPs in every IPv4 subnet?

In any IPv4 subnet, the first address is the Network ID and the last address is the Broadcast Address. Neither can be assigned to a host.

Can I subnet a /32?

A /32 represents a single IP address (a host route), not a network of multiple usable hosts.