IPv4 Subnet Calculator
Enter an IPv4 address and a subnet mask or CIDR prefix to calculate the network range, broadcast address, usable hosts and binary breakdown.
About this tool
Subnetting divides a larger IPv4 network into smaller, self-contained segments. This calculator works out every value you need when planning or documenting a subnet: the network and broadcast addresses, the range of usable host addresses, the subnet and wildcard masks, and a binary view useful for teaching or verifying calculations by hand.
Worked example
Take 192.168.1.10/24. A /24 prefix uses a 255.255.255.0 mask, giving a network address of 192.168.1.0, a broadcast address of 192.168.1.255, and 254 usable host addresses from 192.168.1.1 to 192.168.1.254.
How to use this tool
- Enter any IPv4 address within the subnet, e.g.
192.168.1.10. - Enter the subnet mask (
255.255.255.0) or CIDR prefix (24). - Results update instantly as you type, and the URL updates so you can bookmark or share a calculation.
Frequently asked questions
What is a subnet mask?
What is the difference between the network address and the broadcast address?
Why does a /31 or /32 network have no usable host range?
Related tools
CIDR Calculator
Convert CIDR notation to an IP address range, get the address count, and check whether a given IP falls inside a CIDR block.
IP Converter
Convert IPv4 addresses between dotted-decimal, hexadecimal and binary, and expand or compress IPv6 addresses.
IP Lookup
Look up an IPv4 or IPv6 address: version, approximate location, ASN, network organisation, reverse hostname and RDAP registration data.