Subnet Calculator

Calculate IPv4 subnet details including network address, broadcast address, subnet mask, wildcard mask, usable host range, and total hosts from CIDR notation.

Quick CIDR Prefixes

Subnet Details

How to Calculate a Subnet

  1. 1

    Enter an IP address with CIDR prefix

    Type or paste an IPv4 address followed by a slash and prefix length into the input field, such as 192.168.1.0/24. You can also switch to IP + Subnet Mask mode if you prefer entering the mask separately as a dotted-decimal value like 255.255.255.0.
  2. 2

    Use quick CIDR prefixes for common sizes

    Click any of the quick CIDR prefix buttons (/8, /16, /24, /28, /30, etc.) to instantly set a standard subnet size. This is helpful when you know the approximate number of hosts you need but are not sure of the exact prefix length.
  3. 3

    Review the calculated subnet details

    After clicking Calculate, the tool displays the network address, broadcast address, subnet mask, wildcard mask, first and last usable hosts, total addresses, usable host count, CIDR notation, IP class, and whether the address is public or private. Each field has a click-to-copy button for easy use in configurations.
  4. 4

    Copy values into your network configuration

    Click any result field to copy it to your clipboard. Use the network address and subnet mask in router configurations, the wildcard mask in ACLs and OSPF setups, and the host range to plan DHCP scopes or firewall rules.

Common Use Cases

1

Enterprise Network Design

Plan IP address allocation across departments, floors, and branch offices. Calculate the right subnet size for each segment to avoid wasting addresses while leaving room for growth. Use VLSM (Variable Length Subnet Masking) to assign /24 subnets to large teams and /28 or /30 subnets to small server clusters and point-to-point links.
2

Firewall and ACL Configuration

Generate accurate network addresses and wildcard masks for access control lists on Cisco, Juniper, and other network equipment. Knowing the exact subnet boundaries prevents overly permissive rules that could expose services to unintended traffic or overly restrictive rules that block legitimate users.
3

Cloud Infrastructure and VPC Planning

Design Virtual Private Cloud (VPC) and subnet layouts in AWS, Azure, or Google Cloud. Cloud platforms require CIDR blocks for VPCs, subnets, and security groups. Calculating the right prefix lengths ensures you have enough addresses for auto-scaling groups, load balancers, and reserved IPs without overlapping with other VPCs or on-premises ranges.
4

DHCP Scope and IP Address Management

Determine the usable host range for DHCP pools. By knowing exactly which addresses are available between the first and last usable hosts, you can configure DHCP scopes that avoid conflicts with statically assigned servers, printers, and network devices.

Why Use Subnet Calculator?

Subnet calculation is essential for network planning and IP address management. Whether you're designing a corporate network, configuring firewall rules, or setting up VLANs, understanding subnet boundaries helps you allocate IP addresses efficiently and prevent routing issues. This tool instantly computes all subnet details from CIDR notation, saving you from manual binary math. System architects, network engineers, and DevOps professionals use subnet calculators daily to plan network segmentation, estimate capacity, and troubleshoot connectivity problems.

The Subnet Calculator is a free browser-based tool that computes every detail of an IPv4 subnet from a single CIDR notation input. Enter an address like 10.0.0.0/16 and instantly see the network address, broadcast address, subnet mask (both dotted-decimal and binary), wildcard mask, first and last usable host addresses, total address count, and usable host count. The tool also classifies the address by IP class (A, B, C) and type (public, private, loopback, or link-local). Whether you are a network engineer planning a data center build-out or a developer configuring cloud VPCs, this calculator eliminates the need for manual binary conversion and reduces costly misconfiguration errors.

Subnetting is the foundation of modern network design. Every corporate LAN, cloud VPC, and ISP allocation relies on correctly dividing IP address space into manageable segments. Mistakes in subnet math lead to overlapping address ranges, unreachable hosts, and security gaps where traffic leaks between segments. This tool handles VLSM (Variable Length Subnet Masking) calculations so you can assign different prefix lengths to different segments -- a /24 for an office floor, a /28 for a server cluster, and a /30 for a router-to-router link -- all without pulling out a binary conversion table. Pair it with the IP Address Lookup tool to verify geolocation and ISP data for any address in your subnets, or use the DNS Lookup tool to confirm that forward and reverse DNS records match your subnet assignments.

