Imperial Products › Tools › Subnet Calculator

Subnet Calculator

Calculate IPv4 network addresses, host ranges, subnet masks, and more — instantly in your browser.

Enter IP Address
or
⚠ Invalid input
Subnet Details
Binary Representation
Network bit (1)
Host bit
CIDR Reference Table — /8 to /32
Prefix Subnet Mask Wildcard Mask Total Addresses Usable Hosts Notes

Understanding IP Subnetting

Subnetting is the practice of dividing a single IP network into smaller, logical sub-networks (subnets). It is a fundamental skill for network engineers, system administrators, and anyone working with TCP/IP infrastructure. This free subnet calculator handles all the binary arithmetic instantly so you can focus on design.

What is CIDR Notation?

CIDR (Classless Inter-Domain Routing) notation expresses an IP address and its associated prefix length as a single string — for example, 192.168.1.0/24. The number after the slash indicates how many bits of the 32-bit address are used for the network portion. A /24 network reserves 24 bits for the network and leaves 8 bits for hosts, yielding 254 usable host addresses.

Key Subnet Terms

Subnetting Use Cases

Common Subnet Sizes

The most common subnets are /24 (254 hosts, a classic Class C network), /16 (65,534 hosts), and /8 (16,777,214 hosts). For point-to-point links, /30 (2 usable hosts) or /31 (RFC 3021, 2 hosts, no broadcast) are standard. Cloud VPCs often use /16 for the entire VPC with smaller /24 or /28 subnets per availability zone.

Copied to clipboard!