Subnet Calculator

Subnet Calculator

Enter an IP address in CIDR notation to calculate subnet details. Network address, broadcast, host range, masks, and more.

Enter IP with CIDR notation — e.g. 10.0.0.0/8, 172.16.0.0/12

Results for 192.168.1.0/24

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
CIDR Prefix/24
Total Hosts256
Usable Hosts254

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation combines an IP address with a prefix length to describe a network. For example, 192.168.1.0/24 means the first 24 bits identify the network and the remaining 8 bits are available for host addresses — giving 256 total addresses and 254 usable hosts (the network and broadcast addresses are reserved).

Common subnet masks

CIDRSubnet MaskUsable Hosts
/8255.0.0.016,777,214
/16255.255.0.065,534
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/30255.255.255.2522

Network address vs broadcast address

Every subnet has two reserved addresses that cannot be assigned to hosts. The network address is the first address in the range (all host bits set to 0) and identifies the subnet itself. The broadcast address is the last address (all host bits set to 1) and is used to send packets to every device on the subnet simultaneously. The usable host range sits between these two.

When to use a /30 subnet

A /30 subnet provides exactly 2 usable host addresses, making it ideal for point-to-point links between two routers. Using a /30 rather than a /24 conserves IP address space and keeps routing tables clean. For loopback interfaces or single-host assignments, a /32 is used.

Private IP address ranges

  • 10.0.0.0/8 — up to 16.7 million addresses (Class A private)
  • 172.16.0.0/12 — up to 1 million addresses (Class B private)
  • 192.168.0.0/16 — up to 65,536 addresses (Class C private, most home networks)

These ranges are not routable on the public internet and are reserved for use within private networks. NAT (Network Address Translation) allows devices using private IPs to communicate with the internet through a single public IP.