IP Subnet Calculator
Take advantage of this free IP Subnet Calculator to find a range of information associated with the Internet Protocol version 4 (IPv4) and IPv6 subnets. Enter the IP Address & subnet mask in the input boxes and click the calculate button to find out the output in less amount of time.
What is a Subnet & Subnet Mask?
Subnet: A logical subdivision of an IP network is a subnetwork (subnet). Subnetting is the process of separating a network into two or more networks.
Subnet Mask: The range of IP addresses that can be utilized within a network or subnet is defined by a subnet mask. Furthermore, it divides an IP address into two parts: network bits and host bits.
A subnet mask is a 32-bit number that contains all 0s for host bits and all 1s for network bits. In this way, the IP address divides into network and host addresses by the subnet mask. The "255" address is always assigned to a broadcast address, while the "0" address is always assigned to a network address.
IP Subnet Calculator CIDR Notation
There were three main subnet masks in the early days of the Internet, all of which used multiples of 8 bits of ‘1’s in the mask. As seen in the table, they were dubbed Class A, Class B, and Class C networks.
Class |
Subnet mask |
Number of usable hosts |
Class A |
255.0.0.0 |
16,777,214 |
Class B |
255.255.0.0 |
65,534 |
Class C |
255.255.255.255 |
254 |
The issue with this system is the big jumps in the number of hosts/networks. That is the number of hosts per network is chosen in a haphazard manner.
This problem is solved by Classless Inter-Domain Routing (CIDR), which does away with the class model and allows the network designer to give any amount of bits to the network prefix, allowing for a wider range of host numbers per network.
A forward-slash ( / ) followed by the number of bits is a way to represent the number of bits in the network prefix. Because it uses the first 8 bits of the network mask, a Class A network is represented as ‘/8’. The following table shows the CIDR notation and the number of useable hosts per subnet:
CIDR |
Subnet mask |
Number of usable hosts |
/1 |
128.0.0.0 |
2,147,483,646 |
/2 |
192.0.0.0 |
1,073,741,822 |
/3 |
224.0.0.0 |
536,870,910 |
/4 |
240.0.0.0 |
268,435,454 |
/5 |
248.0.0.0 |
134,217,726 |
/6 |
252.0.0.0 |
67,108,862 |
/7 |
254.0.0.0 |
33,554,430 |
/8 |
255.0.0.0 |
16,777,214 |
/9 |
255.128.0.0 |
8,388,606 |
/10 |
255.192.0.0 |
4,194,302 |
/11 |
255.224.0.0 |
2,097,150 |
/12 |
255.240.0.0 |
1,048,574 |
/13 |
255.248.0.0 |
524,286 |
/14 |
255.252.0.0 |
262,142 |
/15 |
255.254.0.0 |
131,070 |
/16 |
255.255.0.0 |
65,534 |
/17 |
255.255.128.0 |
32,766 |
/18 |
255.255.192.0 |
16,382 |
/19 |
255.255.224.0 |
8,190 |
/20 |
255.255.240.0 |
4,094 |
/21 |
255.255.248.0 |
2,046 |
/22 |
255.255.252.0 |
1,022 |
/23 |
255.255.254.0 |
510 |
/24 |
255.255.255.0 |
254 |
/25 |
255.255.255.128 |
126 |
/26 |
255.255.255.192 |
62 |
/27 |
255.255.255.224 |
30 |
/28 |
255.255.255.240 |
14 |
/29 |
255.255.255.248 |
6 |
/30 |
255.255.255.252 |
2 |
/31 |
255.255.255.254 |
0 |
/32 |
255.255.255.255 |
0 |
How to Calculate IP Subnet Mask Manually?
The manual process of calculating theIP subnet mask problems is explained in the simple steps below:
- First, find out the network class of the IP address.
- Now, calculate the number of bits, which are used to define the subnets.
- The formula for calculating the number of bits is Number of bits = Log2(Number of subnets + 2).
- Apply the values in the formula and determine the Number of Bits.
- Using the calculated bits, compose the subnet mask in binary form.
- Use the binary classification method for composing subnet masks.
- Now, substitute the subnet bits in the binary classification.
- For determining the IP subnet mask convert the binary values to their equivalent decimal values.
- Finally, the determined value is the desired IP Subnet Mask.
You can find the most useful online tools for different mathematical concepts, take the help from onlinecalculator.guide, a reliable and authentic site.
Solved Example on IPv4 & IPv6 Subnet Calculator
Example:
Consider an IP address 192.34.128.93 which belongs to the network with 6 subnets. Calculate the Number of bits, to define the subnets.
Solution:
Given here is 6 subnets,
Now by applying the value in the IP Subnet Formulae, we get:
Number of Bits = Log2(Number of subnets + 2)
= Log2(6+2) = 3 bits
IP Address 192.34.128.93 falls on Class C, whose Binary Classification is 11111111.11111111.11111111.00000000.
Substituting the bits 11111111.11111111.11111111.11100000.
Converting the bits into the equivalent decimal values, 11111111.11111111.11111111.11100000 with the help of the rules,
we get,
11111111 = 255
11111111 = 255
11111111 = 255
11100000 - (128 x 1) + (64 x 1) + (32 x 1) + (16 x 1) + (8 x n) + (4 x 0) + (2 x 0) + (1 x 0) = 224
Hence, the IP Subnet Mask = 255.255.255.224
FAQs on Online IP Subnet Calculator
1. What is a 255.255 255.0 subnet?
It is a class C network, which means that 24 bits are used for the network. It can also be represented as /24 following IP address.
2. How do you calculate hosts per subnet?
To calculate hosts per subnet we can use the formula 2x-2, where x denotes the number of host IDs in bits.
3. How do I find my IP range subnet?
To find the IP range subnet, first, you need to calculate the subnet length. Then, add 2 to the power of the subnet length to find the number of hosts. Using this information the IP range subnet can be determined.