About the Subnet Calculator
FreeToolr's Subnet Calculator converts an IPv4 address and prefix length into useful network details. Network administrators, developers, students, and support teams can check subnet boundaries without manual bit calculations. Enter an IP address, such as 192.168.10.0, and a CIDR prefix, such as /24. The tool shows the network, subnet mask, usable host range, broadcast, usable hosts, and wildcard mask. Results update instantly as you type, so no calculate button is needed. The calculation runs in your browser, and nothing is uploaded. You can copy the result or share a link that reopens with your numbers. It also handles the IPv4 /31 point-to-point case and the /32 single-host case. This focused layout keeps the main network values together instead of adding unrelated planning tools or legacy class labels.
How to use it
- 1Enter an IPv4 address in the IP address field.
- 2Enter a prefix length, such as /24, in the CIDR field.
- 3Review the network, subnet mask, host range, broadcast, usable hosts, and wildcard mask.
- 4Copy the result or share a link that reopens with your numbers.
Worked example
For 192.168.10.0/24, the network is 192.168.10.0, the subnet mask is 255.255.255.0, the usable host range is 192.168.10.1 to 192.168.10.254, the broadcast is 192.168.10.255, usable hosts are 254, and the wildcard mask is 0.0.0.255.
The formula
Network = IP AND maskBroadcast = network OR the inverted maskUsable hosts = 2^(32 - prefix) - 2 (a /31 has 2 for point-to-point links and a /32 is a single host)Source: RFC 4632: Classless Inter-domain RoutingRFC 3021: Using 31-Bit Prefixes on IPv4 Point-to-Point LinksRFC 950: Internet Standard Subnetting Procedure. Last checked 4 November 2026.
What it is good for
- See all six IPv4 subnet results in one view.
- Get updates instantly while entering values.
- Copy results or reopen them through a share link.
- This tool accepts IPv4 addresses and CIDR prefixes, not IPv6.
- Usable host counts follow the stated IPv4 method and do not account for provider-specific address reservations.
Questions people ask
What does a /24 mean?
A /24 uses 24 network bits and 8 host bits. It contains 256 IPv4 addresses, with 254 usable hosts under the normal formula.
How does the tool find the network address?
It creates a subnet mask from the prefix length. It then applies a bitwise AND operation to the IP address and mask.
What is a wildcard mask?
A wildcard mask is the inverse of the subnet mask. For 255.255.255.0, the wildcard mask is 0.0.0.255.
How many usable hosts does a /26 provide?
A /26 contains 64 IPv4 addresses. The normal usable host count is 62 after excluding the network and broadcast addresses.
How does the calculator handle a /31?
A /31 provides two addresses for a point-to-point link. Both addresses count as usable endpoints under RFC 3021.
What does a /32 represent?
A /32 represents one IPv4 address. It is commonly used for a host route, loopback, or specific endpoint.
Does the calculation upload my IP address?
No. The calculation runs in your browser, and nothing is uploaded. Results update as you type.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.