How to Use the IP Subnet Calculator: Steps and a Worked Example
Find the network address, broadcast address, usable host range, subnet mask and wildcard mask for any IPv4 address and prefix length. This guide shows what to enter, a worked example, and the limits to keep in mind. The IP Subnet Calculator tool is free, needs no account and runs in your browser.
What you need
- IP address (CIDR like 192.168.1.10/24 also works), for example 192.168.1.10
- Prefix length or subnet mask, for example 24
Step by step
- Open the IP Subnet Calculator tool.
- Fill in IP address (CIDR like 192.168.1.10/24 also works).
- Fill in Prefix length or subnet mask.
- Read the result, which updates as soon as the inputs change.
Worked example
With these inputs:
- IP address (CIDR like 192.168.1.10/24 also works): 192.168.1.10
- Prefix length or subnet mask: 24
the tool returns:
Network address: 192.168.1.0/24
Broadcast address: 192.168.1.255
Usable host range: 192.168.1.1 to 192.168.1.254
Usable hosts: 254
Total addresses: 256
Subnet mask: 255.255.255.0
Wildcard mask: 0.0.0.255
Binary mask: 11111111.11111111.11111111.00000000
How it works
The calculation is: Block size = 2^(32 − prefix). Network = address rounded down to a multiple of the block size; broadcast = network + block size − 1; usable hosts = block size − 2. Type the IP address, then the prefix length (24) or the mask (255.255.255.0), and press Calculate. A /prefix written after the address takes priority.
Things to keep in mind
IPv4 only. /31 links (RFC 3021) and /32 single hosts have no separate network and broadcast address, so every address is counted as usable.
Related tools
If this is not quite what you need, try Binary to Decimal Converter, Decimal to Binary Converter or Hex Converter.