Skip to content
NWS Kit

Subnet Calculator

Network, broadcast, host range and mask from CIDR notation.

Network address
192.168.1.0/24
Subnet mask
255.255.255.0
Broadcast
192.168.1.255
First host
192.168.1.1
Last host
192.168.1.254
Usable hosts
254
Total addresses
256
Show the working
  1. 1Mask /24 = 255.255.255.0
  2. 2Network = IP AND mask = 192.168.1.0
  3. 3Broadcast = network OR ~mask = 192.168.1.255
Formula
network = IP AND mask; broadcast = network OR ~mask

How it works

Works out the network and broadcast addresses, host range and usable host count for an IPv4 address in CIDR notation.

Example

192.168.1.10/24 has 254 usable hosts, from .1 to .254.

Runs on this deviceSent to a server: 0 bytes

How it works

  1. Type in your numbers.
  2. The answer updates as you type.
  3. Change any figure to compare. Nothing you enter is sent anywhere.

Network, broadcast, host range and mask from CIDR notation. It is one of the Developer calculators in NWS Kit. There is no sign-up, and the numbers you enter stay on your device.

Questions

Is the Subnet Calculator free to use?

Yes. The Subnet Calculator is completely free, with no account, no sign-up and no usage limits.

Does my data leave my device?

No. The Subnet Calculator runs entirely in your browser. Nothing you type is uploaded, logged or stored on a server.

Can I use the Subnet Calculator on my phone?

Yes. The page works in any modern mobile or desktop browser, and there is nothing to install.

What else is in Developer?

Format, encode and inspect — bases, bitwise math, timestamps and aspect ratios. You can browse the full Developer category for related calculators.