How to use IP subnet calculator
- 01Type the addressWith /prefix or a mask.
- 02Add a split (optional)A longer prefix.
- 03Read the subnetRange, mask, broadcast.

Mask off the host bits.
The prefix length says how many leading bits name the network. Masking the address with it gives the network address; setting the remaining host bits to 1 gives the broadcast. Usable hosts are 2^(32 − prefix) − 2, except /31 and /32. For IPv6 the prefix gives the first and last address and the number of /64 networks.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
What is the range of 10.20.30.40/19?
A /19 mask is 255.255.224.0, so the network is 10.20.0.0, the broadcast 10.20.31.255 and the usable hosts 10.20.0.1 to 10.20.31.254: 8,190 of them.
How many hosts in a /24?
2^8 = 256 addresses, minus the network and broadcast addresses, so 254 usable hosts. A /26 has 62 and a /30 has 2.
How do I split a /24 into four subnets?
Use a /26 (two more bits). 192.168.1.0/24 becomes .0, .64, .128 and .192, each with 62 hosts. Type 26 in the split box to list them.
Is what I type sent anywhere?
No. The calculation runs in your browser and nothing you type leaves your device.