IP Subnet / CIDR Calculator

Work out network, broadcast, host range and mask from any IPv4 CIDR.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

IP subnet and CIDR calculator

Enter an IPv4 address in CIDR notation — for example 192.168.1.10/24 — and instantly get the network address, broadcast address, usable host range, subnet mask, wildcard mask, and total address count. Network engineers use this to plan address space and verify firewall and routing config.

How it works

The prefix length (the number after the slash) sets how many leading bits are the network portion. The calculator builds a 32-bit mask of that many 1-bits, then:

  • Network address = IP AND mask (host bits zeroed)
  • Broadcast address = network OR wildcard (host bits set to 1)
  • Wildcard mask = bitwise NOT of the subnet mask
  • Usable hosts = 2^(32 − prefix) − 2 (the /31 and /32 special cases keep both addresses)

Example

For 192.168.1.10/24:

FieldValue
Subnet mask255.255.255.0
Network address192.168.1.0
Broadcast address192.168.1.255
Usable host range192.168.1.1 – 192.168.1.254
Total addresses256
Usable hosts254

All of the math is bitwise arithmetic done in your browser, so no address or network detail is ever uploaded.

Ad placeholder (rectangle)