Technology

Subnet Calculator: Understanding IP Subnetting Made Simple

What is Subnetting?


Subnetting is the process of dividing a network into smaller sub-networks (subnets). It helps manage IP addresses efficiently and improves network security and performance.


IP Address Basics


An IPv4 address is 32 bits, written as four octets (e.g., 192.168.1.0). Each octet is 8 bits (0-255).


An IP address has two parts:

  • Network portion: Identifies the network
  • Host portion: Identifies the device on that network

  • CIDR Notation


    CIDR (Classless Inter-Domain Routing) uses a slash followed by the number of network bits:

  • /24 = 24 network bits, 8 host bits = 256 addresses (254 usable)
  • /25 = 25 network bits, 7 host bits = 128 addresses (126 usable)
  • /26 = 26 network bits, 6 host bits = 64 addresses (62 usable)

  • Common Subnet Masks


  • /8 = 255.0.0.0 (Class A, 16 million hosts)
  • /16 = 255.255.0.0 (Class B, 65,534 hosts)
  • /24 = 255.255.255.0 (Class C, 254 hosts)
  • /28 = 255.255.255.240 (14 hosts)
  • /30 = 255.255.255.252 (2 hosts, point-to-point)
  • /32 = 255.255.255.255 (single host)

  • Why Subnet?


    1. Efficient IP address usage

    2. Reduced broadcast traffic

    3. Improved security (isolate segments)

    4. Better network organization

    5. Easier troubleshooting


    Reserved Addresses in Each Subnet


    Every subnet has two reserved addresses:

  • Network address (first IP): Identifies the subnet
  • Broadcast address (last IP): Sends to all hosts

  • Private IP Ranges


  • 10.0.0.0/8 (10.0.0.0 - 10.255.255.255)
  • 172.16.0.0/12 (172.16.0.0 - 172.31.255.255)
  • 192.168.0.0/16 (192.168.0.0 - 192.168.255.255)

  • Calculate Subnets


    Use our free subnet calculator to quickly determine network addresses, broadcast addresses, and usable host ranges.

    Try Our Calculator

    Put this knowledge to use with our free online calculator.

    Open Calculator