IP subnet calculator

Enter an IPv4 address and its prefix length (the /24 in 192.168.1.10/24).

Your answer

Network192.168.1.128/26
Usable hosts192.168.1.129 – 192.168.1.190
Broadcast address192.168.1.191
Usable host addresses62
Subnet mask255.255.255.192
Wildcard mask0.0.0.63
Address typePrivate (RFC 1918)

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. /26 leaves 6 host bits: 2^6 = 64 addresses.
  2. Network = address with the host bits cleared; broadcast = all host bits set. The two are not usable for hosts (except in /31 and /32).

Method and assumptions

An IPv4 address is 32 bits; the prefix length says how many leading bits identify the network. The rest identify hosts. In /31 point-to-point links (RFC 3021) both addresses are usable.

Questions

How many hosts does a /26 have?

62 usable hosts out of 64 addresses.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators