Home/Tools/Subnet Calculator

Subnet Calculator

Enter an IP address with CIDR notation or subnet mask to calculate the network address, broadcast address, host range, and more.

Enter as CIDR (192.168.1.0/24), IP + mask (192.168.1.0 255.255.255.0), or just an IP (defaults to /24).

Examples

Common Subnet Masks

CIDRSubnet MaskUsable HostsTypical Use
/8255.0.0.016,777,214Class A default
/12255.240.0.01,048,57410.x.x.x private
/16255.255.0.065,534Class B default
/20255.255.240.04,094Large office
/21255.255.248.02,046Medium campus
/22255.255.252.01,022Large subnet
/23255.255.254.0510Medium subnet
/24255.255.255.0254Class C default / typical LAN
/25255.255.255.128126Half Class C
/26255.255.255.19262Quarter Class C
/27255.255.255.22430Small office
/28255.255.255.24014Small LAN
/29255.255.255.2486Point-to-multipoint
/30255.255.255.2522Point-to-point link
/31255.255.255.2542P2P link (RFC 3021)
/32255.255.255.2551Host route / loopback