«

CIDR Subnet Calculator

Calculate Classless Inter-Domain Routing (CIDR) subnets, broadcast addresses, and host ranges.

Subnet Details

Enter an IP address and CIDR prefix to calculate subnet boundaries.

Understanding Classless Inter-Domain Routing (CIDR)

Classless Inter-Domain Routing (CIDR) is the standard method used to assign IP addresses and route network traffic efficiently. Introduced in 1993 to replace the restrictive Class A, B, and C network architecture, CIDR allows for variable-length subnet masking (VLSM). This flexibility enables network architects to divide address spaces into precisely sized blocks, drastically reducing wasted IP addresses.

IPv4 Subnetting Mechanics

An IPv4 address consists of 32 bits. The CIDR notation (e.g., 192.168.1.0/24) explicitly states how many of those bits represent the network routing prefix. The remaining bits define the host identifiers within that specific network.

  • Network Address: The very first IP in the subnet block, used exclusively to route traffic to the network itself. It cannot be assigned to a host device.
  • Broadcast Address: The very last IP in the subnet block, utilized to send packet data simultaneously to all devices within the network boundaries.
  • Usable Host Range: All addresses strictly between the Network and Broadcast IPs, available for assignment to servers, routers, and client endpoints.
  • Subnet Mask: The 32-bit decimal equivalent (e.g., 255.255.255.0) that legacy networking equipment uses to determine the network boundaries mathematically using bitwise AND operations.

Transitioning to IPv6 Prefix Allocation

Due to IPv4 address exhaustion, IPv6 was engineered using a massive 128-bit architecture[cite: 1]. Because the address pool is virtually limitless, IPv6 drops the concept of broadcast addresses and standardizes subnet sizing. In almost all local area network (LAN) environments, network administrators are assigned a /64 prefix, providing 18 quintillion host addresses per subnet—more than enough for any physical location without requiring complex micro-subnetting calculations.