CIDR Subnet Calculator

Compute network address, broadcast address, subnet mask, wildcard mask, host range, usable hosts, binary representation, IP class, and private/public status from any IPv4 CIDR notation.

Input

Result

All parameters set. Ready to execute!
Money Starter Kit

Get Free Money Making Tips

Join 2,000+ smart readers getting side-hustle ideas, passive income strategies, and proven finance tips delivered straight to your inbox.

No Spam
Privacy First
Instant Access
Client-Side Privacy
Instant Response
100% Free Forever

CIDR Subnet Calculator: Compute Network Address, Host Range, and Binary Masks from CIDR Notation

The CIDR Subnet Calculator decomposes any IPv4 CIDR notation (e.g., 192.168.1.0/24) into its complete network parameters: network address, broadcast address, subnet mask, wildcard mask, host range, total addresses, usable hosts, IP class, private/public status, and full binary representation. In "Network Architecture," "Firewall Rule Configuration," and "IP Address Management (IPAM)," CIDR subnet calculations are performed hundreds of times daily. According to ARIN (American Registry for Internet Numbers), over 4.2 billion IPv4 addresses are allocated globally, and efficient subnetting is essential to prevent address exhaustion within organizational networks. This tool performs all subnet math in under 1 millisecond.

What is CIDR notation and how does subnet calculation work?

CIDR (Classless Inter-Domain Routing) notation represents an IP address followed by a slash and the prefix length, which specifies how many bits of the address define the network portion. The remaining bits define the host portion. For 192.168.1.0/24, the first 24 bits (192.168.1) identify the network, and the remaining 8 bits identify individual hosts. The subnet mask is derived by setting the first n bits to 1 and the remaining (32-n) bits to 0. For /24: 11111111.11111111.11111111.00000000 = 255.255.255.0. The total number of addresses is 2^(32-n), and usable hosts is 2^(32-n) - 2 (excluding network and broadcast addresses). CIDR was introduced by RFC 1519 (1993) to replace the wasteful classful addressing system.

Common CIDR Prefix Sizes

CIDR Prefix Subnet Mask Total Addresses Usable Hosts Typical Use
/8255.0.0.016,777,21616,777,214Class A networks (large ISPs)
/16255.255.0.065,53665,534Class B networks (enterprise campus)
/24255.255.255.0256254Class C / standard LAN segment
/27255.255.255.2243230Small department subnet
/30255.255.255.25242Point-to-point links (router-to-router)
/32255.255.255.25511Single host route (loopback)

7 Network Engineering Use Cases

  • VLAN Subnet Design: Network architects assign CIDR blocks to VLANs. A /24 block provides 254 usable hosts, suitable for most department-level VLANs in enterprise networks.
  • Firewall ACL Configuration: Security engineers use network and broadcast addresses from CIDR calculations to define access control list (ACL) permit/deny rules on Cisco, Palo Alto, and Fortinet devices.
  • DHCP Scope Planning: DHCP administrators configure address pools from the first usable host to the last usable host, reserving network and broadcast addresses and a portion for static assignments.
  • Route Summarization: Network engineers aggregate multiple contiguous subnets into a single supernet route. Combining 192.168.0.0/24 through 192.168.3.0/24 produces 192.168.0.0/22.
  • Cloud VPC Configuration: AWS VPC, Azure VNet, and GCP VPC require CIDR block specification during creation. A /16 VPC provides 65,534 usable IPs across multiple subnets.
  • IP Address Audit: IT teams verify that assigned IP addresses fall within their designated subnet range by comparing against the network and broadcast boundaries.
  • Penetration Testing Scope: Security assessors define target scope using CIDR ranges (e.g., 10.0.0.0/8) and need to know exact host boundaries to avoid scanning out-of-scope addresses.

How to Use the CIDR Subnet Calculator

  1. Enter CIDR Notation: Input an IPv4 address with prefix length in the format x.x.x.x/n (e.g., 192.168.1.0/24, 10.0.0.0/8, 172.16.0.0/12).
  2. Execute Calculation: Click "Calculate Subnet." The tool instantly computes all network parameters using bitwise operations.
  3. Review Network Information: The output includes IP address, network address, broadcast address, subnet mask, wildcard mask, CIDR notation, host range, total/usable addresses, binary representations, IP class, and private/public classification.
  4. Apply Results: Use the network address for routing table entries, the host range for DHCP scopes, and the wildcard mask for Cisco ACL configurations.

Private vs. Public IP Address Classification

The calculator automatically identifies whether the input IP falls within the RFC 1918 private address ranges: 10.0.0.0/8 (16,777,216 addresses), 172.16.0.0/12 (1,048,576 addresses), or 192.168.0.0/16 (65,536 addresses). Private addresses are non-routable on the public internet and are used exclusively for internal network communication. All other IPv4 addresses are classified as public (routable). The distinction between private and public addresses is critical for NAT (Network Address Translation) configuration, firewall policy design, and compliance with IANA IP Address Allocation Guidelines.

Frequently Asked Questions

What is the wildcard mask and when is it used?

The wildcard mask is the bitwise inverse of the subnet mask. For subnet mask 255.255.255.0, the wildcard mask is 0.0.0.255. Cisco IOS uses wildcard masks in access control lists (ACLs) and OSPF network statements instead of subnet masks. The wildcard mask identifies which bits are "don't care" bits in address matching.

What is the difference between network address and broadcast address?

The network address is the first address in the subnet (all host bits set to 0) and identifies the subnet itself. The broadcast address is the last address (all host bits set to 1) and is used to send packets to all hosts in the subnet. Neither can be assigned to individual hosts.

Does this calculator support IPv6?

This calculator is designed for IPv4 CIDR notation (32-bit addresses). IPv6 uses 128-bit addresses with different subnetting conventions. A dedicated IPv6 subnet calculator is required for IPv6 CIDR calculations.

What does /31 and /32 mean?

A /31 prefix provides 2 addresses with 0 usable hosts under traditional rules, but RFC 3021 allows /31 for point-to-point links. A /32 prefix represents a single host address (host route), commonly used for loopback interfaces and specific routing table entries.

How is IP class determined?

IP class is based on the first octet: Class A (1-126), Class B (128-191), Class C (192-223), Class D Multicast (224-239), Class E Reserved (240-255). While classful addressing is largely obsolete in modern networking, the classification remains useful for educational purposes and legacy system compatibility.

More Network Ip Tools

Browse All