Network & DevOps Tools

Subnet Calculator &
CIDR Calculator

Calculate IPv4 network boundaries, subnet masks, wildcard masks, usable host ranges, RFC 3021 point-to-point addresses, and valid AWS subnet capacity. Everything runs locally in your browser.

IPv4 + CIDRRFC 3021 awareAWS /16–/28Local processing

Network Parameters

/

Network

192.168.1.0/24

PRIVATECLASS C

Total Addresses

256

Usable Hosts

254

AWS Usable

251

Network Address

192.168.1.0

Broadcast Address

192.168.1.255

Subnet Mask

255.255.255.0

Wildcard Mask

0.0.0.255

First Usable Host

192.168.1.1

Last Usable Host

192.168.1.254

CIDR Notation

192.168.1.0/24

Address Type

Private-Use (RFC 1918 · 192.168.0.0/16)

Host-count rule

Network and broadcast addresses are excluded from the usable host count.

CIDR Quick Reference

CIDRSubnet MaskTotal AddressesUsable HostsAWS UsableCommon Use
/8255.0.0.016,777,21616,777,214N/ALarge routed block
/16255.255.0.065,53665,53465,531AWS VPC default
/20255.255.240.04,0964,0944,091Medium enterprise
/24255.255.255.0256254251Home / small office
/25255.255.255.128128126123Half /24 split
/26255.255.255.192646259Small team subnet
/27255.255.255.224323027Small office LAN
/28255.255.255.240161411AWS small subnet
/29255.255.255.24886N/ASmall on-premises subnet
/30255.255.255.25242N/ATraditional point-to-point
/31255.255.255.25422N/AP2P (RFC 3021)
/32255.255.255.25511N/ASingle host route

Click any row to apply that prefix to the calculator.

IPv4 Private Address Ranges (RFC 1918)


What Is CIDR Notation?

CIDR (Classless Inter-Domain Routing) writes an IPv4 prefix as an address followed by a slash and a number from 0 to 32. In 192.168.1.0/24, the first 24 bits identify the network and the remaining 8 bits identify addresses inside that block.

CIDR replaced classful address allocation and allows networks to be sized in powers of two. It is used in routing tables, firewall rules, cloud VPCs, VPNs, Kubernetes clusters, and on-premises network plans.

How to Use This IPv4 Subnet Calculator

  1. Enter an IPv4 address such as 10.20.30.40.
  2. Choose a CIDR prefix or enter a contiguous dotted-decimal subnet mask.
  3. Review the canonical network, upper boundary, usable range, host counts, binary bits, and optional equal-size subnet split.

Use Copy Report for quick sharing or download TXT and JSON files for documentation and infrastructure planning.

Subnet Address and Host Calculations

The block contains 2^(32 − prefix) addresses. For prefixes from /0 through /30, the conventional usable-host count excludes the network and directed-broadcast addresses. The wildcard mask is the bitwise inverse of the subnet mask.

A /31 is different: RFC 3021 allows both addresses on a point-to-point link. A /32 identifies one host address or host route. This calculator applies those modern rules instead of incorrectly returning zero usable addresses.

AWS IPv4 Subnet Capacity

Standard AWS IPv4 subnets accept prefix sizes from /16 through /28. AWS reserves the first four addresses and the last address in each subnet, so a /24 has 251 assignable addresses and a /28 has 11.

Prefixes outside the supported AWS range are shown as N/A instead of presenting a misleading capacity. Other cloud platforms can use different limits and reservations, so check the provider documentation before deployment.

Private, Browser-Based Calculation

IP addresses, masks, subnet splits, and exported reports are calculated locally in your browser. The calculator does not need to upload the values you enter to a processing server.

Related Developer Tools

Convert address values between binary, decimal, and hexadecimal with the Number Base Converter, format exported infrastructure data with the JSON Formatter, safely prepare query parameters with the URL Encoder, verify file or configuration checksums with the Hash Generator, or schedule network jobs with the Cron Builder.

To see how IP addresses, routers, DNS, packets, and servers fit together, read How Does the Internet Really Work?

For the system that maps domain names to IPv4 and IPv6 destinations, continue with How DNS Works.

To follow the shift from dial-up access to broadband, mobile networks, and an always-connected world, continue with Internet: Then vs Now.

Meet one of the architects behind TCP/IP and internetworking in the Vint Cerf profile.

Authoritative Networking References

Frequently Asked Questions

Planning note: The output follows IPv4 CIDR arithmetic and the special /31 and /32 rules described above. Confirm cloud-provider limits, reserved addresses, routing policies, and overlapping ranges before applying a production network configuration.