Skip to content
CalcEngine

IP Subnet Calculator

Network, broadcast, host range and mask from any IPv4 address and CIDR.

Formulas and rates last reviewed · How we check

Your inputs

/

Results update instantly as you type.

Calculating…

 

 

Share this result

Shared messages and images include the CalcEngine name and a link that reopens these exact inputs.

Was this calculator helpful?

For education only: Results are rough estimates, not a substitute for professional design, building codes or site checks. Consult a qualified engineer (a structural engineer for buildings, a licensed electrician for wiring) before buying materials or starting work.

How the IP Subnet Calculator works

The subnet mask has the first N bits set to 1. AND-ing it with the IP gives the network address; setting all host bits to 1 gives the broadcast address.

Network = IP AND Mask
Broadcast = Network OR NOT Mask
Usable hosts = 2^(32 − N) − 2

Worked example

192.168.10.25/26

  1. Mask = 255.255.255.192.
  2. Network = 192.168.10.0; broadcast = 192.168.10.63.
  3. Usable hosts = 2⁶ − 2 = 62.

Hosts 192.168.10.1 to 192.168.10.62.

Frequently asked questions

Why subtract 2 hosts?

The first address identifies the network and the last is the broadcast address. /31 (point-to-point links) and /32 (single host) are exceptions.

What does /24 mean?

CIDR notation: the first 24 bits are the network part, leaving 8 bits (256 addresses, 254 usable) for hosts.

Which IP ranges are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). They are used inside home and office networks.

Are /31 and /32 special?

Yes. /31 is used for point-to-point links (2 usable addresses, RFC 3021) and /32 is a single host address.

Related calculators