You are on page 1of 1

Network Calculators

Page 1 of 1

Subnet Calculator Explanation


This calculator will calculate the network address, the host address and the broadcast address for a given
TCP/IP address and subnet mask.
These are actually fairly straightforward calculations. The easiest way to do it is to depict both the ip
address and the subnet mask in binary. Take 10.1.113.75 with subnet mask 255.255.224.0 listed in
binary:
ip address: 00001010.00000001.01110001.01001011
subnet mask: 11111111.11111111.11100000.00000000

If you do a binary AND between these two numbers, you get the network address:
ip address: 00001010.00000001.01110001.01001011
subnet mask: 11111111.11111111.11100000.00000000
-----------------------------------AND
network address: 00001010.00000001.01100000.00000000

which translated back to dotted decimal notation is 10.1.96.0


To get the host portion, invert the subnet mask and again perform a binary AND with the ip address:
ip address: 00001010.00000001.01110001.01001011
inverted subnet mask: 00000000.00000000.00011111.11111111
-----------------------------------AND
host portion: 00000000.00000000.00010001.01001011

which translated back to dotted decimal notation is 0.0.17.75


To obtain the broadcast address, again it is simplest to look at it in binary. Take the inverted subnet mask
and perform a binary XOR with the network address:
network address: 00001010.00000001.01100000.00000000
inverted subnet mask: 00000000.00000000.00011111.11111111
-----------------------------------XOR
broadcast address: 00001010.00000001.01111111.11111111

which translated back to dotted decimal notation is 10.1.127.255

http://www.subnetmask.info/network/explain1.htm

2/20/2015

You might also like