Part of the Technology & IT suite · 35 calculators

IP Subnet Calculator

Turn an IPv4 address and CIDR prefix into the subnet mask, network and broadcast addresses, the usable host range and how many hosts fit — with the private-range and wildcard details.

A CIDR prefix says how many leading bits identify the network: /24 fixes the first 24 bits, leaving 8 for hosts, which gives 256 addresses of which 254 are usable — the first is the network address and the last is the broadcast address.

0 to 32
Results update as you type
Results
Usable hosts
254
Network address
Usable host range
Broadcast address
Subnet mask
Wildcard mask
Total addresses
Address scope
Reviewed September 2026. Computing arithmetic: bytes, bits, seconds and probabilities do not change by country. Ofcom requires UK providers to quote a minimum guaranteed download speed.
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About ip subnet

How the ip subnet calculator works

A CIDR prefix says how many leading bits identify the network: /24 fixes the first 24 bits, leaving 8 for hosts, which gives 256 addresses of which 254 are usable — the first is the network address and the last is the broadcast address. The mask is those leading bits set to 1 (255.255.255.0 for /24). A /31 is the exception: it carries exactly two usable addresses for point-to-point links, and a /32 is a single host.

Formula: addresses = 2^(32 − prefix); usable = addresses − 2 (except /31 and /32)

Worked examples

InputsUsable hostsNote
192.168.1.10/24254254 usable hosts, mask 255.255.255.0
10.0.0.5/816,777,21416,777,214 usable hosts
A /30 point-to-point link22 usable addresses

Frequently asked questions

What does /24 mean?

The first 24 bits identify the network, leaving 8 bits for hosts: 256 addresses, 254 of them usable.

Why are two addresses unusable?

The first is the network address and the last is the broadcast address. The exceptions are /31 (two usable, for point-to-point links) and /32 (a single host).

What is a wildcard mask?

The inverse of the subnet mask, used in access-control lists on Cisco and similar equipment — 0.0.0.255 pairs with 255.255.255.0.

Which ranges are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, defined in RFC 1918. They are not routed on the public internet.

How do I split a network?

Increase the prefix by one to halve it: a /24 splits into two /25s of 126 usable hosts each.

Where these figures come from

Last checked: September 2026. Units follow the SI decimal convention (IEC 80000-13 defines the binary alternatives); network and security figures cite the defining standard.