/24
Runs in your browserNothing is uploadedDeveloper

Subnet Calculator

Enter an IPv4 address with a CIDR prefix or mask to get the network, broadcast, host range, mask, wildcard and number of usable hosts.

Loading tool…
Short answer

Subnet Calculator takes an IPv4 address with a CIDR prefix or a subnet mask and gives the network and broadcast addresses, the first and last usable host, the number of hosts, the mask and the wildcard mask.

What is a subnet?

CIDR notation

An address followed by a slash and the number of bits that identify the network, such as 192.168.1.0/24. The remaining bits number the hosts, so a /24 has 256 addresses, of which 254 can be given to devices.

Why use Subnet Calculator?

  • Plan networks. Size subnets for offices, VPCs and VLANs without counting bits by hand.
  • Accepts masks too. Type 10.0.0.5 255.255.255.0 or 10.0.0.5/24, whichever you have.
  • Edge cases right. /31 point-to-point links and /32 single hosts are handled as RFC 3021 describes, not with negative host counts.

How to use Subnet Calculator, step by step

Subnet Calculator in PrintxPDF with a file loaded, options on the right and the run button below
Subnet Calculator with a file loaded: the steps below follow this screen.
  1. Type an address into Subnet Calculator. With a prefix such as /26 or a mask such as 255.255.255.192.
  2. Read the results. They update as you type.
  3. Copy any value. Each row has its own Copy button.

Frequently asked questions

Why are two addresses not usable?

The first address names the network and the last is the broadcast address, so neither can be given to a device, except in /31 and /32 networks.

What is a wildcard mask?

The mask with its bits flipped, such as 0.0.0.255 for a /24. Cisco access lists and OSPF use it.

Does it support IPv6?

Not yet. It handles IPv4 only.

Looking for the long version? The guides cover each of these jobs in depth.