As a network engineer, administrator, or Site Reliability Engineer (SRE) you probably have run across CIDR notation for defining IPv4 address spaces for both networks and subnets. CIDR notation is used a lot in the IT infrastructure configuration world. The following is a description of what CIDR notation is, in case you’re not that familiar, as well as a helpful CIDR range calculator and reference table, including some Microsoft Azure and Cloud IP Range help/information. I hope these resources prove useful for you when defining CIDR ranges for your networks and subnets!
Calculate Start/End IPv4 Addresses for CIDR Range
When calculating the CIDR range of IPv4 IP addresses, it can be difficult to figure out the full range of IP Addresses that are included within the CIDR range. At least if you aren’t familiar with the binary math needed to calculate it. For this reason, I’ve included the following calculator that allows you to enter the CIDR range, click “Calculate”, then it will display the Starting IP Address and Ending IP Address of the CIDR range entered.
IPv4 Range Calculator
What is CIDR (Classless Inter-Domain Routing)?
Classless Inter-Domain Routing, often abbreviated as CIDR, is a method used in IP (Internet Protocol) addressing and routing to efficiently allocate and manage IP addresses. It replaced the older class-based addressing system (Class A, Class B, and Class C) and provides a more flexible way to allocate and subnet IP addresses.
CIDR allows for a more precise allocation of IP addresses by using a prefix length notation. In this notation, an IP address is followed by a forward slash (/) and a number, which represents the number of bits in the network portion of the address. For example, in the CIDR notation 192.168.1.0/24, the /24 indicates that the first 24 bits of the IP address are the network portion, and the remaining 8 bits are used for host addresses.
Key points about CIDR:
- Subnetting: CIDR allows network administrators to create subnets of varying sizes, depending on their specific needs. This flexibility is crucial for optimizing IP address allocation and routing within a network.
- Efficient IP address allocation: With CIDR, organizations can allocate IP addresses more efficiently, reducing IP address wastage. This is particularly important as IPv4 addresses have become increasingly scarce.
- Routing: CIDR simplifies routing by aggregating IP address blocks into larger blocks, reducing the size of routing tables and making internet routing more efficient.
- Variable-length prefixes: CIDR allows for variable-length prefixes, meaning that IP address blocks don’t have to conform to strict class boundaries. This results in more efficient utilization of the IP address space.
- CIDR notation: CIDR notation is used to represent IP address blocks with prefix lengths, making it easier to understand and manage IP address assignments and routing configurations.
CIDR has played a crucial role in extending the life of IPv4, which was initially designed with a limited number of addresses. It has also been incorporated into IPv6, the next-generation Internet Protocol, to provide similar flexibility in addressing and routing within IPv6 networks.
What is CIDR IPv4 Address Range Notation?
CIDR stands for “Classless Inter-Domain Routing”, and is the method used for assigning IP addresses and routing Internet traffic. IPv4 CIDR notation, specifically, is a way of representing a range of IP addresses in a concise and standardized format. CIDR notation is commonly used by network engineers, administrators, and Site Reliability Engineers (SRE) to manage IP addresses and create subnets.
CIDR notation is a flexible and efficient allocation of IP addresses by allowing the use of variable-length subnet masks. The network portion and the host portion of an IP address are not fixed, but can be specified by a number known as the CIDR prefix.
The CIDR prefix is written as a slash followed by a number between 0 (zero) and 32. The number represents the number of network bits in the subnet mask, and is used to determine the range of IP addresses that belong to the network. For example, the CIDR prefix of /24 indicates that the first 24 bits of the IP address represent the network address, while the remaining 8 bits represents the host address.
To calculate the CIDR prefix for a given IP address range, you need to count the number of leading 1 bits in the binary representation of the subnet mask. For example, the subnet mask of 255.255.255.0 (in dotted decimal notation) has 24 leading 1 bits, so its CIDR prefix is /24.
If this sounds a little difficult for you to calculate, then the following calculator and reference table for IPv4 CIDR notations should prove useful.
What Private IPv4 Ranges Are There?
Private IP addresses are designated for use within internal networks and are not routable over the public internet. These addresses are commonly used in home, office, and cloud environments to allow multiple devices to communicate locally while sharing a single public IP address for external access.
The Internet Assigned Numbers Authority (IANA) has defined specific private IP address ranges as per RFC 1918 (IPv4) and RFC 4193 (IPv6). These private ranges are commonly used in network configurations, including on-premises networks, corporate environments, and cloud-based Virtual Networks (VNets) in platforms like Microsoft Azure.
IPv4 private addresses fall within three designated blocks:
| Private Range | Subnet Mask | Total IPs | Common Use Case |
|---|---|---|---|
10.0.0.0 – 10.255.255.255 |
255.0.0.0 (/8) |
16,777,216 | Large enterprises, ISPs, and cloud environments |
172.16.0.0 – 172.31.255.255 |
255.240.0.0 (/12) |
1,048,576 | Mid-sized networks and corporate use |
192.168.0.0 – 192.168.255.255 |
255.255.0.0 (/16) |
65,536 | Home networks, small offices, and consumer routers |
These private IP ranges can be freely used in internal networks, but devices using them require Network Address Translation (NAT) to communicate with external public networks such as the Internet.
Why use Private IP Addresses?
Private IP ranges are widely used for:
- Security & Isolation – Preventing direct internet exposure of internal resources.
- Address Conservation – Reducing the demand for public IPv4 addresses.
- Cloud & Virtual Networks – Enabling private communication between resources in environments like Azure VNets, AWS VPCs, and on-premises data centers.
By utilizing private IP ranges effectively, organizations can optimize their network design while maintaining security and efficiency in both traditional and cloud-based infrastructures.
What are Microsoft Azure Reserved IPs?
When defining a CIDR range for a Microsoft Azure virtual network (VNet) or Subnet, it’s essential to be aware that certain IP addresses within that range are automatically reserved for system use. These reserved addresses ensure proper network operation and functionality within Azure’s infrastructure.
Azure reserves the first 4 IPs and the Last IP in the CIDR range for the following purposes:
- First IP Address (Network Address) – The very first IP in the CIDR range is the network address. This address identifies the subnet itself and cannot be assigned to any device or virtual machine.
- Second IP Address (Azure Default Gateway) – The second IP in the range is reserved as the default gateway for the subnet. It is used to route traffic outside of the subnet.
- Third and Fourth IP Addresses (Azure DNS) – Azure reserves the next two consecutive IPs within the range to map to Azure DNS IP addresses to the virtual network space.
- Last IP Address (Network Broadcast Address) – The very last IP in the subnet range is the broadcast address, used for network-wide communication within the subnet. However, broadcast communication is generally not used in Azure VNets, but the address remains reserved.
Why Does Azure Reserve These IPs?
Azure reserves these IPs to ensure smooth network operations, facilitate routing, and provide services such as DNS and Azure-specific infrastructure needs. Understanding these reserved IPs is crucial when planning your network, as it affects the number of usable IP addresses within any given subnet.
For example, with the 10.0.0.0/24 IPv4 CIDR range (with a total of 256 IP addresses), only 252 IP addresses will be usable in a Microsoft Azure VNet or Subnet with this range. Microsoft Azure will reserve the following IP Addresses:
10.0.0.0– Network Address10.0.0.1– Azure Default Gateway10.0.0.2&10.0.0.3– Azure DNS10.0.0.255– Network Broadcast Address
By keeping these reservations in mind, network engineers and administrators can properly allocate and manage IP spaces within Azure environments.
IPv4 Address CIDR Range Reference Table
Some times it can be difficult to remember how many IP addresses are in each of the CIDR ranges that can be defined. These range from a /0 with the entire IPv4 address space, down to a /32 that only includes a single IP address in the range.
The following table lists out all the CIDR ranges with the number of IPv4 address within that range:
| CIDR Range | Address Mask | IP Address Count |
|---|---|---|
/0 | 0.0.0.0 | 4,294,967,296(entire IPv4 address space) |
/1 | 128.0.0.0 | 2,147,483,648 |
/2 | 192.0.0.0 | 1,073,741,824 |
/3 | 224.0.0.0 | 536,870,912 |
/4 | 240.0.0.0 | 268,435,456 |
/5 | 248.0.0.0 | 134,217,728 |
/6 | 252.0.0.0 | 67,108,864 |
/7 | 254.0.0.0 | 33,554,432 |
/8 | 255.0.0.0 | 16,777,216 |
/9 | 255.128.0.0 | 8,388,608 |
/10 | 255.192.0.0 | 4,194,304 |
/11 | 255.224.0.0 | 2,097,152 |
/12 | 255.240.0.0 | 1,048,576 |
/13 | 255.248.0.0 | 524,288 |
/14 | 255.252.0.0 | 262,144 |
/15 | 255.254.0.0 | 131,072 |
/16 | 255.255.0.0 | 65,536 |
/17 | 255.255.128.0 | 32,768 |
/18 | 255.255.192.0 | 16,384 |
/19 | 255.255.224.0 | 8,192 |
/20 | 255.255.240.0 | 4,096 |
/21 | 255.255.248.0 | 2,048 |
/22 | 255.255.252.0 | 1,024 |
/23 | 255.255.254.0 | 512 |
/24 | 255.255.255.0 | 256 |
/25 | 255.255.255.128 | 128 |
/26 | 255.255.255.192 | 64 |
/27 | 255.255.255.224 | 32 |
/28 | 255.255.255.240 | 16 |
/29 | 255.255.255.248 | 8 |
/30 | 255.255.255.252 | 4 |
/31 | 255.255.255.254 | 2 |
/32 | 255.255.255.255 | 1 |
Note: The IP address count column shows the total number of IP addresses within each CIDR range, including the network address and broadcast address.
Original Article Source: IPv4 Address CIDR Range Reference and Calculator written by Chris Pietschmann (If you're reading this somewhere other than Build5Nines.com, it was republished without permission.)


Prompt Noise Is Killing Your AI Accuracy: How to Optimize Context for Grounded Output
Unlock GitHub Copilot’s Full Potential: Why Every Repo Needs an AGENTS.md File
Microsoft Azure Regions: Interactive Map of Global Datacenters
Create Azure Architecture Diagrams with Microsoft Visio
IPv4 Address CIDR Range Reference and Calculator



