Hero Background

Next-Gen App & Browser Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

Subnet Calculator - TestMu AI (Formerly LambdaTest)

An easy-to-use tool for calculating subnet information for both IPv4 and IPv6 addresses. Get network details, host ranges, and more in an instant.

What Is a Subnet Calculator?

A subnet calculator is a network tool that takes an IP address and a subnet mask (or CIDR prefix) and computes every piece of subnet information you need to plan, configure, or troubleshoot a network — network address, broadcast address, usable host range, total and usable host count, subnet mask in dotted-quad or prefix form, wildcard mask, and IP class. It works for both IPv4 (using 32-bit addresses) and IPv6 (using 128-bit addresses and prefix lengths).

With a free online subnet calculator, network engineers, IT administrators, students, and developers can stop doing CIDR math by hand. Paste an IP like 192.168.1.0 with prefix /24, or an IPv6 like 2001:db8:: with /64, and instantly get a full subnet breakdown ready to drop into firewall rules, VLAN configs, DHCP scopes, or routing tables.

How to Use the Subnet Calculator?

Follow the steps below to calculate any IPv4 or IPv6 subnet in seconds.

  • Enter an IP address: Type any IPv4 (e.g. 192.168.1.0) or IPv6 (e.g. 2001:db8::) address into the input field.
  • Enter prefix or subnet mask: Provide a CIDR prefix length (e.g. /24 for IPv4, /64 for IPv6) or a full dotted-quad subnet mask like 255.255.255.0.
  • Click Calculate: Press Calculate to compute the network address, broadcast address, usable IP range, host count, and CIDR notation.
  • Review subnet details: Read the network address, broadcast address (IPv4 only), subnet mask, wildcard mask, total hosts, usable hosts, first usable IP, and last usable IP.
  • Copy or use the results: Use the calculated values for firewall rules, VLAN planning, DHCP scope setup, or routing configuration.

Why Use the Subnet Calculator?

These benefits make subnet calculators essential for network engineers, IT admins, and students learning subnetting.

  • Skip Manual CIDR Math: Avoid the error-prone work of converting between binary, dotted-quad, and CIDR notation by hand.
  • IPv4 and IPv6 in One Tool: Calculate both legacy IPv4 and modern IPv6 subnets without switching tools.
  • Network Planning: Plan VLANs, subnets, and address space allocation for new network rollouts.
  • Firewall Rules: Generate exact network and broadcast addresses for firewall and ACL rules.
  • DHCP Scope Setup: Calculate usable host ranges to configure DHCP scopes correctly.
  • Education and Certification: Verify subnetting answers when studying for CCNA, Network+, and other networking certifications.
  • Troubleshooting: Quickly check whether two IPs are in the same subnet during network debugging.
  • Free and Browser-Based: No signup, no install — the calculator runs entirely in your browser.

Key Features of the Subnet Calculator

Here are the key features of the subnet calculator that help you compute subnet details accurately.

  • IPv4 & IPv6 Support: Calculates both 32-bit IPv4 and 128-bit IPv6 subnets in the same tool.
  • CIDR & Dotted-Quad Masks: Accepts both CIDR prefix notation (e.g. /24) and full subnet masks (e.g. 255.255.255.0).
  • Network & Broadcast Addresses: Calculates the network address and broadcast address (IPv4) for any subnet.
  • Usable Host Range: Shows the first and last usable IP addresses, plus total and usable host counts.
  • Subnet & Wildcard Mask: Outputs both the subnet mask and the wildcard mask (inverse mask) used in ACLs.
  • IP Class Detection: Identifies the IPv4 address class (A, B, C, D, E) and whether the address is public, private, loopback, or link-local.
  • IPv6 Compressed & Full: Shows both compressed (::1) and full (0000:0000:...:0001) forms of IPv6 addresses.
  • Instant Calculation: Results appear in milliseconds — no waiting, no server round-trip.

Use Cases of the Subnet Calculator

Here are common ways network engineers and IT teams use the subnet calculator.

  • VLAN Planning: Calculate subnet sizes when allocating address space to VLANs in a new network design.
  • Firewall & ACL Configuration: Generate exact network addresses and wildcard masks for firewall rules and Cisco-style ACLs.
  • DHCP Scope Setup: Compute usable host ranges to configure DHCP scopes without overlapping reserved addresses.
  • Routing Table Verification: Verify that route summarisations cover the intended IP ranges using CIDR notation.
  • Network Troubleshooting: Quickly check whether two IP addresses are in the same subnet during connectivity debugging.
  • CCNA / Network+ Practice: Verify subnetting answers and learn CIDR math by checking your work against the calculator.
  • Cloud VPC Design: Plan AWS VPC, Azure VNet, and GCP VPC address ranges that don't overlap with on-prem subnets.
  • IPv6 Migration: Plan IPv6 prefix allocations alongside existing IPv4 ranges when dual-stacking a network.

Frequently Asked Questions

What is a subnet calculator?

A subnet calculator is a tool used to divide IP networks into smaller subnetworks, providing details like network address, broadcast address, CIDR notation, usable IP range, and host count.

Can this tool calculate both IPv4 and IPv6 subnets?

Yes, this subnet calculator supports both IPv4 (32-bit) and IPv6 (128-bit), allowing you to calculate CIDR ranges, prefixes, and address details for both protocols.

How do I use a subnet calculator?

Enter an IP address and a subnet mask or CIDR prefix (e.g. /24). The tool will instantly calculate the network address, broadcast address, and available host range.

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation represents IP addresses with a suffix indicating the number of bits used for the network portion — for example 192.168.1.0/24 means the first 24 bits are the network and the remaining 8 are for hosts.

What is the difference between IPv4 and IPv6 subnetting?

IPv4 uses 32-bit addresses and traditional subnet masks (e.g. 255.255.255.0). IPv6 uses 128-bit addresses with prefix lengths only (e.g. /64), allowing for significantly more IP addresses and simplified routing. IPv6 also drops the concept of broadcast addresses.

Can I calculate IP ranges and usable hosts?

Yes, the subnet calculator provides full IP range details, including the first and last usable host addresses, total host count, usable host count, network address, and broadcast address (for IPv4).

Do I need to install software to use this tool?

No, the subnet calculator works entirely online with no installation required. It runs in any modern browser on desktop, laptop, tablet, or phone.

Is this tool useful for network administrators?

Absolutely. It is ideal for network engineers, IT professionals, and students to quickly perform subnetting calculations, plan VLANs and address space, configure firewall rules, and study for certifications like CCNA and Network+.

What is a wildcard mask?

A wildcard mask is the bitwise inverse of a subnet mask. It's used in Cisco ACLs to specify which bits of an IP address to match. For a /24 subnet, the subnet mask is 255.255.255.0 and the wildcard mask is 0.0.0.255.

What are private IP address ranges?

RFC 1918 defines three private IPv4 ranges: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. These addresses are not routable on the public internet and are used for internal networks behind NAT.

Did you find this page helpful?

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests