Subnet Calculator

IP Address and Netmask:
IP Address:
Netmask:
Wildcard Mask:
CIDR Notation:
Network Address:
Usable Host Range:
Broadcast Address:
Binary Netmask:
Total number of hosts:
Number of usable hosts:
IP Class:

Example IP Address Inputs

IPv4
172.31.180.150 255.255.252.0Subnet Mask
192.168.5.219/28CIDR Notation
172.16.50.45 0.0.15.255Wildcard Mask
10.40.50.60 #52Calculates a network with 52 hosts
IPv6
2001:0db8:85a3::8a2e:0370:7334/64Prefix Mask
2001:0db8:85a3::/48/64Subnet the /48 network into /64 networks

URL Parameters

It is possible to add the IP address to the URL to go directly to that IP and calculate it. Each of the following URLs will work:

http://www.tunnelsup.com/subnet-calculator?ip=192.168.1.1/24
http://www.tunnelsup.com/subnet-calculator?ip=10.7.7.0 255.255.255.0
http://www.tunnelsup.com/subnet-calculator?ip=2001:0db8:85a3::8a2e:0370:7334/64

This allows for using keyword searches in Firefox.
Duckduckgo.com users can enjoy the !subnet bang command which makes use of this tool. Try !subnet 192.168.1.1/24.

About this Subnet Calculator

This free online subnet calculator allows for the input of a netmask, a Cisco wildcard mask or /CIDR notation.
The tool also has the ability to create a random IP address which can then be calculated. This is useful when studying and learning how to subnet and example practice networks are needed.
This calculator can also be used to do reverse subnetting where the number of hosts is known but the netmask is not.
Calculator is also IPv6 ready.
keywords: subnetting, subnet, calculator, ip, address, cidr, mask, netmask, host, network, converter, calculate, online, ipv4, study, practice, exercises, problems, ipv6, subnet mask.