Free CIDR & Subnet Calculator

Calculate subnet details from any CIDR notation — IPv4 and IPv6 supported. Get network address, broadcast, host range, usable hosts, and AWS/GCP reserved counts instantly in your browser.

Related Developer Tools

Last updated: May 22 2026

Reviewed by the QuickTooly Team

Subnet Calculator Guide

Why Use QuickTooly's CIDR Subnet Calculator?

  • IPv4 & IPv6 support: Works with both address families — enter any CIDR range and get full details instantly.
  • Cloud-aware host counts: Shows AWS and GCP usable host counts, accounting for their reserved IP addresses.
  • Runs in your browser: No server calls — all calculations happen locally, keeping your network info private.
  • Copy any value: Click any result to copy it directly to your clipboard.
  • Edge cases handled: Correctly handles /31 (point-to-point), /32 (host routes), /0 (default route), and full IPv6 ranges.
  • 100% free: No account, no watermark, no rate limits.

What is CIDR Notation?

CIDR (Classless Inter-Domain Routing) notation represents an IP address and its associated network prefix. It takes the form IP/prefix, where the prefix length indicates how many bits are used for the network portion. For example, 192.168.1.0/24 describes a network with 256 total addresses (2⁸ host bits), of which 254 are usable by hosts.

CIDR replaced the older classful addressing system (Class A/B/C) in 1993, enabling more efficient allocation of the IPv4 address space. Today it is universally used in routing tables, firewall rules, VPC configurations, and network documentation.

AWS & GCP Reserved IP Addresses

Cloud providers reserve several IP addresses within each subnet, reducing the number available to your workloads:

  • AWS reserves 5 addresses per subnet: network address, VPC router, DNS server, future use, and broadcast address.
  • GCP reserves 4 addresses per subnet: network address, default gateway, second-to-last address (Google's use), and broadcast address.

This matters when sizing subnets — a /28 gives you 16 total IPs but only 11 usable hosts on AWS (16 − 5) and 12 on GCP (16 − 4).

How to Use This Subnet Calculator

  • Type your CIDR range into the input field (e.g. 10.0.0.0/16 or 2001:db8::/48)
  • Click "Calculate Subnet" or press Enter to compute results
  • Review the output grid — each field shows a specific subnet property
  • Click any value to copy it to your clipboard instantly

Common Subnet Reference

CIDRSubnet MaskTotal HostsUsable HostsAWS Usable
/16255.255.0.065,53665,53465,531
/20255.255.240.04,0964,0944,091
/21255.255.248.02,0482,0462,043
/22255.255.252.01,0241,0221,019
/23255.255.254.0512510507
/24255.255.255.0256254251
/25255.255.255.128128126123
/26255.255.255.192646259
/27255.255.255.224323027
/28255.255.255.240161411
/29255.255.255.248863
/30255.255.255.25242N/A

Frequently Asked Questions

What does /24 mean in CIDR notation?

A /24 prefix means the first 24 bits of the address identify the network, leaving 8 bits for hosts. This yields 256 total addresses (2⁸) and 254 usable host addresses (subtracting network and broadcast). It corresponds to the subnet mask 255.255.255.0.

How many IPs does AWS reserve per subnet?

AWS reserves 5 IP addresses in every VPC subnet: the network address (.0), the VPC router (.1), the DNS resolver (.2), a reserved address for future use (.3), and the broadcast address (last IP). The minimum usable subnet in AWS is a /28, which provides 11 usable addresses.

Does this calculator support IPv6?

Yes. Enter any IPv6 CIDR such as 2001:db8::/32 and the calculator will return the network address, last address, prefix length, and total address count. IPv6 subnets are astronomically large — a /64 alone contains 18,446,744,073,709,551,616 addresses.

What is the difference between /31 and /30?

A /30 gives 4 addresses (2 usable), traditionally used for point-to-point links. A /31 (RFC 3021) gives only 2 addresses with no network or broadcast — both IPs are usable, making it slightly more efficient for router-to-router links. Many modern network devices support /31 for this purpose.

Is my IP data sent to any server?

No. All calculations run entirely in your browser using JavaScript. No data is transmitted — your IP ranges, network designs, and CIDR inputs never leave your device.

What is a wildcard mask?

A wildcard mask is the bitwise inverse of a subnet mask. It is used in Cisco ACLs and OSPF configurations to specify which bits of an address are significant. For a /24 subnet (mask 255.255.255.0) the wildcard mask is 0.0.0.255.