Subnet Calculator

Home › Other Calculators › Subnet Calculator

Enter an IPv4 address and mask to see the network address, broadcast address, usable hosts and more.

How the calculation works

Enter an IPv4 address and choose the subnet mask. The calculator applies the mask to find the network and broadcast addresses and the usable host range.

Formula used

Network = IP AND mask; Broadcast = Network OR wildcard; Usable hosts = 2^(32 − prefix) − 2

Example

192.168.1.10 with a /24 mask is in network 192.168.1.0, with hosts 192.168.1.1 to 192.168.1.254 (254 usable hosts).

About IPv4 subnetting

What a subnet is

A subnet splits a network into smaller parts. The subnet mask, or the number after the slash in CIDR notation, says how many of the 32 address bits belong to the network and how many are left for hosts.

Results explained

The network address is the first address in the range and the broadcast address is the last. The usable hosts are everything in between. The wildcard mask is the opposite of the subnet mask and is used in access lists.

Reading the bit bar

The bar splits the 32 bits into network bits and host bits. A larger network part means a smaller subnet with fewer hosts.

Private address ranges

The ranges 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255 and 192.168.0.0 to 192.168.255.255 are reserved for private networks.

Handy extras

Small tools are most useful when they are close at hand. The Password Generator, Random Number Generator and Scientific Calculator are worth keeping bookmarked.

Frequently asked questions

What does /24 mean?

The first 24 bits are the network part, so the mask is 255.255.255.0.

Why subtract 2 hosts?

The first address is the network and the last is the broadcast address.

Results are estimates for general information only and are not professional financial, medical or legal advice.

Related calculators

🔧

Password Generator

Create strong random passwords with the characters you choose.

📐

Random Number Generator

Generate random whole numbers or decimals in any range.

📐

Scientific Calculator

A free online scientific calculator with trigonometry, logarithms, powers, roots, factorials and…

📅

Online Timer

Set a countdown timer in hours, minutes and seconds. It shows the time left, a progress bar and…

🔄

Conversion Calculator

Convert between common units of length, mass, volume, area, speed, time, digital storage, energy…

📅

Time Calculator

Add or subtract two amounts of time in days, hours, minutes and seconds.