Subnet Calculator

Calculate IPv4 subnet information, network ranges, and subdivide networks.

Network Information
Network Address
Broadcast Address
Subnet Mask
Wildcard Mask
First Usable Host
Last Usable Host
Total Hosts
Usable Hosts
Additional Details
IP Class
IP Type
CIDR Notation
Binary Subnet Mask
Binary IP
Hex IP
Subnet Division
# Network First Host Last Host Broadcast Usable Hosts

What Is Subnetting?

Subnetting is the practice of dividing a network into smaller, more manageable sub-networks (subnets). It allows network administrators to organize IP addresses efficiently, improve security through network segmentation, and reduce broadcast traffic. Subnetting is a fundamental concept in networking that every network engineer, system administrator, and DevOps professional needs to understand.

Key Subnet Concepts

ConceptDescriptionExample
IP AddressUnique identifier for a device on a network192.168.1.100
Subnet MaskDetermines which portion of an IP is the network vs host255.255.255.0
CIDR NotationCompact representation of subnet mask/24 = 255.255.255.0
Network AddressFirst address in the subnet (identifies the network)192.168.1.0
Broadcast AddressLast address in the subnet (reaches all hosts)192.168.1.255
Usable HostsTotal addresses minus network and broadcast254 hosts for a /24 subnet

Common Subnet Sizes

CIDRSubnet MaskUsable HostsTypical Use
/32255.255.255.2551Single host (loopback, point-to-point)
/30255.255.255.2522Point-to-point links between routers
/24255.255.255.0254Small office or home network
/16255.255.0.065,534Large corporate network
/8255.0.0.016,777,214Major ISP or cloud provider block

Common Use Cases

  • Network Design: Plan IP address allocation for offices, data centers, and cloud environments.
  • Cloud Networking: Configure VPC subnets in AWS, Azure, or GCP with appropriate CIDR blocks.
  • Firewall Rules: Define network-based access controls using CIDR notation.
  • Troubleshooting: Determine if two IP addresses are on the same subnet to diagnose connectivity issues.

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation represents a network address and its subnet mask as IP/prefix-length. The prefix length is the number of leading 1-bits in the subnet mask. For example, /24 means 24 bits for the network portion and 8 bits for hosts.

Why can't I use the network and broadcast addresses?

The network address (all host bits = 0) identifies the subnet itself, and the broadcast address (all host bits = 1) is used to send messages to all devices on the subnet. Neither can be assigned to an individual host.