IP subnet calculator

Get the network address, mask, broadcast and host range for an IPv4 address with a CIDR prefix.

Subnet mask
255.255.255.192
Wildcard mask
0.0.0.63
Broadcast address
192.168.1.191
First host
192.168.1.129
Last host
192.168.1.190
Usable hosts
62

Last updated: October 2026 · Report a calculation error

How to calculate a subnet from CIDR notation

192.168.1.130/26 means an IP address and a prefix length — the first 26 bits are the network part and the remaining 6 bits are host addresses. The calculator works out the mask, network address, broadcast address and host range.

For 192.168.1.130/26: mask 255.255.255.192, network 192.168.1.128, broadcast 192.168.1.191, hosts 192.168.1.129 to 192.168.1.190 — 62 addresses in total.

Common masks

PrefixMaskAddressesHosts
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/30255.255.255.25242

Usable hosts = 2^(32 − prefix) − 2, because the first address is the network and the last the broadcast. The exceptions are /31 (point-to-point links) and /32 (a single address).

Private addresses

Home and office networks use private ranges that never appear on the internet: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. The router translates them to a public address (NAT).

Frequently asked questions

What is a wildcard mask?

The inverse of the subnet mask: for 255.255.255.192 it is 0.0.0.63. It’s used in Cisco access lists and OSPF.

Does it support IPv6?

No — it works with IPv4 addresses in CIDR notation, such as 10.0.0.0/8.

See alsoWhole category

  1. IT-01Base64 encoder and decoderEncode text to Base64 or decode a Base64 string back to text.
  2. IT-02JSON formatter and validatorBeautify or minify JSON, check that it is valid and see exactly where a syntax error is.
  3. IT-03HEX / RGB / HSL color converterConvert colors between HEX, RGB and HSL with a live preview.
  4. IT-04SHA-256 hash generatorGenerate SHA-256, SHA-1 and SHA-512 hashes of any text.