All calculators

LoadCairn / Reliability & Network

Subnet Calculator

Find the subnet mask, wildcard, network and broadcast addresses, and usable range from an IPv4 address and CIDR prefix.

Inputs

Adjust the estimate

Results update as you change a value. Calculations run in this browser.

Sample value; replace it with the address you are checking.

Live results

Current estimate

Subnet mask

255.255.255.0

Wildcard mask

0.0.0.255

Network address

192.168.10.0

Broadcast address

192.168.10.255

Total addresses

256

Usable hosts

254

Usable address range

192.168.10.1 – 192.168.10.254

Formula and calculation trace

Mask = /prefix bits · Wildcard = inverse mask · Network = IP AND mask · Broadcast = network OR wildcard · Total = 2^(32 − prefix)

  1. Prefix = /24; the mask contains 24 leading 1 bits.
  2. Subnet mask = /24 mask = 255.255.255.0.
  3. Wildcard = 255.255.255.255 − 255.255.255.0 = 0.0.0.255.
  4. Network = 192.168.10.0 AND 255.255.255.0 = 192.168.10.0.
  5. Broadcast = 192.168.10.0 OR 0.0.0.255 = 192.168.10.255.
  6. Total addresses = 2^(32 − 24) = 256.
  7. Usable hosts = 256 − 2 = 254.
  8. First usable = 192.168.10.0 + 1 = 192.168.10.1.
  9. Last usable = 192.168.10.255 − 1 = 192.168.10.254.

Published source: CIDR prefix notation and IPv4 block sizes: RFC 4632 §3.1; subnet masks: RFC 950; both /31 point-to-point addresses usable: RFC 3021.

Assumptions and limits

  • IPv4 only. The selected prefix is a contiguous, left-aligned mask from /0 through /32.
  • For /0 through /30, this estimate reserves the network and directed-broadcast addresses from the usable-host count.
  • /31 point-to-point (RFC 3021): both addresses are usable.
  • /32 single host route: the one address is the route destination.
  • Calculations run in this browser. Routing policy, special-use ranges, and the deployed network configuration are not checked.

estimates for planning only, not a substitute for a licensed engineer's design or manufacturer data.