About Subnet Calculator
Type an IPv4 address with its prefix length, such as 192.168.10.37/24, or follow it with a netmask like 255.255.255.0. The calculator shows the subnet it belongs to: network and broadcast addresses, netmask and wildcard mask, the first and last usable host, how many hosts fit, and the neighbouring subnets of the same size.
It also says whether the address is private, shared, loopback, documentation or another special-purpose range, and explains /31 point-to-point links and /32 single hosts, which follow different rules.
How it works
- The prefix length decides how many leading bits name the network; the remaining bits number the hosts inside it.
- The network address has every host bit set to zero and the broadcast address has every host bit set to one. The hosts are the addresses between them.
- A /31 has no network or broadcast address, so both of its addresses are usable (RFC 3021). A /32 is one address.
- Special ranges are recognised from the IANA special-purpose address registry.
Questions
Why are there two fewer usable hosts than addresses?
In an ordinary subnet the first address names the network and the last is the broadcast address, so neither can be given to a device. Only /31 and /32 subnets are exceptions.
What is a wildcard mask for?
It is the netmask with every bit flipped. Cisco access lists and OSPF network statements use it to say which bits of an address must match.
Why is an address with a leading zero refused?
Some systems read 010 as octal (8) and others as decimal (10). Rather than guess, the calculator asks you to write the number without the zero.
Does it handle IPv6?
No, this calculator is for IPv4. Use the IPv6 calculator for IPv6 prefixes.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.