Calculate IP addresses and subnets.
A subnet divides a large IP network into smaller, logically separated segments. Through subnetting, network administrators can manage IP addresses more efficiently, segment network traffic, and improve security. Our subnet calculator helps you compute CIDR notations, convert subnet masks, and determine available host addresses.
CIDR (Classless Inter-Domain Routing) replaces the old network classes A, B, C and uses a suffix (e.g., /24) to indicate the number of network bits.
The first address is the network address (identifies the subnet) and the last is the broadcast address (reaches all devices in the subnet). Neither can be assigned to a host.
Both mean the same thing. /24 is CIDR notation (24 network bits), 255.255.255.0 is the decimal subnet mask. CIDR is shorter and preferred in modern networking.
RFC 1918 defines: 10.0.0.0/8 (16M addresses), 172.16.0.0/12 (1M addresses), 192.168.0.0/16 (65K addresses). These are used in internal networks.
VLSM is ideal when different subnets need different sizes. E.g., /30 for point-to-point links (2 hosts), /24 for user networks (254 hosts).
💡 Tip: For home networks, a /24 subnet (254 devices) is usually sufficient. Plan enterprise networks with growth in mind and divide by departments or functions (servers, WiFi, IoT) into separate subnets.