Subnet calculator
Enter an address with a prefix, such as 192.168.1.10/24 or 2001:db8::/48, to see its range, mask and size.
Using the subnet calculator
A subnet is a block of addresses written as an address and a prefix length, such as 192.168.1.0/24. The prefix says how many leading bits are fixed; the rest number the hosts inside the block.
The calculator works this out in your browser for IPv4 and IPv6. Nothing is sent anywhere.
What the results mean
- Network is the first address of the block, and Broadcast the last one in IPv4.
- Usable hosts excludes the network and broadcast addresses, except in a /31, where both addresses are usable on a point-to-point link (RFC 3021), and a /32, which is a single address.
- Subnet mask is the prefix written as an address, such as 255.255.255.0 for /24. The wildcard mask is its inverse, used in some firewall rules.
- IPv6 has no broadcast address. Networks are usually /64, so the calculator also shows how many /64s fit in a larger prefix.
- Each bit you add to the prefix halves the number of addresses in the block: a /25 is half of a /24.
What prefix should a home network use?
Most home routers use a /24 for IPv4, such as 192.168.1.0/24, which leaves 254 usable addresses. For IPv6, each network segment is normally a /64.
Can I enter an address without a prefix?
Yes. It is read as a single address: /32 for IPv4 or /128 for IPv6.
Why are IPv6 numbers so large?
IPv6 addresses have 128 bits, so even one /64 holds about 18 quintillion addresses. The calculator shows the exact figure.
What is a /31 used for?
Point-to-point links between two routers. Such a link needs no broadcast address, so RFC 3021 lets both addresses be used.
Is anything sent to a server?
No. The calculation runs entirely in your browser, so it works even for private address ranges you would not want to share.
Related reading
GuidesPocket VPN · DispatchSetting up your home network for privacy in 90 minutesGuides · 8 min readSetting up your home network for privacy in 90 minutes
A Saturday-morning checklist that hardens your router, fixes your DNS, segments your IoT junk, and (optionally) puts a VPN on the gateway. No paranoia, no rack of servers — just the settings most people skipped.
GuidesPocket VPN · DispatchSmart home, less surveillance: a practical IoT segregation guideGuides · 9 min readSmart home, less surveillance: a practical IoT segregation guide
Smart homes saw 29 attempted attacks per day in 2026, and 38% of IoT devices were compromised at least once. Here is how to put your cheap doorbell on a leash without giving up Spotify on the fridge.