# IPv4 Subnet Calculator — CIDR Network and Host Range

> Calculate IPv4 subnet network ranges, broadcast address, subnet mask, wildcard mask, and usable hosts locally.

Source: https://toolpantry.app/subnet-calculator

## About

Enter an IPv4 address in CIDR notation to calculate the network, broadcast, mask, wildcard, and host range.

## Quick answer

**How do I calculate a subnet?** Enter an IP address and CIDR mask to see the network range, broadcast address, and usable hosts.

## How to calculate a subnet

1. **Enter an IP address and mask** — dotted or CIDR, both accepted.
2. **Read the block** — network address, broadcast, usable host range, and host count.
3. **Check membership** — is this IP inside that range? The answer is one glance away.

## Where subnet math shows up

- Configuring VPNs, firewalls, and cloud VPCs without breaking routing
- Deciding how large a subnet a workload actually needs
- Certification study — the topic that refuses to stick from slides alone

## Good to know

The network and broadcast addresses are part of the block but not usable by hosts — a /24 is 256 addresses with 254 usable. The /31 and /32 edge cases (point-to-point links and single hosts) follow the conventions explained on the page. Private ranges — 10/8, 172.16/12, 192.168/16 — never belong on the public internet, which is why your home router hands out 192.168 addresses.

## Notes

Host counts follow common IPv4 conventions: /31 and /32 are shown without subtracting network and broadcast addresses.

## FAQ

**What is CIDR notation?**

CIDR writes an IPv4 address followed by a prefix length, such as 192.168.1.0/24. The prefix length tells you how many bits belong to the network.

**Does this check routing or firewall rules?**

No. It only calculates the mathematical boundaries of the entered IPv4 subnet.
