IPv4 Subnet Calculator

Find the network address, broadcast address, mask and usable hosts for an IP and prefix length.

πŸ”’ Runs in your browser⚑ Instant resultsπŸ†“ Free, no sign-up

How to use the IPv4 Subnet Calculator

  1. Fill in IP address and Prefix length. Sensible sample values are already there, so you will see a result immediately.
  2. The answer updates as you type. Nothing to submit.
  3. Compare a couple of scenarios by changing one number at a time. It is the quickest way to see what really matters.

What is it good for?

Find the network address, broadcast address, mask and usable hosts for an IP and prefix length. The formula is the standard one, so you can double-check the answer against a bank, a textbook or a spreadsheet.

A calculator is only as good as its inputs, so it helps to try a few different values and see how much each one changes the result. People most often reach for it when verifying a download against its checksum, preparing config files and test data and checking what a token or encoded value really contains.

See it in action

With the sample values already filled in, this is what the calculator shows. Change any number and the answer updates straight away.

InputsIP address: 192.168.10.77 Prefix length (CIDR, 0 to 32): 24
ResultsNetwork address: 192.168.10.0/24 Subnet mask: 255.255.255.0 Broadcast address: 192.168.10.255 Usable hosts: 254 Total addresses: 256
Good to know. A /24 network has 254 usable hosts. Every step down in prefix length doubles the size.

Mistakes to avoid

Test the output in the real environment where it will run. Small differences between systems cause surprises.

Do not paste secrets such as passwords, private keys or tokens into any online tool, including this one, unless you have to. Here nothing is uploaded, but a habit of caution is worth keeping.

Keep a copy of the original input before you replace it with the result.

Privacy

The numbers you type are used only to do the calculation, in your browser. Nothing is sent to us.

Read the guide

Want the background? Subnets and Chmod Explained Without the Jargon explains it in plain language.

Frequently asked questions

Is IPv4 Subnet Calculator free to use?

Yes, completely free. There is no sign-up, no watermark and no limit on how many times you use it.

Is my data safe when I use IPv4 Subnet Calculator?

The numbers you type are used only for the calculation in your browser. Nothing is sent or stored.

How accurate is IPv4 Subnet Calculator?

It uses the standard formula, so the arithmetic is exact. The real-world answer depends on whether your inputs match your real situation, so check anything important with a professional.

Any tips for using IPv4 Subnet Calculator?

A /24 network has 254 usable hosts. Every step down in prefix length doubles the size.