Part of the Technology & IT suite · 35 calculators

Subnet Calculator

What a CIDR prefix gives you — usable hosts, network and broadcast addresses, the mask, and how many subnets a split produces.

A /24 has 256 addresses and 254 usable, because the first is the network address and the last is broadcast.

Results update as you type
Results
Usable hosts
254
Total addresses
Subnet mask
Network address
Broadcast address
First usable host
Last usable host
Subnets if split
Usable hosts in each split subnet
Reviewed September 2026. Computing arithmetic: bytes, bits, seconds and probabilities do not change by country. Australian broadband speeds are quoted in megabits per second (Mbps).
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 subnet

How the subnet calculator works

A /24 has 256 addresses and 254 usable, because the first is the network address and the last is broadcast. Every bit you take from the host portion halves the hosts and doubles the subnets.

The arithmetic that trips people is that a /30 gives two usable addresses, not four — which is why point-to-point links use it and why a /31 exists as a special case that gives two by abolishing the network and broadcast addresses entirely.

Formula: hosts = 2^(32 − prefix) − 2

Worked examples

InputsUsable hostsNote
A /24254254 usable hosts
A /30 point-to-point link2two usable addresses
A /1665,53465,534 hosts

Frequently asked questions

Why does a /24 have 254 hosts, not 256?

The first address is the network identifier and the last is broadcast. Neither can be assigned to a host.

What is a /30 for?

Point-to-point links. Four addresses, two usable — exactly one for each end.

What is a /31?

A special case defined in RFC 3021 that gives two usable addresses on a point-to-point link by dispensing with network and broadcast entirely.

How many subnets does a split give?

Two to the power of the extra bits. A /24 into /26 borrows two bits, giving four subnets.

Does this work for IPv6?

No — IPv6 has no broadcast address and a vastly larger space, so the arithmetic is different. This is IPv4 only.

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.