CIDR Calculator

Convert CIDR notation to subnet mask, calculate IP address ranges, and determine network boundaries. Essential tool for network planning and IP address management.

/24

CIDR Block Details

CIDR Notation: 192.168.1.0/24
Subnet Mask: 255.255.255.0
Wildcard Mask: 0.0.0.255
Network Address: 192.168.1.0
Broadcast Address: 192.168.1.255
First Host: 192.168.1.1
Last Host: 192.168.1.254
Total IPs: 256
Usable Hosts: 254
IP Class: C
IP Address Range
192.168.1.0 - 192.168.1.255

What is CIDR Notation?

CIDR (Classless Inter-Domain Routing) notation is a compact method for specifying IP address ranges and network masks. Introduced in 1993 to replace the older classful network addressing system, CIDR notation combines an IP address with a suffix indicating the number of bits in the network portion of the address. For example, 192.168.1.0/24 indicates that the first 24 bits define the network, leaving 8 bits for host addresses.

The CIDR notation revolutionized IP address allocation by allowing more flexible division of IP address space compared to the rigid Class A, B, and C boundaries. This flexibility is essential in modern networking where organizations need varying numbers of IP addresses. Our CIDR calculator helps you quickly convert between CIDR notation and traditional subnet masks, and calculate all relevant network details. For more comprehensive subnet calculations, you can also use our main subnet calculator tool.

Quick Tip

The number after the slash in CIDR notation directly tells you how many bits are used for the network portion. A /24 network uses 24 bits for the network (leaving 8 bits = 256 addresses), while a /16 uses 16 bits (leaving 16 bits = 65,536 addresses).

How to Use the CIDR Calculator

Our CIDR calculator offers two modes of operation to handle different scenarios you might encounter:

Mode 1: CIDR to Network Details

Enter a complete CIDR notation (like 10.0.0.0/8 or 172.16.0.0/12) and the calculator will provide comprehensive network information including the subnet mask, wildcard mask, network boundaries, and the full IP range. This mode is perfect when you have a CIDR block and need to understand its scope for firewall rules or network planning.

Mode 2: Subnet Mask to CIDR

If you have a traditional subnet mask and need to convert it to CIDR notation, use the second tab. Simply enter the subnet mask (like 255.255.255.0) and get the equivalent CIDR prefix. This is particularly useful when working with older network documentation or devices that display subnet masks in dotted-decimal format. For more detailed mask conversions, check out our dedicated netmask to CIDR converter.

Understanding CIDR Calculator Results

Network and Broadcast Addresses

Every CIDR block has two special addresses that cannot be assigned to hosts. The network address is the first IP in the range and identifies the network itself. The broadcast address is the last IP and is used to send data to all hosts in the network simultaneously. For example, in 192.168.1.0/24, the network address is 192.168.1.0 and the broadcast address is 192.168.1.255. You can calculate these individually using our network address calculator or broadcast address calculator.

Wildcard Mask

The wildcard mask is the bitwise inverse of the subnet mask. While subnet masks use 1s to identify network bits, wildcard masks use 0s. This inverse relationship makes wildcard masks essential for configuring access control lists (ACLs) on Cisco routers and OSPF routing configurations. A /24 subnet mask of 255.255.255.0 has a wildcard mask of 0.0.0.255. Our wildcard mask calculator provides additional functionality for these calculations.

Usable Host Range

The usable host range excludes the network and broadcast addresses, giving you the actual IP addresses that can be assigned to devices. For a /24 network with 256 total addresses, you have 254 usable host addresses (256 - 2 = 254). Understanding this range is crucial when planning IP address allocation for your network segments.

Common CIDR Blocks Reference

Here's a reference table showing commonly used CIDR blocks and their characteristics:

CIDR Subnet Mask Total IPs Usable Hosts Typical Use
/32255.255.255.25511Single host route
/31255.255.255.25422Point-to-point links
/30255.255.255.25242Point-to-point links
/29255.255.255.24886Small networks
/28255.255.255.2401614Small office
/27255.255.255.2243230Department
/26255.255.255.1926462Medium office
/25255.255.255.128128126Branch office
/24255.255.255.0256254Standard LAN
/23255.255.254.0512510Large office
/22255.255.252.01,0241,022Campus network
/16255.255.0.065,53665,534Enterprise
/8255.0.0.016,777,21616,777,214Major ISP

CIDR and Subnetting

CIDR notation is fundamentally connected to subnetting. When you subnet a network, you're essentially increasing the CIDR prefix length to create smaller networks. For instance, a /24 network can be divided into two /25 networks, four /26 networks, or eight /27 networks. This hierarchical division allows network administrators to efficiently allocate IP addresses based on the actual requirements of each network segment.

