Calculator
Subnet Calculator
CIDR Input
Enter an IPv4 CIDR block like 192.168.1.0/24.
Example CIDR: 192.168.1.0/24
Output
Calculated subnet details will appear here.
Frequently Asked Questions
What is a subnet mask?
A subnet mask defines which portion of an IP address identifies the network and which identifies the host. Written as 255.255.255.0 (or /24 in CIDR notation), it determines the size and scope of a subnet. The /24 means the first 24 bits are the network portion.
What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation expresses an IP address and its network prefix length together, e.g. 192.168.1.0/24. The number after the slash indicates how many bits are the network part. /24 = 256 addresses, /16 = 65,536 addresses.
How many usable hosts does a subnet have?
Total addresses = 2^(32 − prefix). Subtract 2 for the network address (first) and broadcast address (last). A /24 subnet has 256 total addresses and 254 usable host addresses. A /30 has 4 total and 2 usable — common for point-to-point links.