Skip to content

Free guides, courses & tools across 12 engineering disciplines

Digital, networks & embedded

IPv4 Subnet Calculator

Network, broadcast, host range and mask for any IPv4 address and prefix.

Information TechnologyComputer Science

Loading calculator…

Enter an IPv4 address and prefix length (CIDR) to see the network it belongs to, the usable host range and the masks.

How to use this calculator

  1. Type an address, or address/prefix such as 10.0.4.17/22.
  2. Choose the prefix length if you did not type it.
  3. Read the network, broadcast, host range, masks and address type.

Formula

Usable hosts = 2^(32 − prefix) − 2

Worked example

192.168.1.10/24 → network 192.168.1.0, broadcast 192.168.1.255, hosts .1–.254 (254 hosts).

Frequently asked questions

Why are two addresses not usable?

The first address names the network and the last is the broadcast. Point-to-point /31 links (RFC 3021) are the exception and use both.

What is a wildcard mask?

The inverse of the subnet mask, used by Cisco ACLs and OSPF.

Results are for learning and preliminary design. Check critical work against the relevant codes and a qualified engineer.