IP subnet calculator (IPv4 and IPv6)
Type an address with its prefix (192.168.1.10/26), or with its mask (192.168.1.10 255.255.255.192), or an IPv6 address (2001:db8::1/48).
Result
192.168.1.0/26Network
- Subnet mask
- 255.255.255.192
- Usable address range
- 192.168.1.1 – 192.168.1.62
- Broadcast address
- 192.168.1.63
- Usable addresses
- 62
- Total addresses
- 64
- Wildcard mask
- 0.0.0.63
Inputs
- Address and prefix
- 192.168.1.10/26
How it is calculated
The /n prefix keeps the first n bits of the address: that is the network part.
Result
Network
- Subnet mask
- 255.255.255.192
- Usable address range
- 192.168.1.1 – 192.168.1.62
- Broadcast address
- 192.168.1.63
How it is calculated
- The /n prefix keeps the first n bits of the address: that is the network part.
- Network = address AND mask; broadcast = network with all host bits set to 1.
- IPv4: the network and broadcast addresses are removed, except for /31 and /32.
- IPv6: no broadcast; the range runs from the first to the last address of the prefix. Short form follows RFC 5952.
Example
192.168.1.10/26: network 192.168.1.0/26, mask 255.255.255.192, range 192.168.1.1 – 192.168.1.62, broadcast 192.168.1.63, 62 usable addresses.
Good to know
- Pure arithmetic on the text you type: no network request, no scan.
- It does not tell whether an address is public, private or already in use.
When to use it
- Plan the address range of a home or office network.
- Check the range of a cloud network before creating it.
- To estimate how long a transfer takes on that network, use the Download time calculator.
Frequently asked questions
Which ranges are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are kept for private networks (RFC 1918). They are not routed on the internet.
Why do clouds give fewer usable addresses?
Some providers reserve a few extra addresses in each subnet for their own services. Check your provider’s documentation.
What prefix does a home IPv6 line get?
Often a /56 or a /48, sometimes a /64. Each /64 is meant for one local network.