Calculate the subnet.
See every boundary.
Enter an IPv4 address in CIDR notation to calculate the network, broadcast, mask, wildcard, and host range.
How do I calculate a subnet? Enter an IP address and CIDR mask to see the network range, broadcast address, and usable hosts.
IPv4 subnet calculator
Host counts follow common IPv4 conventions: /31 and /32 are shown without subtracting network and broadcast addresses.
How to calculate a subnet
- Enter an IP address and mask — dotted or CIDR, both accepted.
- Read the block — network address, broadcast, usable host range, and host count.
- Check membership — is this IP inside that range? The answer is one glance away.
Where subnet math shows up
- Configuring VPNs, firewalls, and cloud VPCs without breaking routing
- Deciding how large a subnet a workload actually needs
- Certification study — the topic that refuses to stick from slides alone
Good to know
The network and broadcast addresses are part of the block but not usable by hosts — a /24 is 256 addresses with 254 usable. The /31 and /32 edge cases (point-to-point links and single hosts) follow the conventions explained on the page. Private ranges — 10/8, 172.16/12, 192.168/16 — never belong on the public internet, which is why your home router hands out 192.168 addresses.
What is CIDR notation?
CIDR writes an IPv4 address followed by a prefix length, such as 192.168.1.0/24. The prefix length tells you how many bits belong to the network.
Does this check routing or firewall rules?
No. It only calculates the mathematical boundaries of the entered IPv4 subnet.