Skip to content
🌐

Subnet Calculator

Work out the network, broadcast, and host range of an IPv4 subnet.

Runs in your browser

Updated

/24

Network address

-

Broadcast address

-

First usable host

-

Last usable host

-

Subnet mask

-

Wildcard mask

-

Usable hosts

-

Total addresses

-

Binary address

-

IP class

-

Private range

-

borrows extra bits from the host portion

A /31 has no usable host addresses under the old rule, but RFC 3021 allows it for point-to-point links, which is why routers often use it. A /32 is a single host route. For anything larger, both the network and broadcast address are reserved.

What an address and a prefix produce

Type an IPv4 address and a prefix between 0 and 32 and the page returns the network address, the broadcast address, the first and last usable hosts, the dotted mask and its wildcard, usable and total address counts, the address in binary, the class letter and whether the address is private. The defaults, 192.168.1.130/26, give the network 192.168.1.128 and the broadcast 192.168.1.191. Choosing a prefix is about host count rather than traffic; the bandwidth calculator covers throughput.

A worked example

192.168.1.130 with a /26 mask of 255.255.255.192 holds 64 addresses and 62 usable hosts, from 192.168.1.129 to 192.168.1.190; the wildcard is 0.0.0.63 and the class is C. A split into /28 slices the block into four, starting at .128, .144, .160 and .176, each ending .143, .159, .175 and .191 with 14 hosts. A /30 is tighter still: 10.20.30.40/30 has two usable addresses, .41 and .42, with .43 as broadcast.

Small prefixes and odd addresses

A /31 is treated as two usable addresses with no reserved pair, which matches RFC 3021 for point-to-point links, and the first and last columns show the network and broadcast addresses themselves. A /32 shows one address throughout. The class letter comes from the first octet alone, so multicast and reserved ranges above 223 are labelled C, and the private check covers 10/8, 172.16/12, 192.168/16 and 100.64/10 for carrier-grade NAT, but not loopback or link-local.

Where it stops

  • IPv4 only; no IPv6, and no netmask entry, just a prefix length.
  • Splitting is offered only for /26 to /30, and only the first 256 subnets are listed.
  • Loopback 127.0.0.0/8 and link-local 169.254.0.0/16 are reported as public.
  • Malformed input blanks every field rather than naming the octet at fault.

Questions people ask

Why does a /31 show two usable hosts?

Because the page follows RFC 3021 rather than the older rule that subtracts two addresses from every subnet. Routers use /31 on point-to-point links, where a network and a broadcast address would waste half the block.

Can it detect the local subnet automatically?

No, an address has to be typed in. Read yours with the what is my IP tool first, then use the port checker to see whether a service on that network is actually reachable.