IP Subnet Calculator

Invalid IP address or CIDR notation.

Common notations: /24, /16, /8 or enter mask like 192.168.1.0/255.255.255.0

Quick:

How to Use

1

Enter an IP address with CIDR prefix (e.g. 192.168.1.0/24) or with subnet mask

2

Click Calculate to get network address, broadcast, host range, and subnet details

3

Click any value to copy it. Use quick buttons for common subnets

𝕏 Share Facebook LinkedIn Reddit
Used 0 times on this device

What Is an IP Subnet Calculator?

An IP subnet calculator helps network engineers, system administrators, and IT professionals quickly compute subnet information from an IPv4 address and CIDR prefix length. Instead of manually performing binary math, this tool instantly shows you the network address, broadcast address, usable host range, subnet mask, wildcard mask, and total number of hosts.

CIDR (Classless Inter-Domain Routing) notation like /24 tells you how many bits are used for the network portion. A /24 means 24 bits for the network and 8 bits for hosts, yielding 254 usable addresses.

Features

Instant Calculation

Computes all subnet details in milliseconds — no page reload needed.

Binary View

See IP address, subnet mask, and network in binary for deep understanding.

Subnet List

For smaller networks, view the first 8 subnets with their host ranges.

Quick Presets

One-click buttons for /8, /16, /24, /28, /30, /32 — the most common sizes.

Copy to Clipboard

Click any result value to copy it instantly for configs or documentation.

Works Offline

All calculations happen locally. No data sent to any server.

Use Cases

Network design: Plan IP addressing schemes for office networks, data centers, or cloud VPCs. Verify your subnet size will accommodate all required hosts.

Firewall rules: Determine the exact network address and wildcard mask needed for ACL entries in router or firewall policies.

Troubleshooting: Quickly check if two IP addresses are in the same subnet, or find the correct gateway for a given host.

Cloud networking: Calculate CIDR blocks for AWS VPCs, Azure VNets, or GCP subnets to avoid overlapping address spaces.

Certification study: Visualize binary subnet math for CCNA, Network+, and other networking certifications.

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation uses a slash followed by a number indicating how many bits are for the network. /24 = 24 network bits, 8 host bits, equivalent to 255.255.255.0.

How do I calculate the number of usable hosts?

Usable hosts = 2^(32 - prefix) - 2. A /24 has 2^8 - 2 = 254 usable hosts. The -2 removes the network and broadcast addresses.

What is a wildcard mask?

The wildcard mask is the binary inverse of the subnet mask. For 255.255.255.0 the wildcard is 0.0.0.255. Used in Cisco ACLs and OSPF configurations.

What are private IP ranges?

RFC 1918 private ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16. Not routable on the public internet.

What is a /30 subnet used for?

A /30 provides only 2 usable hosts — ideal for point-to-point links between routers where you need exactly 2 IPs and want minimal waste.

← All Tools

More Free Tools

Sister site: GenFactories – Fun Generators