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.

About the Subnet Calculator

Network, broadcast, host range and mask from CIDR notation. It sits in the Developer section of NWS Calc, a free collection of calculators that run entirely in your browser. There is no signup, no paywall and no tracking — open the page, enter your numbers, get an answer.

Frequently asked questions

Is the Subnet Calculator free to use?
Yes. Every calculator on NWS Calc is completely free, with no signup, no usage limits and no ads.
Does my data leave my device?
No. The Subnet Calculator runs entirely in your browser using JavaScript. Nothing you type is uploaded, logged or stored on a server.
Can I use the Subnet Calculator on my phone?
Yes. The page is fully responsive and works in any modern mobile or desktop browser — there is nothing to install.
What else is in Developer?
Bases, bitwise math, timestamps, data sizes and aspect ratios. You can browse the full Developer category for related calculators.

Related calculators