For broader infrastructure work, the Number Base Converter helps translate between decimal, binary, and hexadecimal when you need to inspect raw subnet mask bits. The Port Reference Guide is useful when mapping firewall rules to the subnets you have calculated, and the SSL Certificate Checker verifies that your servers within each subnet are presenting valid certificates. All of these tools run entirely in your browser with no signup, no data uploads, and no usage limits.

How It Compares

Dedicated subnet calculators like SolarWinds IP Calculator and VLSM Calculator Pro are full desktop applications that require installation and often come bundled with paid network management suites. Online alternatives such as subnet-calculator.com and calculator.net/ip-subnet-calculator provide basic CIDR calculations but are cluttered with ads and require multiple page loads for different input modes. Developer-oriented tools like ipcalc (command-line) are powerful but assume familiarity with terminal environments and are not accessible from a phone or tablet.

FindUtils Subnet Calculator runs entirely in the browser with no installation, no account creation, and no advertisements. It supports both CIDR notation and separate IP + mask input modes, displays the full binary subnet mask for educational purposes, and includes quick-select buttons for common prefix lengths. Every result field is individually copyable, which saves time when transferring values into router configs, cloud console forms, or documentation. For network professionals who need quick answers without leaving their browser, this tool covers the most common subnetting tasks at zero cost.

Subnetting Tips and Best Practices

1
Always plan for growth when choosing subnet sizes. A /24 (254 hosts) is a safer choice than a /25 (126 hosts) if you expect the network segment to expand over time.
2
Use /30 or /31 subnets for point-to-point links between routers. A /30 gives 2 usable addresses (one per router interface), while /31 per RFC 3021 uses both addresses without wasting the network and broadcast addresses.
3
Remember that the first address (network address) and last address (broadcast address) in a subnet cannot be assigned to hosts, except in /31 and /32 edge cases.
4
Keep a subnet reference chart handy: /24 = 254 hosts, /25 = 126, /26 = 62, /27 = 30, /28 = 14, /29 = 6, /30 = 2. This helps you quickly choose the right prefix for any scenario.
5
When planning VLANs, align subnet boundaries with VLAN assignments so that each VLAN maps to exactly one subnet. This simplifies routing, firewall rules, and troubleshooting.

Frequently Asked Questions

1

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation represents an IP address and its subnet mask in the format IP/prefix. For example, 192.168.1.0/24 means the first 24 bits are the network portion, giving a subnet mask of 255.255.255.0 with 256 total addresses.
2

What is the difference between network and broadcast address?

The network address is the first address in a subnet (all host bits set to 0) and identifies the subnet itself. The broadcast address is the last address (all host bits set to 1) and is used to send packets to all hosts on the subnet. Neither can be assigned to a device.
3

Why are there fewer usable hosts than total hosts?

In most subnets, the first address (network address) and last address (broadcast address) are reserved and cannot be assigned to hosts. So a /24 subnet has 256 total addresses but only 254 usable host addresses. Exceptions are /31 (point-to-point links) and /32 (single host).
4

What is a wildcard mask?

A wildcard mask is the inverse of a subnet mask. Where the subnet mask has 1s, the wildcard has 0s, and vice versa. It's commonly used in access control lists (ACLs) on Cisco routers and OSPF configurations to define which bits of an address should be matched.
5

How do I choose the right subnet size?

Choose based on the number of hosts you need. A /24 gives 254 usable hosts, /25 gives 126, /26 gives 62, and so on. Always plan for growth -- it's easier to allocate a slightly larger subnet upfront than to renumber later. For point-to-point links between routers, /30 or /31 is standard.

Rate This Tool

0/1000

Get Weekly Tools

Suggest a Tool