Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
  1. Home
  2. Web Tools
  3. Subnet Calculator
Add to favorites

Loading tool...

You might also like

What's My IP

Find your public IP address, location, timezone, and ISP information instantly. Free, fast, and private IP lookup tool

Pomodoro Timer

Focus timer using Pomodoro technique with work/break sessions, circular progress, presets (Classic 25/5, Deep Work, 52/17), stats tracking, and auto-start options

CSR Generator

Generate Certificate Signing Requests (CSR) for SSL/TLS certificates with RSA key pairs. Submit to CAs for certificate issuance

About Subnet Calculator

Calculate IPv4 and IPv6 subnet details instantly with our comprehensive Subnet Calculator that handles CIDR notation, network addresses, broadcast addresses, and host ranges. Network administrators and IT professionals need to quickly determine subnet masks, calculate available host addresses, and verify IP address ranges for proper network configuration. This tool eliminates complex manual calculations by instantly providing network address, broadcast address, usable host range, subnet mask, wildcard mask, and binary representations for both IPv4 and IPv6 addresses. Whether you're planning network subnets for infrastructure expansion, configuring routers and firewall rules, designing VLANs, or troubleshooting connectivity issues, this calculator provides precise calculations in seconds. The visual CIDR slider and multiple input methods make it intuitive to experiment with different subnet configurations and understand how CIDR notation affects network sizing.

How to Use

  1. 1Select IPv4 or IPv6 mode
  2. 2Enter the IP address
  3. 3Adjust the CIDR prefix with slider or presets
  4. 4View calculated network details
  5. 5Copy addresses as needed

Key Features

  • IPv4 and IPv6 support
  • CIDR notation input
  • Network and broadcast addresses
  • First and last usable host
  • Subnet mask and wildcard mask
  • IP class identification (IPv4)
  • Private/public detection
  • Binary representation
  • IPv6 expansion and compression

Common Use Cases

  • Planning network subnets for growth

    Calculate IP ranges for growing networks, determining how many subnets and hosts are available when subdividing address space.

  • Configuring routers and firewalls

    Determine subnet masks and address ranges needed for proper router configuration, firewall rules, and network segmentation.

  • CIDR to subnet mask conversion

    Quickly convert between CIDR notation and traditional subnet mask format for compatibility with legacy systems and documentation.

  • Calculating host capacity

    Determine how many usable hosts a subnet supports, helping right-size subnets and avoid IP exhaustion.

  • Network troubleshooting

    Verify that IP addresses are in the correct subnet range when diagnosing connectivity issues and routing problems.

  • IPv6 address management

    Work with IPv6 CIDR notation to manage next-generation network addressing and understand expanded address space.

Understanding the Concepts

IP addressing is the foundational addressing system of the internet, and subnetting is the practice of dividing a larger network into smaller, more manageable segments. Every device on a network receives an IP address, which consists of two parts: the network portion that identifies which network the device belongs to, and the host portion that identifies the specific device within that network. The subnet mask determines where this boundary falls, and understanding this division is essential for network design, routing, and security.

Historically, IP addresses were divided into rigid classes. Class A networks (first octet 1-126) used an 8-bit network prefix and could contain over 16 million hosts. Class B networks (128-191) used 16 bits for the network and supported 65,534 hosts. Class C networks (192-223) used 24 bits and allowed only 254 hosts. This classful system was enormously wasteful because organizations received far more addresses than they needed. An organization needing 300 addresses would receive an entire Class B allocation of 65,534 addresses, leaving tens of thousands unused.

Classless Inter-Domain Routing (CIDR), introduced in 1993 through RFC 1518 and RFC 1519, replaced this rigid system with variable-length subnet masks. CIDR notation appends a prefix length to the IP address (e.g., 192.168.1.0/24), indicating exactly how many bits form the network portion. This allows networks to be sized precisely to requirements. A /25 gives 126 usable hosts, a /26 gives 62, and a /27 gives 30. The mathematics of subnetting involves binary operations: the subnet mask is a contiguous sequence of 1-bits followed by 0-bits, and the network address is derived by performing a bitwise AND between the IP address and the subnet mask. The broadcast address is found by setting all host bits to 1.

IPv6 dramatically expands the address space from 32 bits to 128 bits, providing approximately 340 undecillion unique addresses. While IPv6 eliminates the address exhaustion problem that drove much of IPv4 subnetting complexity, subnetting remains important for network organization and security segmentation. IPv6 subnets typically use a /64 prefix for local networks, with the remaining 64 bits available for host addressing through Stateless Address Autoconfiguration (SLAAC). The wildcard mask, used primarily in access control lists on Cisco routers, is the bitwise inverse of the subnet mask and defines which bits in an address should be matched (0) versus ignored (1) when evaluating network rules.

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) uses a suffix like /24 to indicate how many bits are the network portion. /24 = 255.255.255.0 netmask.

Why are there fewer usable hosts than total IPs?

For IPv4 subnets larger than /31, the first IP is the network address and the last is broadcast, leaving 2 fewer usable host addresses.

Privacy First

All processing happens directly in your browser. Your files never leave your device and are never uploaded to any server.