Network

Subnet Calculator

Details

How to use Subnet Calculator

What the tool does, how to run it, and what to expect from the result.

About this subnet calculator

Enter an IPv4 address and a prefix length or subnet mask. The calculator ANDs the address with the mask to get the network address, sets the host bits to get the broadcast, and lists the usable range between them. A /24 gives 256 addresses and 254 usable hosts; each bit you add to the prefix halves the block. It also shows the wildcard mask used in ACLs and OSPF, the mask in binary, the historical class, and whether the address is private (RFC 1918), loopback, link-local or public.

At a glance

Who Subnet Calculator is for

A quick way to understand who this helps, what it solves, and where it connects next.

Best fit

Network engineers, sysadmins and students studying for CCNA or Network+.

Ideal for

Using the subnet calculator without installing anything or signing up.

FAQ

Common questions

Short answers for the questions people usually have before trying a utility like this.

How many hosts are in a subnet?

A /n prefix has 2^(32 − n) addresses, minus 2 for the network and broadcast addresses. /24 = 254 hosts, /26 = 62, /30 = 2. Point-to-point /31 links use both addresses (RFC 3021) and /32 is a single host.

What is the difference between CIDR and a subnet mask?

They say the same thing two ways. /24 means the first 24 bits are the network part, which written as a mask is 255.255.255.0. /20 is 255.255.240.0.

Recommendations

You Might Also Like

Nearby tools from the catalog that fit the same job or workflow.

Cleanor app

Do it all on your device

Cleanor puts these tools in one app: compress and convert images, video, and audio, work with PDFs, and scan text right on your device. Plus free up storage and clear inbox clutter with Email Cleaner. Start with a free trial.

  • iPhone
  • Android
  • Macsoon
  • Windowssoon