Home › Tools › Subnet Calculator

Subnet Calculator

Type any IPv4 address, choose a prefix length, and get the full picture of the subnet: network and broadcast addresses, netmask, wildcard mask, usable host range and host count.

Private by design — the calculation runs in your browser. Nothing is uploaded.

Calculate a subnet

How to read the result

The network address is the first address of the subnet and names the network itself — it can never be given to a device. The broadcast address is the last address, used to talk to every device on the subnet at once. Everything between them is the usable host range. The netmask is the prefix written out as four numbers, and the wildcard mask is its mirror image, used in router access lists and some firewall rules.

A quick rule of thumb: every step up in prefix length halves the subnet. A /24 holds 254 usable hosts, a /25 holds 126, a /26 holds 62 — and a /30, with just 2 usable hosts, is the classic choice for a point-to-point link between two routers. If the two-protocol basics are still fuzzy, our explainer TCP vs UDP and the Networking section are good next stops.

Frequently asked questions

What is a subnet mask? It separates an IP address into the network part and the host part. Written as /24 or 255.255.255.0, it tells devices which addresses are local and which must go through a router.

How many usable hosts are in a /24? 254 — the subnet has 256 addresses, minus the network and broadcast addresses.

Is my IP address sent anywhere? No. This calculator runs entirely in your browser.

More free tools: Password Checker JSON Formatter JWT Decoder All tools