networkutils.org

Home / IP Tools / Subnet Calculator

Subnet Calculator

IP Tools

CIDR ranges, masks, host counts and splits.

Run this tool: the interactive Subnet Calculator loads here (requires JavaScript). Input: CIDR block — e.g. 10.20.0.0/22.

Description

The Subnet Calculator takes a CIDR block and computes the network and broadcast addresses, the usable host range, the subnet mask, the total host count and the number of available subnets — the math behind IPv4 addressing plans.

Features

✓ Network, broadcast and usable host range
✓ Subnet mask in dotted-decimal and CIDR
✓ Total and usable host count
✓ Wildcard mask for ACL configuration

How to Use

Enter a CIDR block (10.20.0.0/22) and run the tool. The calculator parses the address and prefix length and returns the full subnet breakdown.

Input: CIDR block — e.g. 10.20.0.0/22.

Understanding the Results

The output shows the network address, broadcast address, first and last usable host, subnet mask, wildcard mask, total addresses and usable host count. Use these values when configuring interfaces, DHCP scopes and firewall ACLs.

Common Use Cases & Examples

→ Plan a VLAN or office network addressing scheme.

→ Calculate DHCP scope boundaries and host counts.

→ Derive wildcard masks for firewall and router ACLs.

→ Split a large block into smaller subnets for departments.

Frequently Asked Questions

How many usable hosts are in a /24?

A /24 has 256 total addresses; subtracting the network and broadcast addresses leaves 254 usable hosts. A /26 has 62 usable, a /28 has 14, and a /30 has 2 (commonly used for point-to-point links).

What is a wildcard mask and where is it used?

A wildcard mask is the bitwise inverse of the subnet mask (e.g. 0.0.0.255 for a /24). It is used in Cisco ACLs and OSPF network statements to match ranges, unlike the subnet mask used in interface configuration.

How do I split a /24 into smaller subnets?

Each bit you borrow doubles the number of subnets and halves their size. A /24 splits into two /25s, four /26s, eight /27s and so on. Use this calculator on each resulting block to get its exact range and host count.

About this tool

Maintained by
networkutils.org editorial team
Last updated
September 2026
Testing methodology
IP geolocation uses the public ip-api.com service; WHOIS/RDAP uses the rdap.org bootstrap and follows redirects to the authoritative RDAP server; the Subnet Calculator and Multicast MAC Checker are pure local arithmetic with no network calls; BGP Route View queries public route-data services.
Technical references
RFC 4632 — Classless Inter-Domain Routing (CIDR)