About the Subnet Calculator
Plan networks, firewall rules and cloud VPCs without doing binary maths. Enter an IP with a prefix like 192.168.1.10/24 and get every value you need.
Subnetting divides an IP network into smaller blocks for different departments, server tiers or cloud subnets. Working out network and broadcast addresses by hand means converting to binary and counting bits, which is slow and easy to get wrong. This calculator gives every value instantly for network engineers, students preparing for networking exams, and developers setting up cloud VPCs and firewall rules.
Enter an IPv4 address with a CIDR prefix (10.0.0.5/16) or with a dotted subnet mask (192.168.1.10 255.255.255.0). The tool shows the network address, broadcast, first and last usable host, number of usable hosts, subnet mask, wildcard mask, the address class and whether the range is private, public, loopback, link-local, carrier-grade NAT or multicast.
How to use the Subnet Calculator
- 1Enter an IPv4 address.
- 2Choose the prefix length (/0 to /32).
- 3Read the network details.
Key features
- Accepts CIDR or dotted mask input.
- Network, broadcast, first and last host.
- Usable host count, including /31 and /32 rules.
- Wildcard mask for ACLs and OSPF.
- Private, public and special range detection.
Practical uses
- Planning subnets for an AWS, Azure or GCP VPC.
- Writing firewall and security group rules.
- Configuring Cisco ACLs with wildcard masks.
- Checking answers while studying for CCNA.
- Checking whether two IP addresses are in the same subnet before troubleshooting connectivity.
Example
For 192.168.1.10/26 the network is 192.168.1.0/26, the broadcast 192.168.1.63, usable hosts 192.168.1.1 to 192.168.1.62 (62 hosts), mask 255.255.255.192 and wildcard 0.0.0.63. The range is marked Private (RFC 1918).
Tips and common mistakes
- Cloud providers reserve extra addresses in each subnet (AWS reserves five), so plan for fewer usable hosts.
- Use /30 or /31 for point-to-point links to save addresses.
- Keep subnets aligned on their natural boundaries to make summarising routes easier.
Limitations
- IPv6 is not supported.
- It calculates one subnet at a time; splitting a block into many subnets must be done step by step.
Privacy
Addresses are calculated locally. Internal network ranges you enter are not sent anywhere.
Frequently asked questions
How many hosts does a /24 have?
256 addresses, 254 usable hosts (network and broadcast are reserved).
What about /31 and /32?
/31 has 2 usable addresses for point-to-point links (RFC 3021); /32 is a single host.
Does it support IPv6?
Not yet; this calculator covers IPv4.
What is a wildcard mask?
The inverse of the subnet mask, used by Cisco ACLs and OSPF. For 255.255.255.0 it is 0.0.0.255.
Can I enter a subnet mask instead of /24?
Yes. Type the address followed by a space and a dotted mask, for example 192.168.1.10 255.255.255.0.