IP Subnet Calculator (IPv4, CIDR & Subnet Mask)
Enter an IPv4 address with a CIDR prefix or subnet mask to get the network address, broadcast address, usable host range, number of hosts, wildcard…
Enter an IPv4 address with a CIDR prefix or subnet mask to get the network address, broadcast address, usable host range, number of hosts, wildcard mask, IP class and binary mask.
Results
About This Calculator
Type the address and either a prefix length (/24) or a dotted mask (255.255.255.0). You can also type both together, like 10.0.0.5/16.
The network address is the address with every host bit set to 0, and the broadcast address has every host bit set to 1. The usable hosts are everything in between. A /31 is a point-to-point link with 2 usable addresses, and a /32 is a single host.
Example
Example: 192.168.1.10/24 is in network 192.168.1.0/24. Hosts run 192.168.1.1 – 192.168.1.254 (254 usable), the broadcast address is 192.168.1.255 and the wildcard mask is 0.0.0.255.
Assumptions
IPv4 only — use the IPv6 Subnet Calculator for IPv6. Classes (A–E) are shown for reference; modern networks are classless (CIDR). The wildcard mask is the inverse of the subnet mask, as used in Cisco ACLs and OSPF.
Frequently Asked Questions
How many hosts are in a /24?
256 addresses, 254 usable (the network and broadcast addresses can't be given to hosts).
What is a wildcard mask?
The subnet mask with the bits flipped: 255.255.255.0 becomes 0.0.0.255. Cisco ACLs and OSPF use it.
What does /27 mean?
The first 27 bits are the network, leaving 5 host bits: 32 addresses, 30 usable, mask 255.255.255.224.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile