Skip to content

Other

IP Subnet Calculator

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

Protocol
Network class

Network

192.168.29.0/24

254 usable hosts, from 192.168.29.1 to 192.168.29.254.

IP address
192.168.29.10
Network address
192.168.29.0
Usable host range
192.168.29.1 - 192.168.29.254
Broadcast address
192.168.29.255
Total addresses
256
Usable hosts
254
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Binary subnet mask
11111111.11111111.11111111.00000000
Class of this mask
C
Class of the address
C
CIDR notation
/24
IP type
Private
Short form
192.168.29.10 /24
Binary ID
11000000101010000001110100001010
Integer ID
3232242954
Hex ID
0xc0a81d0a
Reverse DNS
10.29.168.192.in-addr.arpa
IPv4-mapped IPv6
::ffff:c0a8:1d0a
6to4 prefix
2002:c0a8:1d0a::/48

A private address (RFC 1918). It works inside your home or office network and is not routed on the internet. Broadband and Wi-Fi routers in India usually hand out 192.168.0.x, 192.168.1.x or 192.168.29.x.

Typical IPv4 subnets (/1 to /32)

Every IPv4 prefix with its mask, wildcard, usable hosts and class; the prefix you chose is highlighted
PrefixMaskWildcardUsable hostsClass
/1128.0.0.0127.255.255.2552,14,74,83,646None
/2192.0.0.063.255.255.2551,07,37,41,822None
/3224.0.0.031.255.255.25553,68,70,910None
/4240.0.0.015.255.255.25526,84,35,454None
/5248.0.0.07.255.255.25513,42,17,726None
/6252.0.0.03.255.255.2556,71,08,862None
/7254.0.0.01.255.255.2553,35,54,430None
/8255.0.0.00.255.255.2551,67,77,214A
/9255.128.0.00.127.255.25583,88,606A
/10255.192.0.00.63.255.25541,94,302A
/11255.224.0.00.31.255.25520,97,150A
/12255.240.0.00.15.255.25510,48,574A
/13255.248.0.00.7.255.2555,24,286A
/14255.252.0.00.3.255.2552,62,142A
/15255.254.0.00.1.255.2551,31,070A
/16255.255.0.00.0.255.25565,534B
/17255.255.128.00.0.127.25532,766B
/18255.255.192.00.0.63.25516,382B
/19255.255.224.00.0.31.2558,190B
/20255.255.240.00.0.15.2554,094B
/21255.255.248.00.0.7.2552,046B
/22255.255.252.00.0.3.2551,022B
/23255.255.254.00.0.1.255510B
/24255.255.255.00.0.0.255254C
/25255.255.255.1280.0.0.127126C
/26255.255.255.1920.0.0.6362C
/27255.255.255.2240.0.0.3130C
/28255.255.255.2400.0.0.1514C
/29255.255.255.2480.0.0.76C
/30255.255.255.2520.0.0.32C
/31255.255.255.2540.0.0.10C
/32255.255.255.2550.0.0.00C

How to use

  1. Choose IPv4 or IPv6. For IPv4, optionally pick a network class (A, B or C) to hide masks shorter than that class starts at.
  2. Pick the subnet: the mask with its prefix length for IPv4, or the prefix length for IPv6. You can also type the address with its prefix, like 10.0.0.1/8, and the prefix list follows.
  3. Enter the IP address. The results update as you type.
  4. Read the network and broadcast address, the usable host range, the number of hosts, the masks and the other forms of the address. For most IPv4 masks, the table below lists every subnet of that size; the row with your address is highlighted.

Formula

An IPv4 address is a 32-bit number. The subnet mask has the first prefix bits set to 1. Network address = address AND mask; wildcard = NOT mask; broadcast = network OR wildcard; total addresses = 2^(32 − prefix); usable hosts = total − 2 (the network and broadcast addresses are not given to hosts). IPv6 works the same way on 128 bits, without a broadcast address: total addresses = 2^(128 − prefix) and the last address is network OR (2^(128 − prefix) − 1).

Example

A home router at 192.168.29.10 with the mask 255.255.255.0 (/24): the network is 192.168.29.0, the usable hosts run from 192.168.29.1 to 192.168.29.254, the broadcast address is 192.168.29.255 and there are 254 usable hosts. Splitting the same office into /26 subnets gives four networks of 62 hosts each.

The calculator counts usable hosts the classic way: a /31 or /32 shows 0 usable hosts, although routers can use both addresses of a /31 on a point-to-point link (RFC 3021). Private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918); 100.64.0.0/10 is shared space that internet providers use for carrier-grade NAT, which many mobile and broadband connections in India sit behind. Everything is calculated in your browser; the addresses you type are never sent anywhere.