🌐 Subnet Calculator

Calculate the network address, broadcast address, usable host range, subnet and wildcard masks and number of hosts for any IPv4 address and prefix length.

Also known as: Subnet Mask Calculator · Ip Subnet Calculator · Subnet and Ip Address Calculator · Calculator Ip Subnetting · Cidr Calculator · Ip Calculator · Ip Address Calculator · Calculator for Subnet Mask

Loading calculator…

How to use the Subnet Calculator

  1. Enter an IPv4 address (optionally with /prefix).
  2. Choose the prefix length.
  3. Read the network details.

How it's calculated

Network = IP AND mask. Broadcast = network OR NOT mask. Usable hosts = 2^(32 − prefix) − 2.

Frequently asked questions

How many hosts are in a /24?
254 usable hosts (256 addresses minus the network and broadcast addresses).
Is the Subnet Calculator free?
Yes. The Subnet Calculator on CalculatorSprint is completely free with no sign-up. Every calculation runs in your browser, so the numbers you enter are never sent to our servers.
How accurate is the Subnet Calculator?
It uses the method described under “How it’s calculated” and keeps full precision internally, rounding only the displayed result.
Can I use the Subnet Calculator on my phone or offline?
Yes. It works on any phone, tablet or computer. Install CalculatorSprint as an app from your browser menu (Add to Home Screen or Install app) and it keeps working offline.

Read more about the Subnet Calculator

When to use the Subnet Calculator

Use the Subnet Calculator for iPv4 subnet calculator: network, broadcast, host range and mask from CIDR. It is one of 35 free physics & chemistry calculators, and pairs well with the Binary / Hex Calculator, Binary / Hex / Octal Converter, Chmod Calculator and Speed, Distance & Time Calculator.

Tips for accurate results

Keep every quantity in consistent units (SI units unless the form says otherwise), watch significant figures, and compare the result with a rough estimate to catch unit mistakes.

Was this helpful?

More Physics & Chemistry Calculators

See all Physics & Chemistry Calculators →

Popular calculators

Results are estimates for information only. Calculations run privately in your browser.