IP Subnet Calculator

IPv4 subnetting made easy

Input Mode

IP Address

Enter IPv4 address (e.g., 192.168.1.0)
Enter prefix length (0-32)
Network Information
192.168.1.0/24
Class C Private Network
Network Address
192.168.1.0
Broadcast
192.168.1.255
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Total Hosts
256
Usable Hosts
254
First Host
192.168.1.1
Last Host
192.168.1.254

Binary Representation

Address Details

Network vs Host Bits

Host Capacity

CIDR to Subnet Mask Reference Table

Quick reference for all CIDR prefix lengths and their corresponding subnet masks

CIDR Subnet Mask Wildcard Total Hosts Usable Hosts Class

Private IP Address Ranges

These IP ranges are reserved for private networks and cannot be routed on the public internet

Class A
10.0.0.0 - 10.255.255.255
10.0.0.0/8
Class B
172.16.0.0 - 172.31.255.255
172.16.0.0/12
Class C
192.168.0.0 - 192.168.255.255
192.168.0.0/16

Understanding IP Subnetting

What is Subnetting?

Subnetting is the process of dividing a large network into smaller, more manageable sub-networks (subnets). This helps improve network performance, security, and organization.

Subnet Mask

A subnet mask is a 32-bit number that divides an IP address into network and host portions. The "1" bits represent the network portion, and the "0" bits represent the host portion.

  • 255.255.255.0 = /24 (8 host bits = 256 hosts)
  • 255.255.0.0 = /16 (16 host bits = 65,536 hosts)
  • 255.0.0.0 = /8 (24 host bits = 16,777,216 hosts)

CIDR Notation

CIDR (Classless Inter-Domain Routing) notation uses a slash (/) followed by the number of network bits. For example:

  • 192.168.1.0/24 means 24 bits for network, 8 bits for hosts
  • 10.0.0.0/8 means 8 bits for network, 24 bits for hosts
  • 172.16.0.0/12 means 12 bits for network, 20 bits for hosts

Calculating Subnets

Key formulas for subnet calculations:

  • Network Address: IP address AND subnet mask
  • Broadcast Address: Network address OR (NOT subnet mask)
  • Total Hosts: 2^(number of host bits)
  • Usable Hosts: Total hosts - 2 (network + broadcast)
  • Wildcard Mask: NOT subnet mask (inverse)

Common Subnet Sizes

  • /30 (255.255.255.252): 2 usable hosts - Point-to-point links
  • /29 (255.255.255.248): 6 usable hosts - Small networks
  • /28 (255.255.255.240): 14 usable hosts - Small offices
  • /27 (255.255.255.224): 30 usable hosts - Medium networks
  • /26 (255.255.255.192): 62 usable hosts - Larger networks
  • /25 (255.255.255.128): 126 usable hosts - Large networks
  • /24 (255.255.255.0): 254 usable hosts - Standard LAN

Subnetting Best Practices

Plan Ahead

Plan your subnet structure before implementation. Consider future growth and expansion needs.

Use Hierarchical Design

Organize subnets hierarchically for easier management and routing efficiency.

Security Segmentation

Use subnets to segment networks for security (e.g., separate guest, employee, and server networks).

Right-Size Subnets

Choose subnet sizes that match your needs. Avoid wasting IP addresses with oversized subnets.

Understanding IP Subnetting

IP subnetting is a fundamental networking concept that allows network administrators to divide a large network into smaller, more manageable sub-networks. This improves network performance, enhances security, and simplifies network management.

Key Concepts

Understanding these key concepts is essential for effective subnetting:

IP Address Classes

Traditional IP address classification:

Common Use Cases

IP subnet calculators are essential for:

Using This Calculator

Follow these steps:

More Computer & Network Calculators

Explore more computer and network calculators in our Computer Calculators category, including binary converter, IP subnet calculator, and bandwidth calculator!