AllMyCalculators

IPv4 Subnet Calculator: Network, Broadcast and IP Range

Breaks an IPv4 address and prefix into everything you need to configure a subnet.

For example 10.0.0.5/16.

Network address
—

Share sends a link that reopens these numbers. Copy details pastes the full breakdown as a list.

Broadcast address —
First usable address —
Last usable address —
Usable hosts —
Total addresses —
Subnet mask —
Wildcard mask —
Address type —
Reading this —

The formula

network = address AND mask broadcast = network OR NOT mask usable hosts = 2^(32 − prefix) − 2

The prefix is the number of leading 1 bits in the mask. A /31 and a /32 have no separate network or broadcast address.

What to watch out for

In CIDR notation, the number after the slash says how many leading bits name the network. The rest number the hosts.

Frequently Asked Questions

What range does 192.168.1.10/24 cover?

192.168.1.1 to 192.168.1.254, with 192.168.1.0 as the network and 192.168.1.255 as the broadcast.

How many hosts does a /26 hold?

62 usable, out of 64 addresses.

What does a /31 hold?

2 addresses, both usable on a point-to-point link.