IP Subnet Calculator

Calculate the IPv4 network address, broadcast address, usable host range, subnet mask, wildcard mask and number of hosts for any CIDR.

Calculator

Was this tool useful?

About this tool

About IP Subnet Calculator

Enter an IP address with a prefix like 192.168.1.130/26 (or pick the mask) to get every subnet detail network admins need, including binary masks and the address type.

How it works

Network = IP AND mask. Broadcast = network OR (NOT mask). Usable hosts = 2^(32 − prefix) − 2 (except /31 and /32).

Example

192.168.1.130/26 → network 192.168.1.128, broadcast 192.168.1.191, hosts .129–.190 (62 usable).

How to use this tool

  1. Type an IPv4 address – add /prefix or /mask if you like.
  2. Or choose the subnet mask from the list.
  3. Read the network, broadcast, host range and masks.

Frequently asked questions

Why are two addresses not usable?

The first address names the network and the last is the broadcast address, so hosts cannot use them. /31 links are an exception (RFC 3021).

Does it support IPv6?

This tool is for IPv4. IPv6 subnets are almost always /64 for local networks.

Do I need to sign up?

No. The calculator is free, works in your browser and nothing you type is stored.

Does the IP Subnet Calculator send my data to a server?

No. The IP Subnet Calculator runs entirely in your browser using JavaScript, so tokens, code and data you paste stay on your device. You can even use it offline once the page has loaded.