Understanding CIDR is essential when working with Variable Length Subnet Masking (VLSM), which allows different subnets within the same network to have different sizes. This technique maximizes IP address utilization by assigning appropriately sized subnets to each network segment. For complex VLSM calculations, our VLSM calculator can help you design efficient address allocation schemes.

CIDR in Cloud Computing

CIDR notation is extensively used in cloud computing platforms like AWS, Azure, and Google Cloud. When creating Virtual Private Clouds (VPCs) or virtual networks, you specify the address range using CIDR blocks. Understanding CIDR is crucial for:

  • Defining VPC address ranges (commonly /16 for main VPC)
  • Creating subnets within VPCs (typically /24 for individual subnets)
  • Configuring security group rules with IP ranges
  • Setting up VPC peering with non-overlapping CIDR blocks
  • Planning hybrid cloud connectivity with on-premises networks

When planning cloud infrastructure, it's essential to choose CIDR blocks that don't overlap with your existing networks. Our CIDR to IP range calculator can help you visualize the exact addresses in each block to ensure no conflicts exist.

CIDR Aggregation and Supernetting

CIDR also enables route aggregation (supernetting), where multiple smaller networks can be advertised as a single larger network. For example, four consecutive /26 networks can be aggregated into a single /24 route. This reduces the size of routing tables and improves routing efficiency across the internet. Route aggregation is a key technique used by ISPs and large enterprises to maintain manageable routing tables.

Aggregation Example

These four /26 networks:

  • 192.168.1.0/26 (192.168.1.0 - 192.168.1.63)
  • 192.168.1.64/26 (192.168.1.64 - 192.168.1.127)
  • 192.168.1.128/26 (192.168.1.128 - 192.168.1.191)
  • 192.168.1.192/26 (192.168.1.192 - 192.168.1.255)

Can be aggregated into: 192.168.1.0/24

Private CIDR Blocks

RFC 1918 defines three private IP address ranges that are commonly expressed in CIDR notation. These addresses are not routable on the public internet and are used for internal networks:

  • 10.0.0.0/8 - Class A private range (16,777,216 addresses)
  • 172.16.0.0/12 - Class B private range (1,048,576 addresses)
  • 192.168.0.0/16 - Class C private range (65,536 addresses)

Most home and office networks use addresses from the 192.168.0.0/16 range, while larger enterprises often use the 10.0.0.0/8 range for its larger address space. To check if an IP address falls within these private ranges, use our IP address validator tool.

Quick Reference
CIDRAddresses
/816,777,216
/1665,536
/204,096
/24256
/2816
/304
/321

Frequently Asked Questions About CIDR

The number after the slash (called the prefix length) indicates how many bits of the IP address are used for the network portion. For example, /24 means the first 24 bits identify the network, leaving 8 bits for host addresses. The larger the prefix number, the smaller the network (fewer available addresses). A /32 represents a single host, while a /8 represents over 16 million addresses.

To calculate the total number of IP addresses in a CIDR block, use the formula: 2^(32 - prefix). For a /24 network: 2^(32-24) = 2^8 = 256 total addresses. For usable host addresses, subtract 2 (for network and broadcast addresses), giving 254 usable hosts in a /24 network. For /31 and /32 networks, special rules apply as defined in RFC 3021.

CIDR notation and subnet masks represent the same information in different formats. A /24 CIDR prefix is equivalent to 255.255.255.0. The key difference is that CIDR allows for any prefix length (0-32), while classful addressing only allowed /8 (Class A), /16 (Class B), and /24 (Class C). CIDR's flexibility enables more efficient IP address allocation. You can convert between formats using our netmask to CIDR converter.

Choose a CIDR block that provides enough addresses for current needs plus room for growth (typically 50-100% extra capacity). For a network needing 100 devices, a /25 (126 usable hosts) might be tight, so /24 (254 hosts) would be better. For cloud VPCs, /16 is common for the main network with /24 subnets. Our VLSM calculator can help optimize address allocation across multiple network segments.

CIDR blocks can technically overlap, but this causes routing problems and should be avoided in network design. Overlapping occurs when one CIDR block contains addresses that exist in another. For example, 10.0.0.0/8 overlaps with 10.1.0.0/16 because the /16 is entirely contained within the /8. When designing networks, especially for VPC peering or VPN connections, always ensure CIDR blocks don't overlap to prevent routing conflicts.

Related Network Tools

Looking to calculate subnets for your network? You can also find first and last IPs in a range. For detailed analysis, translate between mask formats. Network administrators often need to check if IP addresses are correctly formatted. Additionally, create subnets of different sizes. Many users find it helpful to calculate IPv6 subnets and prefixes. For comprehensive planning, calculate subnets with dotted-decimal masks.