IP Subnet Calculator: CIDR and Hosts
Use this IP subnet calculator to plan networks quickly. Enter an IPv4 address with a CIDR prefix like /24 or a subnet mask, and get the network address, broadcast address, usable host range, wildcard mask and number of hosts.
IP Subnet Calculator
IPv4 CIDR calculator.
How to use the IP Subnet Calculator
- Enter an IPv4 address, optionally with /prefix.
- Or choose the prefix and mask from the list.
- Read the network, broadcast and host range.
- Check the mask, wildcard and binary forms.
How it works
The prefix length says how many leading bits are the network part. The block size is 2^(32 − prefix) addresses; the network address is the IP rounded down to a multiple of the block size and the broadcast address is the last address in the block. Usable hosts exclude those two, except for /31 and /32.
Example
192.168.1.10/24: network 192.168.1.0, broadcast 192.168.1.255, hosts 192.168.1.1 to 192.168.1.254 (254 usable), mask 255.255.255.0.
Frequently asked questions
How many hosts are in a /24?
256 addresses, 254 usable.
What is a wildcard mask?
The inverse of the subnet mask, used in Cisco ACLs.
Does it support IPv6?
Not yet; IPv4 only.
See also: Binary Calculator, Hex Calculator.
Calculate a subnet
How to use it
- Enter an IPv4 address.
- Enter a CIDR prefix or mask.
- Read the network and broadcast.
- Check the host range and count.
More questions
How many hosts in a /24?
A /24 subnet has 254 usable hosts after the network and broadcast addresses.
What is a wildcard mask?
The inverse of the subnet mask, used in some router rules.
Does it support IPv6?
No. This tool is for IPv4 addresses only.
Related tools: Number Base Converter, Chmod Calculator, Binary Calculator.
Splitting an office network with a /26
Enter an IPv4 address and pick the CIDR prefix, or type it as 192.168.1.10/26. The tool lists the network, broadcast, first and last host, mask and wildcard. To see your own public address, use the What Is My IP Address tool.
Worked example: 192.168.1.10 with a /26 gives network 192.168.1.0, broadcast 192.168.1.63, mask 255.255.255.192 and 62 usable hosts. A larger /22 such as 10.0.0.77/22 gives 1,022 usable hosts.
More answers
How many usable hosts are in a /26?
A /26 has 64 addresses. Two are reserved for the network and broadcast, which leaves 62 usable hosts. For 192.168.1.10/26 the range runs from 192.168.1.0 to 192.168.1.63.
How many usable hosts are in a /22?
A /22 holds 1,024 addresses and 1,022 are usable. The address 10.0.0.77/22 sits in network 10.0.0.0 with broadcast 10.0.3.255.