Subnet Calculator

Introduction

This document provides background information on the purpose and usage of this subnet calculator. I created this subnet calculator while taking a Network Fundamentals course at Purdue University. The course included several “subnetting assignments” that required performing binary calculations using a host IP address, a major network mask, and a subnet mask.

Using these inputs, I then had to perform bitwise operations to determine several pieces of information, as outlined in Table 1.

Table 1 - Example Subnet Sheet

VariableExample Value
Host IP Address (Provided)219.2.3.201
Major Network Mask (Provided)255.255.0.0
Major Network Address219.2.0.0
Major Network Broadcast Address219.2.255.255
CIDR Notation Major Network219.2.0.0/16
Number of Host Bits16
Number of Hosts65,534
Subnet Mask (Provided)255.255.255.192
Number of Subnet Bits10
Number of Usable Subnets1,023
Number of Host Bits per Subnet6
Number of Usable Hosts per Subnet62
Subnet Address for this Host219.2.3.192
First Host IP Address for this Subnet219.2.3.193
Last Host IP Address for this Subnet219.2.3.254
Broadcast Address for this Subnet219.2.3.255
Network Address of the 5th Usable Subnet219.2.1.0
Broadcast Address of the 5th Usable Subnet219.2.1.63