Subnet Calculator

/24
Move the slider to update CIDR and Subnet Mask

Subnet Details

Copied!
Network Address 192.168.0.0/24
First Usable IP 192.168.0.1
Last Usable IP 192.168.0.254
Broadcast Address 192.168.0.255
Total Hosts 254
Subnet Mask 255.255.255.0
Wildcard Mask 0.0.0.255
Binary Subnet Mask 11111111.11111111.11111111.00000000
IP Type Private (Class C)

How to use this IPv4 Subnet Calculator

This IPv4 Subnet Calculator is an intuitive tool that allows network administrators, IT professionals, and students to easily compute subnet information for IPv4 networks. It takes an IP address and either a subnet mask or CIDR notation as input and generates detailed subnet details instantly. Below is a comprehensive guide to using this calculator effectively, including explanations of each feature and best practices. For a quick reference on subnetting, see our IPv4 Cheat Sheet.

Understanding the Basics: Before diving in, recall that subnetting divides a larger network into smaller subnetworks for better organization, security, and efficiency. The calculator handles IPv4 addresses (e.g., 192.168.1.0) and supports both dotted decimal subnet masks (e.g., 255.255.255.0) and CIDR notation (e.g., /24). Learn more about subnetting with Cisco’s Subnetting Guide.

Step-by-Step Usage:

  • Enter the IP Address: Start by typing a valid IPv4 address in the "IP Address" field. This can be any address within your network, such as 192.168.0.1 or 10.0.0.5. The calculator uses this as the reference point for subnet calculations. If the IP is invalid (e.g., octets outside 0-255), the results won't update until corrected. Tip: Use private IP ranges like 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16 for testing.
  • Specify the Subnet Mask: Input the subnet mask in dotted decimal format (e.g., 255.255.255.0) in the "Subnet Mask" field. This determines the network portion versus the host portion of the IP. Changing this will automatically update the CIDR value and slider position. Check our IPv4 Cheat Sheet for a list of subnet masks.
  • Use the CIDR Slider: Alternatively, adjust the CIDR slider to set the prefix length (0 to 32). The badge next to it shows the current /value. Moving the slider updates the subnet mask field in real-time. This is useful for experimenting with different subnet sizes—lower CIDR means larger subnets with more hosts.
  • View and Interpret Results: As you input data, the "Subnet Details" table populates automatically. Key fields include:
    • Network Address: The base address of the subnet (e.g., 192.168.0.0/24).
    • First/Last Usable IP: The range of assignable host IPs (excluding network and broadcast).
    • Broadcast Address: The address for broadcasting to all hosts in the subnet.
    • Total Hosts: Number of usable hosts (2^(32-CIDR) - 2 for most cases).
    • Subnet Mask/Wildcard Mask: In decimal and wildcard (inverse mask) formats.
    • Binary Subnet Mask: Binary representation for educational purposes.
    • IP Type: Indicates if the IP is Private/Public and its class (A/B/C/etc.).
  • Copy the Results: Click the "Copy Result" button (with the copy icon) in the "Subnet Details" header. This copies a text summary of the table to your clipboard (e.g., "Network Address: 192.168.0.0/24\nFirst Usable IP: 192.168.0.1\n..."). A "Copied!" popup appears briefly to confirm. Paste this into documents, emails, or notes for easy sharing.

Advanced Tips:

  • Synchronization: The subnet mask, CIDR slider, and badge are linked—change one, and the others update instantly for consistency.
  • Error Handling: Invalid inputs (e.g., non-IP strings or masks with non-255/254/etc. values) prevent updates. Always verify your entries.
  • Special Cases: For /31 or /32 CIDR, usable hosts adjust (2 for /31, 1 for /32). The tool handles loopback (127.0.0.0), link-local (169.254.0.0), and multicast/experimental ranges correctly.
  • Mobile Optimization: On phones/tablets, inputs stack vertically for easier typing, and the results table scrolls horizontally. Use landscape mode for better visibility.
  • Use Cases: Ideal for planning networks, troubleshooting connectivity, or learning subnetting. For more advanced subnetting, try our VLSM Calculator for variable-length subnets.

If you encounter issues or need features, consider providing feedback. This tool simplifies complex calculations, saving time and reducing errors in network design.