Home/Tools/Subnet Calculator

Subnet Calculator

Calculate IPv4 subnets with CIDR notation. Get network address, broadcast address, usable IP ranges, and subnet masks. Includes CIDR Range Merger to optimize multiple IP ranges into minimal CIDR blocks for firewall rules and routing tables.

/

Quick CIDR Reference

CIDRSubnet MaskTotal HostsDescription
/32255.255.255.2551Single host
/31255.255.255.2542Point-to-point
/30255.255.255.2524Point-to-point links
/29255.255.255.2488Small subnet
/28255.255.255.24016Very small network
/27255.255.255.22432Small network
/26255.255.255.19264Small network
/25255.255.255.128128Medium network
/24255.255.255.0256Class C
/16255.255.0.065,536Class B
/8255.0.0.016,777,216Class A

Click any row to use that CIDR value

Need Professional Network Design Services?

Our network engineers can help you design scalable, secure network architectures with optimal IP addressing, VLAN segmentation, routing configuration, and firewall policies. We ensure your network is efficient and future-proof.

Subnetting Fundamentals

Why Subnet?

Subnetting divides large networks into smaller, manageable segments. Benefits include:

  • Reduced broadcast traffic (better performance)
  • Improved security (segment isolation)
  • Simplified troubleshooting
  • Efficient IP address allocation
  • Better network organization

Common Subnet Sizes

/304 IPs (2 usable) - Point-to-point
/298 IPs (6 usable) - Tiny network
/2816 IPs - Very small network
/2732 IPs - Small department
/24256 IPs - Standard LAN
/1665K IPs - Large enterprise

VLSM (Variable Length Subnet Masking)

VLSM allows using different subnet masks within the same network to optimize IP address usage. Instead of using one /24 for all subnets, you can allocate /28 for small departments and /25 for large ones.

Example: Company with 200 Employees

Main office (150 users): 192.168.1.0/24 (254 hosts)
Branch 1 (25 users): 192.168.2.0/27 (30 hosts)
Branch 2 (15 users): 192.168.2.32/28 (14 hosts)
Point-to-point links: 192.168.2.48/30, 192.168.2.52/30

VLSM saves IP addresses by right-sizing subnets to actual needs instead of allocating /24 everywhere.

Practical Applications

Network Design

Plan IP addressing for new networks. Calculate required subnet sizes for different departments, VLANs, or locations. Ensure no overlap and efficient use of address space. Document IP allocation for future reference.

Firewall Configuration

Use CIDR notation in firewall rules and ACLs. The Range Merger helps consolidate rules to reduce rule count, improve performance, and simplify management. Fewer rules = easier troubleshooting.

Route Aggregation

Summarize multiple routes into fewer routing table entries. This reduces router memory usage, speeds up routing lookups, and minimizes BGP update traffic. Essential for large networks and ISPs.

Cloud Networking

Plan VPC/VNet subnets in AWS, Azure, or GCP. Allocate CIDR blocks for different environments (dev, staging, prod), availability zones, and service tiers. Avoid overlaps for VPC peering or VPNs.

Frequently Asked Questions

Common questions about the Subnet Calculator

CIDR (Classless Inter-Domain Routing) notation represents IP addresses and subnet masks compactly. The /24 in 192.168.1.0/24 means the first 24 bits are the network portion, leaving 8 bits for hosts (256 addresses). Common values: /32 = single host, /24 = 256 addresses (Class C), /16 = 65,536 addresses (Class B).

â„šī¸ Disclaimer

This tool is provided for informational and educational purposes only. All processing happens entirely in your browser - no data is sent to or stored on our servers. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Use at your own discretion.