IP Subnet Calculator

This calculator returns a variety of information regarding Internet Protocol version 4 (IPv4) and IPv6 subnets including possible network addresses, usable host ranges, subnet mask, and IP class, among others.

Subnet Information

IP Address -
Network Address -
Usable Host IP Range -
Broadcast Address -
Total Number of Hosts -
Number of Usable Hosts -
Subnet Mask -
Wildcard Mask -
Binary Subnet Mask -
IP Class -
CIDR Notation -
IP Type -
Short -
Binary ID -
Integer ID -
Hex ID -
In-addr.arpa -

Subnetting Formulas

Calculation Formula
Number of subnets 2n (where n is the number of bits borrowed)
Number of hosts per subnet 2n - 2 (where n is the number of bits left)
Subnet mask 32-bit binary number with network bits as 1s and host bits as 0s
Wildcard mask Inverse of subnet mask (0s become 1s, 1s become 0s)
Network address IP address AND subnet mask
Broadcast address Network address OR wildcard mask

About IP Subnet Calculator

Our IP Subnet Calculator is a powerful tool designed to help network administrators, IT professionals, and students calculate various parameters of IP subnets. It provides detailed information about network addresses, usable host ranges, subnet masks, and more for both IPv4 and IPv6 addresses.

How to Use the Calculator

  1. Enter an IP address (e.g., 192.168.1.1) in the IP Address field.
  2. Provide either a subnet mask (e.g., 255.255.255.0) or CIDR notation (e.g., /24).
  3. Alternatively, you can select an IP class or CIDR notation from the dropdown menus.
  4. Click the "Calculate" button to compute all subnet parameters.
  5. The results will be displayed in the results table and visualized in the network diagram.
  6. Use the "Clear" button to reset all fields and start a new calculation.

Understanding IP Subnetting

Subnetting is the practice of dividing a network into smaller network sections called subnets. This is done for various reasons including:

The key components of subnetting include:

IP Address Classes

IPv4 addresses are divided into five classes (A, B, C, D, and E) based on the first few bits of the address:

Class Range Default Subnet Mask Purpose
Class A 1.0.0.1 to 126.255.255.254 255.0.0.0 (/8) Large networks
Class B 128.1.0.1 to 191.255.255.254 255.255.0.0 (/16) Medium networks
Class C 192.0.1.1 to 223.255.254.254 255.255.255.0 (/24) Small networks
Class D 224.0.0.0 to 239.255.255.255 N/A Multicasting
Class E 240.0.0.0 to 254.255.255.254 N/A Experimental

Private vs. Public IP Addresses

Certain IP address ranges are reserved for private networks and are not routable on the public internet:

Class Private IP Range Subnet Mask
Class A 10.0.0.0 to 10.255.255.255 255.0.0.0
Class B 172.16.0.0 to 172.31.255.255 255.240.0.0
Class C 192.168.0.0 to 192.168.255.255 255.255.0.0

Practical Applications

Subnetting is used in various networking scenarios: