PrimeCalcPro
Explore 1070+ free calculators — math, finance, health & more.

IP Subnet Calculator

Subnet mask CIDR notation and host count

🌐IP Subnet Calculator

e.g. 192.168.1.0

/8 to /32

An IP subnet calculator breaks an IP address space into smaller networks. CIDR (Classless Inter-Domain Routing) notation specifies how many bits belong to the network portion — /24 means 24 bits for network, 8 bits for hosts, allowing 254 usable host addresses. Subnetting is essential for network design, router configuration, and firewall rules.

  1. 1IP addresses are 32-bit numbers (IPv4), written as 4 octets: e.g. 192.168.1.0
  2. 2CIDR /n means first n bits are the network address
  3. 3Subnet mask = n ones followed by (32−n) zeros in binary
  4. 4Network address = IP AND subnet mask
  5. 5Broadcast address = network address OR NOT(subnet mask)
  6. 6Usable hosts = 2^(32−n) − 2 (subtract network and broadcast addresses)
192.168.1.0/24=Network: 192.168.1.0, Broadcast: 192.168.1.255, Hosts: 254/24 gives 256 addresses, 254 usable
10.0.0.0/8=Network: 10.0.0.0, Hosts: 16,777,214Class A private range — 16 million hosts
CIDRSubnet MaskUsable HostsTypical Use
/30255.255.255.2522Point-to-point links
/29255.255.255.2486Small office
/28255.255.255.24014Small network
/27255.255.255.22430
/24255.255.255.0254Standard LAN
/16255.255.0.065,534Large campus
/8255.0.0.016,777,214ISP / Class A
🔒
100% 免费
无需注册
准确
经过验证的公式
即时
即时结果
📱
移动友好
所有设备

Settings

Theme

Light

Dark

Layout

Language

PrivacyTermsAbout© 2025 PrimeCalcPro