Advanced Subnet Calculator

Calculate subnets, plan VLSM, split networks, convert IP ranges, and aggregate subnets.

to
CIDR Subnet Mask Wildcard Addresses Usable Hosts Class

What is IP Subnetting?

Subnetting is the practice of dividing a larger IP network into smaller, more manageable sub-networks (subnets). It improves network efficiency, security, and organization by grouping related devices, reducing broadcast domains, and enabling routing between network segments. Every enterprise network, data center, and cloud environment relies on subnetting to organize its IP address space.

IPv4 addresses are 32 bits long, written as four octets (e.g., 192.168.1.0). A subnet mask or CIDR prefix defines which bits belong to the network portion and which to the host portion. /24 means the first 24 bits are the network address, leaving 8 bits for hosts (254 usable host addresses).

How to Use This Tool

  1. Basic Subnet Calculator — Enter an IP address and CIDR (e.g., 192.168.1.0/24) to see network address, broadcast, host range, wildcard mask, and binary representation.
  2. VLSM Planner — Enter a parent network and required host counts per subnet. The tool allocates optimally sized subnets.
  3. Subnet Splitter — Divide any network into a specific number of equal subnets.
  4. IP Range to CIDR — Convert an arbitrary IP range to the minimum set of CIDR blocks covering that range.
  5. Supernet Calculator — Aggregate multiple contiguous subnets into a summary route.

CIDR Notation Quick Reference

Private IP Address Ranges (RFC 1918)

Frequently Asked Questions

They represent the same information in different formats. Subnet mask 255.255.255.0 equals CIDR /24 — both mean the first 24 bits are the network address. CIDR (Classless Inter-Domain Routing) notation is more compact and is the modern standard. Subnet masks are still used in older equipment and some configuration interfaces. This tool accepts both formats.
VLSM (Variable Length Subnet Masking) allows a network to be divided into subnets of different sizes, each sized according to actual host requirements. Without VLSM, you'd waste addresses by giving every subnet the same size. With VLSM, you can give a /25 (126 hosts) to a large department and a /30 (2 hosts) to a point-to-point router link — minimizing wasted address space. VLSM is standard practice in modern network design.
A /24 has 256 total addresses (2^8), but two are reserved: the network address (all host bits = 0, e.g., 192.168.1.0) and the broadcast address (all host bits = 1, e.g., 192.168.1.255). The formula for usable hosts is 2^(32-prefix) - 2. Exception: /31 networks (RFC 3021) use both addresses for point-to-point links, giving 2 usable hosts with no broadcast.
A wildcard mask is the bitwise inverse of a subnet mask. Where a subnet mask has 1s in network bits, a wildcard mask has 0s (match these bits), and where subnet mask has 0s, wildcard has 1s (ignore these bits). Wildcard masks are used in Cisco ACLs and OSPF area statements: access-list 10 permit 192.168.1.0 0.0.0.255 permits any address in the 192.168.1.0/24 range. The wildcard 0.0.0.255 corresponds to subnet mask 255.255.255.0.
Route summarization (or supernetting) aggregates multiple contiguous networks into a single route advertisement, reducing routing table size. For example, 192.168.0.0/24 through 192.168.3.0/24 can be summarized as 192.168.0.0/22. This reduces memory and CPU usage on routers and speeds up convergence. Use summarization at network boundaries: between distribution and core layers, or at AS boundaries in BGP. The networks must be contiguous and the summary must not inadvertently include unwanted address space.
Copied to clipboard!