Explore all tools
FREE ONLINE TOOLNo visitor account required

IP Subnet Calculator

Network, broadcast, mask, wildcard and host ranges for any IPv4 address and CIDR prefix — the whole subnet on one screen.

—

Network address

Broadcast address—
Subnet mask—
Wildcard mask—
First usable host—
Last usable host—
Total addresses—
Usable hosts—

Note: The standard convention reserves the network and broadcast addresses. /31 point-to-point links (RFC 3021) and /32 host routes are the exceptions, and are reported with all addresses usable.

Report a problem with this tool

Subnetting Without the Binary Headache

Enter an IP address and a CIDR prefix (like /24) and get the full subnet picture: network address, broadcast address, subnet mask, wildcard mask, first and last usable host addresses, and the total and usable host counts. The maths is binary under the hood — the mask keeps the first 24 bits as the network and leaves 8 bits (256 addresses) for hosts — but the answers are the dotted decimals you actually configure.

Worked Example

192.168.1.10/24 lives in the network 192.168.1.0, with broadcast 192.168.1.255, mask 255.255.255.0, and usable hosts from .1 to .254 — 254 usable of 256 total, because the network and broadcast addresses are reserved. Shrink to /26 and the same street becomes four blocks of 64 (62 usable each) — the classic way to separate departments on one physical network.

The Two Reserved Addresses

Every subnet loses its first address (the network itself) and its last (broadcast) — hence usable = total − 2. The exceptions prove the rule: a /32 is a single host route with nothing reserved, and a /31 point-to-point link, per RFC 3021, can use both addresses, which is why the calculator reports the standard convention and flags the special cases rather than pretending they do not exist.

Frequently Asked Questions

What is a CIDR prefix?

The number of leading bits in the address that name the network. A /24 keeps 24 bits for the network and leaves 8 bits — 256 addresses — for hosts.

Why are two addresses unusable?

The first address names the network itself and the last is the broadcast address. Usable hosts are total minus 2, except for /31 links and /32 host routes, which this calculator flags.

What is a wildcard mask?

The bitwise inverse of the subnet mask, used in router access lists. A 255.255.255.0 mask has wildcard 0.0.0.255.

How do I split a network into smaller subnets?

Raise the prefix. Each extra bit halves the block: a /24 becomes two /25s, four /26s of 62 usable hosts, and so on. Run each prefix here to see its ranges.