CIDR Calculator

Calculate CIDR notation subnets, IP ranges, available hosts, wildcard masks, and network addresses. Essential networking tool for IP address planning.

CIDR Calculator

Network Address
192.168.1.0/24
The base address identifying this subnet
Broadcast Address
192.168.1.255
Address used to send to all hosts in this subnet
Subnet Mask
255.255.255.0
Binary: 11111111.11111111.11111111.00000000
Wildcard Mask
0.0.0.255
Inverse of the subnet mask, used in ACLs and OSPF
Host Range
192.168.1.1 โ€“ 192.168.1.254
First and last usable host addresses in this subnet
Usable Hosts
254
Total addresses: 256, minus network and broadcast
IP Class / Private
Class C โ€” Private (RFC 1918)
Legacy class and private/public status
Address Space Utilization
โ–  Reserved โ–  Usable (254)
Network: 11000000.10101000.00000001.00000000
Mask: 11111111.11111111.11111111.00000000
CIDRSubnet MaskAddressesUsableUse Case
/8255.0.0.016,777,21616,777,214Large ISP / Class A
/12255.240.0.01,048,5761,048,574172.16.0.0 private
/16255.255.0.065,53665,534Cloud VPC / Class B
/20255.255.240.04,0964,094Large subnet
/24255.255.255.0256254Standard LAN
/26255.255.255.1926462Small department
/28255.255.255.2401614Small group
/30255.255.255.25242Point-to-point link
/32255.255.255.25511Single host
Planning notes, formulas, and examples

About the CIDR Calculator

The CIDR Calculator turns a CIDR block into the subnet details you normally have to work out by hand: network address, broadcast address, usable host range, subnet mask, wildcard mask, and total host count. It is designed for the day-to-day subnetting tasks that come up in routing, cloud planning, labs, and certification study. That makes it useful when you want the network math, host range, and mask details in one place before you apply them to a real environment.

Enter an IP address and prefix length, such as 192.168.1.0/24, to see the resulting network breakdown. The tool shows where the subnet starts and ends, how many usable hosts it provides, and what the corresponding dotted-decimal mask looks like.

It also supports subnet splitting and supernetting, which makes it easier to reason about larger address plans and carve a network into smaller blocks. The prefix reference table gives you a quick way to compare common CIDR sizes, host counts, and subnet masks without recalculating everything each time.

When This Page Helps

Use this calculator to size subnets before you create VLANs, VPCs, ACLs, firewall rules, or lab environments. It keeps the host range, subnet mask, wildcard mask, and prefix length in one place, which reduces mistakes when you are planning or documenting an address layout. It is especially handy when you need to cross-check both host capacity and exact address boundaries quickly.

How to Use the Inputs

  1. Enter an IP address (e.g., 192.168.1.100)
  2. Enter or select the CIDR prefix length (e.g., /24)
  3. Review the calculated network address, broadcast, and host range
  4. Check the subnet mask and wildcard mask in dotted decimal format
  5. View the number of available host addresses
  6. Use presets for common network sizes
  7. Reference the CIDR table for all prefix lengths
Formula used
Network Address = IP AND Subnet Mask. Broadcast = Network OR Wildcard Mask. Host Count = 2^(32 - prefix) - 2. Subnet Mask = 32 bits with 'prefix' leading 1s. Wildcard Mask = NOT(Subnet Mask). First Host = Network + 1. Last Host = Broadcast - 1.

Example Calculation

Result: Network: 192.168.1.0/24, Hosts: 254

A /24 network has a subnet mask of 255.255.255.0, giving 256 addresses (192.168.1.0 to 192.168.1.255). Subtracting network and broadcast addresses leaves 254 usable host addresses.

Tips & Best Practices

  • Always reserve the first and last addresses in a subnet for network and broadcast
  • Use /30 subnets for point-to-point links (2 usable addresses)
  • Common VPC sizes: /16 (65K hosts) for large deployments, /24 (254 hosts) for typical subnets
  • Private ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
  • Cloud providers often reserve additional addresses (e.g., AWS reserves 5 per subnet)
  • Use the wildcard mask for Cisco ACLs and OSPF network statements

Understanding CIDR and Subnetting

CIDR was introduced in 1993 to replace the wasteful Class A/B/C IP address system. Instead of fixed 8/16/24-bit network portions, CIDR allows any prefix length from /0 to /32, enabling precise allocation of address space. This dramatically slowed the exhaustion of IPv4 addresses and is fundamental to modern networking.

Subnetting divides a network into smaller, more manageable pieces. A company with a /24 might create separate subnets for different departments: /26 for engineering (62 hosts), /27 for sales (30 hosts), and /28 for management (14 hosts). This improves security, reduces broadcast traffic, and makes network management easier.

Cloud Networking with CIDR

Cloud platforms like AWS, Azure, and GCP use CIDR extensively. When creating a VPC, you specify a CIDR block (typically /16 to /24). Within the VPC, subnets are created with smaller CIDR blocks. Understanding CIDR is essential for properly sizing networks, configuring security groups, and establishing VPN connections between cloud and on-premises networks.

IPv4 Address Exhaustion and IPv6

The IPv4 address space (2^32 = 4.3 billion addresses) is effectively exhausted. IPv6 with its 128-bit addresses provides a virtually unlimited supply. However, IPv4 remains dominant, and efficient subnetting through CIDR remains important for managing existing allocations.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • CIDR notation combines an IP address with a prefix length, such as 192.168.1.0/24. The prefix length tells you how many bits belong to the network portion, so the rest are available for hosts. That is why CIDR is so useful for both fixed-size and variable-size subnet plans.