IP Subnet Calculator

Type an IPv4 address with a prefix like /24 and this subnet calculator shows every detail of the network.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This subnet calculator breaks an IPv4 address in CIDR notation into everything you need: the network address, the broadcast address, the usable host range, the number of hosts, the subnet mask and the wildcard mask. It also tells you whether the address is in a private range. It is built for network admins, students preparing for exams and anyone setting up a router.

How do I use the subnet calculator?

  1. Enter an IP address with its prefix, for example 192.168.10.37/26.
  2. Read the results: network, broadcast, first and last usable host, and masks.
  3. Change the prefix to compare different subnet sizes.
How to use the IP Subnet Calculator on OneHubTools: 3 steps with a real screenshot of the tool
How to use the IP Subnet Calculator, step by step.

Understanding CIDR notation

CIDR notation writes the network size as a slash and a number. The number says how many of the 32 bits in an IPv4 address belong to the network. The remaining bits are for hosts. A /24 leaves 8 host bits, which gives 256 addresses. Two are reserved, so 254 are usable.

PrefixSubnet maskTotal addressesUsable hosts
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/26255.255.255.1926462
/24255.255.255.0256254
/16255.255.0.065,53665,534
Result from the IP Subnet Calculator on OneHubTools
What the IP Subnet Calculator gives you.

Network, broadcast and usable host range

The network address is the first address in the block and identifies the subnet itself. The broadcast address is the last one and reaches every device in the subnet. Everything in between is the usable host range you can give to computers, phones and printers. For 192.168.10.37/26, the network is 192.168.10.0, the broadcast address is 192.168.10.63, and hosts run from .1 to .62.

Subnet mask vs wildcard mask

The subnet mask has 1s for network bits and 0s for host bits, such as 255.255.255.192. The wildcard mask is the reverse, 0.0.0.63 in the same example. Cisco access lists and OSPF settings use wildcard masks, so the calculator shows both.

Private address ranges

These blocks are reserved for local networks and are not routed on the public internet:

  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.0.0/16

Your home router almost always uses one of them. To see the public address your provider gives you, open what is my IP.

Tips for planning subnets

Leave room to grow. If a team has 25 devices, a /27 with 30 usable hosts is tight; a /26 is safer. Keep subnets for servers, staff and guests separate so you can apply different rules. Write down every subnet in a simple table as you create it.

What to use next

For converting between binary, decimal and hex while you learn subnetting, use the number base converter. Developers checking browser and connection details can try browser info, and the chmod calculator helps with Linux file permissions on the same servers.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with real code and data, including edge cases such as empty input and very long values.

Sources

According to Wikipedia, CIDR notation such as /24 shows how many leading bits of an IPv4 address belong to the network; CIDR was introduced more than 30 years ago, and IPv4 has only about 4.3 billion addresses in total.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

What does /24 mean in CIDR notation?

It means the first 24 bits are the network part. A /24 has 256 addresses and 254 usable hosts.

How do I find the broadcast address?

Enter the IP and prefix in the subnet calculator. The broadcast address is the last address in the block.

What is a wildcard mask?

It is the inverse of the subnet mask. For 255.255.255.0 the wildcard mask is 0.0.0.255.

Why are two addresses not usable?

The first is the network address and the last is the broadcast address, so they cannot be given to devices.

How many hosts does a /27 give?

A /27 has 32 addresses and 30 usable hosts. Each step down in the prefix doubles the size, so a /26 gives 62 usable hosts.

Does it support IPv6?

No. This tool is for IPv4 subnets only.