Tech & wiring
IP Subnet Calculator: CIDR, Mask & Host Range
This calculator derives IPv4 network, broadcast, and usable host range from an IP address and CIDR prefix using bitwise AND/OR on the 32-bit mask, and shows IPv6 network bounds and address counts for prefixes up to /128. A binary visualizer and /8–/32 cheat sheet map prefix length to dotted masks. It does not scan your LAN or validate BGP routing—only the math for the address you enter.
By Jeff Beem
Updated
Subnet Calculator
1s = network bits (slate), 0s = host bits (green). A /24 uses exactly 3 octets.
/24 subnets in the same parent span as 192.168.*.*256 total
| Network | Usable host range | Broadcast |
|---|---|---|
| 192.168.0.0 | 192.168.0.1 - 192.168.0.254 | 192.168.0.255 |
| 192.168.1.0 | 192.168.1.1 - 192.168.1.254 | 192.168.1.255 |
| 192.168.2.0 | 192.168.2.1 - 192.168.2.254 | 192.168.2.255 |
| 192.168.3.0 | 192.168.3.1 - 192.168.3.254 | 192.168.3.255 |
| 192.168.4.0 | 192.168.4.1 - 192.168.4.254 | 192.168.4.255 |
| 192.168.5.0 | 192.168.5.1 - 192.168.5.254 | 192.168.5.255 |
| 192.168.6.0 | 192.168.6.1 - 192.168.6.254 | 192.168.6.255 |
| 192.168.7.0 | 192.168.7.1 - 192.168.7.254 | 192.168.7.255 |
| 192.168.8.0 | 192.168.8.1 - 192.168.8.254 | 192.168.8.255 |
| 192.168.9.0 | 192.168.9.1 - 192.168.9.254 | 192.168.9.255 |
| 192.168.10.0 | 192.168.10.1 - 192.168.10.254 | 192.168.10.255 |
| 192.168.11.0 | 192.168.11.1 - 192.168.11.254 | 192.168.11.255 |
| 192.168.12.0 | 192.168.12.1 - 192.168.12.254 | 192.168.12.255 |
| 192.168.13.0 | 192.168.13.1 - 192.168.13.254 | 192.168.13.255 |
| 192.168.14.0 | 192.168.14.1 - 192.168.14.254 | 192.168.14.255 |
| 192.168.15.0 | 192.168.15.1 - 192.168.15.254 | 192.168.15.255 |
| 192.168.16.0 | 192.168.16.1 - 192.168.16.254 | 192.168.16.255 |
| 192.168.17.0 | 192.168.17.1 - 192.168.17.254 | 192.168.17.255 |
| 192.168.18.0 | 192.168.18.1 - 192.168.18.254 | 192.168.18.255 |
| 192.168.19.0 | 192.168.19.1 - 192.168.19.254 | 192.168.19.255 |
| 192.168.20.0 | 192.168.20.1 - 192.168.20.254 | 192.168.20.255 |
| 192.168.21.0 | 192.168.21.1 - 192.168.21.254 | 192.168.21.255 |
| 192.168.22.0 | 192.168.22.1 - 192.168.22.254 | 192.168.22.255 |
| 192.168.23.0 | 192.168.23.1 - 192.168.23.254 | 192.168.23.255 |
| 192.168.24.0 | 192.168.24.1 - 192.168.24.254 | 192.168.24.255 |
| 192.168.25.0 | 192.168.25.1 - 192.168.25.254 | 192.168.25.255 |
| 192.168.26.0 | 192.168.26.1 - 192.168.26.254 | 192.168.26.255 |
| 192.168.27.0 | 192.168.27.1 - 192.168.27.254 | 192.168.27.255 |
| 192.168.28.0 | 192.168.28.1 - 192.168.28.254 | 192.168.28.255 |
| 192.168.29.0 | 192.168.29.1 - 192.168.29.254 | 192.168.29.255 |
| 192.168.30.0 | 192.168.30.1 - 192.168.30.254 | 192.168.30.255 |
| 192.168.31.0 | 192.168.31.1 - 192.168.31.254 | 192.168.31.255 |
| 192.168.32.0 | 192.168.32.1 - 192.168.32.254 | 192.168.32.255 |
| 192.168.33.0 | 192.168.33.1 - 192.168.33.254 | 192.168.33.255 |
| 192.168.34.0 | 192.168.34.1 - 192.168.34.254 | 192.168.34.255 |
| 192.168.35.0 | 192.168.35.1 - 192.168.35.254 | 192.168.35.255 |
| 192.168.36.0 | 192.168.36.1 - 192.168.36.254 | 192.168.36.255 |
| 192.168.37.0 | 192.168.37.1 - 192.168.37.254 | 192.168.37.255 |
| 192.168.38.0 | 192.168.38.1 - 192.168.38.254 | 192.168.38.255 |
| 192.168.39.0 | 192.168.39.1 - 192.168.39.254 | 192.168.39.255 |
| 192.168.40.0 | 192.168.40.1 - 192.168.40.254 | 192.168.40.255 |
| 192.168.41.0 | 192.168.41.1 - 192.168.41.254 | 192.168.41.255 |
| 192.168.42.0 | 192.168.42.1 - 192.168.42.254 | 192.168.42.255 |
| 192.168.43.0 | 192.168.43.1 - 192.168.43.254 | 192.168.43.255 |
| 192.168.44.0 | 192.168.44.1 - 192.168.44.254 | 192.168.44.255 |
| 192.168.45.0 | 192.168.45.1 - 192.168.45.254 | 192.168.45.255 |
| 192.168.46.0 | 192.168.46.1 - 192.168.46.254 | 192.168.46.255 |
| 192.168.47.0 | 192.168.47.1 - 192.168.47.254 | 192.168.47.255 |
| 192.168.48.0 | 192.168.48.1 - 192.168.48.254 | 192.168.48.255 |
| 192.168.49.0 | 192.168.49.1 - 192.168.49.254 | 192.168.49.255 |
| 192.168.50.0 | 192.168.50.1 - 192.168.50.254 | 192.168.50.255 |
| 192.168.51.0 | 192.168.51.1 - 192.168.51.254 | 192.168.51.255 |
| 192.168.52.0 | 192.168.52.1 - 192.168.52.254 | 192.168.52.255 |
| 192.168.53.0 | 192.168.53.1 - 192.168.53.254 | 192.168.53.255 |
| 192.168.54.0 | 192.168.54.1 - 192.168.54.254 | 192.168.54.255 |
| 192.168.55.0 | 192.168.55.1 - 192.168.55.254 | 192.168.55.255 |
| 192.168.56.0 | 192.168.56.1 - 192.168.56.254 | 192.168.56.255 |
| 192.168.57.0 | 192.168.57.1 - 192.168.57.254 | 192.168.57.255 |
| 192.168.58.0 | 192.168.58.1 - 192.168.58.254 | 192.168.58.255 |
| 192.168.59.0 | 192.168.59.1 - 192.168.59.254 | 192.168.59.255 |
| 192.168.60.0 | 192.168.60.1 - 192.168.60.254 | 192.168.60.255 |
| 192.168.61.0 | 192.168.61.1 - 192.168.61.254 | 192.168.61.255 |
| 192.168.62.0 | 192.168.62.1 - 192.168.62.254 | 192.168.62.255 |
| 192.168.63.0 | 192.168.63.1 - 192.168.63.254 | 192.168.63.255 |
| 192.168.64.0 | 192.168.64.1 - 192.168.64.254 | 192.168.64.255 |
| 192.168.65.0 | 192.168.65.1 - 192.168.65.254 | 192.168.65.255 |
| 192.168.66.0 | 192.168.66.1 - 192.168.66.254 | 192.168.66.255 |
| 192.168.67.0 | 192.168.67.1 - 192.168.67.254 | 192.168.67.255 |
| 192.168.68.0 | 192.168.68.1 - 192.168.68.254 | 192.168.68.255 |
| 192.168.69.0 | 192.168.69.1 - 192.168.69.254 | 192.168.69.255 |
| 192.168.70.0 | 192.168.70.1 - 192.168.70.254 | 192.168.70.255 |
| 192.168.71.0 | 192.168.71.1 - 192.168.71.254 | 192.168.71.255 |
| 192.168.72.0 | 192.168.72.1 - 192.168.72.254 | 192.168.72.255 |
| 192.168.73.0 | 192.168.73.1 - 192.168.73.254 | 192.168.73.255 |
| 192.168.74.0 | 192.168.74.1 - 192.168.74.254 | 192.168.74.255 |
| 192.168.75.0 | 192.168.75.1 - 192.168.75.254 | 192.168.75.255 |
| 192.168.76.0 | 192.168.76.1 - 192.168.76.254 | 192.168.76.255 |
| 192.168.77.0 | 192.168.77.1 - 192.168.77.254 | 192.168.77.255 |
| 192.168.78.0 | 192.168.78.1 - 192.168.78.254 | 192.168.78.255 |
| 192.168.79.0 | 192.168.79.1 - 192.168.79.254 | 192.168.79.255 |
| 192.168.80.0 | 192.168.80.1 - 192.168.80.254 | 192.168.80.255 |
| 192.168.81.0 | 192.168.81.1 - 192.168.81.254 | 192.168.81.255 |
| 192.168.82.0 | 192.168.82.1 - 192.168.82.254 | 192.168.82.255 |
| 192.168.83.0 | 192.168.83.1 - 192.168.83.254 | 192.168.83.255 |
| 192.168.84.0 | 192.168.84.1 - 192.168.84.254 | 192.168.84.255 |
| 192.168.85.0 | 192.168.85.1 - 192.168.85.254 | 192.168.85.255 |
| 192.168.86.0 | 192.168.86.1 - 192.168.86.254 | 192.168.86.255 |
| 192.168.87.0 | 192.168.87.1 - 192.168.87.254 | 192.168.87.255 |
| 192.168.88.0 | 192.168.88.1 - 192.168.88.254 | 192.168.88.255 |
| 192.168.89.0 | 192.168.89.1 - 192.168.89.254 | 192.168.89.255 |
| 192.168.90.0 | 192.168.90.1 - 192.168.90.254 | 192.168.90.255 |
| 192.168.91.0 | 192.168.91.1 - 192.168.91.254 | 192.168.91.255 |
| 192.168.92.0 | 192.168.92.1 - 192.168.92.254 | 192.168.92.255 |
| 192.168.93.0 | 192.168.93.1 - 192.168.93.254 | 192.168.93.255 |
| 192.168.94.0 | 192.168.94.1 - 192.168.94.254 | 192.168.94.255 |
| 192.168.95.0 | 192.168.95.1 - 192.168.95.254 | 192.168.95.255 |
| 192.168.96.0 | 192.168.96.1 - 192.168.96.254 | 192.168.96.255 |
| 192.168.97.0 | 192.168.97.1 - 192.168.97.254 | 192.168.97.255 |
| 192.168.98.0 | 192.168.98.1 - 192.168.98.254 | 192.168.98.255 |
| 192.168.99.0 | 192.168.99.1 - 192.168.99.254 | 192.168.99.255 |
| 192.168.100.0 | 192.168.100.1 - 192.168.100.254 | 192.168.100.255 |
| 192.168.101.0 | 192.168.101.1 - 192.168.101.254 | 192.168.101.255 |
| 192.168.102.0 | 192.168.102.1 - 192.168.102.254 | 192.168.102.255 |
| 192.168.103.0 | 192.168.103.1 - 192.168.103.254 | 192.168.103.255 |
| 192.168.104.0 | 192.168.104.1 - 192.168.104.254 | 192.168.104.255 |
| 192.168.105.0 | 192.168.105.1 - 192.168.105.254 | 192.168.105.255 |
| 192.168.106.0 | 192.168.106.1 - 192.168.106.254 | 192.168.106.255 |
| 192.168.107.0 | 192.168.107.1 - 192.168.107.254 | 192.168.107.255 |
| 192.168.108.0 | 192.168.108.1 - 192.168.108.254 | 192.168.108.255 |
| 192.168.109.0 | 192.168.109.1 - 192.168.109.254 | 192.168.109.255 |
| 192.168.110.0 | 192.168.110.1 - 192.168.110.254 | 192.168.110.255 |
| 192.168.111.0 | 192.168.111.1 - 192.168.111.254 | 192.168.111.255 |
| 192.168.112.0 | 192.168.112.1 - 192.168.112.254 | 192.168.112.255 |
| 192.168.113.0 | 192.168.113.1 - 192.168.113.254 | 192.168.113.255 |
| 192.168.114.0 | 192.168.114.1 - 192.168.114.254 | 192.168.114.255 |
| 192.168.115.0 | 192.168.115.1 - 192.168.115.254 | 192.168.115.255 |
| 192.168.116.0 | 192.168.116.1 - 192.168.116.254 | 192.168.116.255 |
| 192.168.117.0 | 192.168.117.1 - 192.168.117.254 | 192.168.117.255 |
| 192.168.118.0 | 192.168.118.1 - 192.168.118.254 | 192.168.118.255 |
| 192.168.119.0 | 192.168.119.1 - 192.168.119.254 | 192.168.119.255 |
| 192.168.120.0 | 192.168.120.1 - 192.168.120.254 | 192.168.120.255 |
| 192.168.121.0 | 192.168.121.1 - 192.168.121.254 | 192.168.121.255 |
| 192.168.122.0 | 192.168.122.1 - 192.168.122.254 | 192.168.122.255 |
| 192.168.123.0 | 192.168.123.1 - 192.168.123.254 | 192.168.123.255 |
| 192.168.124.0 | 192.168.124.1 - 192.168.124.254 | 192.168.124.255 |
| 192.168.125.0 | 192.168.125.1 - 192.168.125.254 | 192.168.125.255 |
| 192.168.126.0 | 192.168.126.1 - 192.168.126.254 | 192.168.126.255 |
| 192.168.127.0 | 192.168.127.1 - 192.168.127.254 | 192.168.127.255 |
| 192.168.128.0 | 192.168.128.1 - 192.168.128.254 | 192.168.128.255 |
| 192.168.129.0 | 192.168.129.1 - 192.168.129.254 | 192.168.129.255 |
| 192.168.130.0 | 192.168.130.1 - 192.168.130.254 | 192.168.130.255 |
| 192.168.131.0 | 192.168.131.1 - 192.168.131.254 | 192.168.131.255 |
| 192.168.132.0 | 192.168.132.1 - 192.168.132.254 | 192.168.132.255 |
| 192.168.133.0 | 192.168.133.1 - 192.168.133.254 | 192.168.133.255 |
| 192.168.134.0 | 192.168.134.1 - 192.168.134.254 | 192.168.134.255 |
| 192.168.135.0 | 192.168.135.1 - 192.168.135.254 | 192.168.135.255 |
| 192.168.136.0 | 192.168.136.1 - 192.168.136.254 | 192.168.136.255 |
| 192.168.137.0 | 192.168.137.1 - 192.168.137.254 | 192.168.137.255 |
| 192.168.138.0 | 192.168.138.1 - 192.168.138.254 | 192.168.138.255 |
| 192.168.139.0 | 192.168.139.1 - 192.168.139.254 | 192.168.139.255 |
| 192.168.140.0 | 192.168.140.1 - 192.168.140.254 | 192.168.140.255 |
| 192.168.141.0 | 192.168.141.1 - 192.168.141.254 | 192.168.141.255 |
| 192.168.142.0 | 192.168.142.1 - 192.168.142.254 | 192.168.142.255 |
| 192.168.143.0 | 192.168.143.1 - 192.168.143.254 | 192.168.143.255 |
| 192.168.144.0 | 192.168.144.1 - 192.168.144.254 | 192.168.144.255 |
| 192.168.145.0 | 192.168.145.1 - 192.168.145.254 | 192.168.145.255 |
| 192.168.146.0 | 192.168.146.1 - 192.168.146.254 | 192.168.146.255 |
| 192.168.147.0 | 192.168.147.1 - 192.168.147.254 | 192.168.147.255 |
| 192.168.148.0 | 192.168.148.1 - 192.168.148.254 | 192.168.148.255 |
| 192.168.149.0 | 192.168.149.1 - 192.168.149.254 | 192.168.149.255 |
| 192.168.150.0 | 192.168.150.1 - 192.168.150.254 | 192.168.150.255 |
| 192.168.151.0 | 192.168.151.1 - 192.168.151.254 | 192.168.151.255 |
| 192.168.152.0 | 192.168.152.1 - 192.168.152.254 | 192.168.152.255 |
| 192.168.153.0 | 192.168.153.1 - 192.168.153.254 | 192.168.153.255 |
| 192.168.154.0 | 192.168.154.1 - 192.168.154.254 | 192.168.154.255 |
| 192.168.155.0 | 192.168.155.1 - 192.168.155.254 | 192.168.155.255 |
| 192.168.156.0 | 192.168.156.1 - 192.168.156.254 | 192.168.156.255 |
| 192.168.157.0 | 192.168.157.1 - 192.168.157.254 | 192.168.157.255 |
| 192.168.158.0 | 192.168.158.1 - 192.168.158.254 | 192.168.158.255 |
| 192.168.159.0 | 192.168.159.1 - 192.168.159.254 | 192.168.159.255 |
| 192.168.160.0 | 192.168.160.1 - 192.168.160.254 | 192.168.160.255 |
| 192.168.161.0 | 192.168.161.1 - 192.168.161.254 | 192.168.161.255 |
| 192.168.162.0 | 192.168.162.1 - 192.168.162.254 | 192.168.162.255 |
| 192.168.163.0 | 192.168.163.1 - 192.168.163.254 | 192.168.163.255 |
| 192.168.164.0 | 192.168.164.1 - 192.168.164.254 | 192.168.164.255 |
| 192.168.165.0 | 192.168.165.1 - 192.168.165.254 | 192.168.165.255 |
| 192.168.166.0 | 192.168.166.1 - 192.168.166.254 | 192.168.166.255 |
| 192.168.167.0 | 192.168.167.1 - 192.168.167.254 | 192.168.167.255 |
| 192.168.168.0 | 192.168.168.1 - 192.168.168.254 | 192.168.168.255 |
| 192.168.169.0 | 192.168.169.1 - 192.168.169.254 | 192.168.169.255 |
| 192.168.170.0 | 192.168.170.1 - 192.168.170.254 | 192.168.170.255 |
| 192.168.171.0 | 192.168.171.1 - 192.168.171.254 | 192.168.171.255 |
| 192.168.172.0 | 192.168.172.1 - 192.168.172.254 | 192.168.172.255 |
| 192.168.173.0 | 192.168.173.1 - 192.168.173.254 | 192.168.173.255 |
| 192.168.174.0 | 192.168.174.1 - 192.168.174.254 | 192.168.174.255 |
| 192.168.175.0 | 192.168.175.1 - 192.168.175.254 | 192.168.175.255 |
| 192.168.176.0 | 192.168.176.1 - 192.168.176.254 | 192.168.176.255 |
| 192.168.177.0 | 192.168.177.1 - 192.168.177.254 | 192.168.177.255 |
| 192.168.178.0 | 192.168.178.1 - 192.168.178.254 | 192.168.178.255 |
| 192.168.179.0 | 192.168.179.1 - 192.168.179.254 | 192.168.179.255 |
| 192.168.180.0 | 192.168.180.1 - 192.168.180.254 | 192.168.180.255 |
| 192.168.181.0 | 192.168.181.1 - 192.168.181.254 | 192.168.181.255 |
| 192.168.182.0 | 192.168.182.1 - 192.168.182.254 | 192.168.182.255 |
| 192.168.183.0 | 192.168.183.1 - 192.168.183.254 | 192.168.183.255 |
| 192.168.184.0 | 192.168.184.1 - 192.168.184.254 | 192.168.184.255 |
| 192.168.185.0 | 192.168.185.1 - 192.168.185.254 | 192.168.185.255 |
| 192.168.186.0 | 192.168.186.1 - 192.168.186.254 | 192.168.186.255 |
| 192.168.187.0 | 192.168.187.1 - 192.168.187.254 | 192.168.187.255 |
| 192.168.188.0 | 192.168.188.1 - 192.168.188.254 | 192.168.188.255 |
| 192.168.189.0 | 192.168.189.1 - 192.168.189.254 | 192.168.189.255 |
| 192.168.190.0 | 192.168.190.1 - 192.168.190.254 | 192.168.190.255 |
| 192.168.191.0 | 192.168.191.1 - 192.168.191.254 | 192.168.191.255 |
| 192.168.192.0 | 192.168.192.1 - 192.168.192.254 | 192.168.192.255 |
| 192.168.193.0 | 192.168.193.1 - 192.168.193.254 | 192.168.193.255 |
| 192.168.194.0 | 192.168.194.1 - 192.168.194.254 | 192.168.194.255 |
| 192.168.195.0 | 192.168.195.1 - 192.168.195.254 | 192.168.195.255 |
| 192.168.196.0 | 192.168.196.1 - 192.168.196.254 | 192.168.196.255 |
| 192.168.197.0 | 192.168.197.1 - 192.168.197.254 | 192.168.197.255 |
| 192.168.198.0 | 192.168.198.1 - 192.168.198.254 | 192.168.198.255 |
| 192.168.199.0 | 192.168.199.1 - 192.168.199.254 | 192.168.199.255 |
| 192.168.200.0 | 192.168.200.1 - 192.168.200.254 | 192.168.200.255 |
| 192.168.201.0 | 192.168.201.1 - 192.168.201.254 | 192.168.201.255 |
| 192.168.202.0 | 192.168.202.1 - 192.168.202.254 | 192.168.202.255 |
| 192.168.203.0 | 192.168.203.1 - 192.168.203.254 | 192.168.203.255 |
| 192.168.204.0 | 192.168.204.1 - 192.168.204.254 | 192.168.204.255 |
| 192.168.205.0 | 192.168.205.1 - 192.168.205.254 | 192.168.205.255 |
| 192.168.206.0 | 192.168.206.1 - 192.168.206.254 | 192.168.206.255 |
| 192.168.207.0 | 192.168.207.1 - 192.168.207.254 | 192.168.207.255 |
| 192.168.208.0 | 192.168.208.1 - 192.168.208.254 | 192.168.208.255 |
| 192.168.209.0 | 192.168.209.1 - 192.168.209.254 | 192.168.209.255 |
| 192.168.210.0 | 192.168.210.1 - 192.168.210.254 | 192.168.210.255 |
| 192.168.211.0 | 192.168.211.1 - 192.168.211.254 | 192.168.211.255 |
| 192.168.212.0 | 192.168.212.1 - 192.168.212.254 | 192.168.212.255 |
| 192.168.213.0 | 192.168.213.1 - 192.168.213.254 | 192.168.213.255 |
| 192.168.214.0 | 192.168.214.1 - 192.168.214.254 | 192.168.214.255 |
| 192.168.215.0 | 192.168.215.1 - 192.168.215.254 | 192.168.215.255 |
| 192.168.216.0 | 192.168.216.1 - 192.168.216.254 | 192.168.216.255 |
| 192.168.217.0 | 192.168.217.1 - 192.168.217.254 | 192.168.217.255 |
| 192.168.218.0 | 192.168.218.1 - 192.168.218.254 | 192.168.218.255 |
| 192.168.219.0 | 192.168.219.1 - 192.168.219.254 | 192.168.219.255 |
| 192.168.220.0 | 192.168.220.1 - 192.168.220.254 | 192.168.220.255 |
| 192.168.221.0 | 192.168.221.1 - 192.168.221.254 | 192.168.221.255 |
| 192.168.222.0 | 192.168.222.1 - 192.168.222.254 | 192.168.222.255 |
| 192.168.223.0 | 192.168.223.1 - 192.168.223.254 | 192.168.223.255 |
| 192.168.224.0 | 192.168.224.1 - 192.168.224.254 | 192.168.224.255 |
| 192.168.225.0 | 192.168.225.1 - 192.168.225.254 | 192.168.225.255 |
| 192.168.226.0 | 192.168.226.1 - 192.168.226.254 | 192.168.226.255 |
| 192.168.227.0 | 192.168.227.1 - 192.168.227.254 | 192.168.227.255 |
| 192.168.228.0 | 192.168.228.1 - 192.168.228.254 | 192.168.228.255 |
| 192.168.229.0 | 192.168.229.1 - 192.168.229.254 | 192.168.229.255 |
| 192.168.230.0 | 192.168.230.1 - 192.168.230.254 | 192.168.230.255 |
| 192.168.231.0 | 192.168.231.1 - 192.168.231.254 | 192.168.231.255 |
| 192.168.232.0 | 192.168.232.1 - 192.168.232.254 | 192.168.232.255 |
| 192.168.233.0 | 192.168.233.1 - 192.168.233.254 | 192.168.233.255 |
| 192.168.234.0 | 192.168.234.1 - 192.168.234.254 | 192.168.234.255 |
| 192.168.235.0 | 192.168.235.1 - 192.168.235.254 | 192.168.235.255 |
| 192.168.236.0 | 192.168.236.1 - 192.168.236.254 | 192.168.236.255 |
| 192.168.237.0 | 192.168.237.1 - 192.168.237.254 | 192.168.237.255 |
| 192.168.238.0 | 192.168.238.1 - 192.168.238.254 | 192.168.238.255 |
| 192.168.239.0 | 192.168.239.1 - 192.168.239.254 | 192.168.239.255 |
| 192.168.240.0 | 192.168.240.1 - 192.168.240.254 | 192.168.240.255 |
| 192.168.241.0 | 192.168.241.1 - 192.168.241.254 | 192.168.241.255 |
| 192.168.242.0 | 192.168.242.1 - 192.168.242.254 | 192.168.242.255 |
| 192.168.243.0 | 192.168.243.1 - 192.168.243.254 | 192.168.243.255 |
| 192.168.244.0 | 192.168.244.1 - 192.168.244.254 | 192.168.244.255 |
| 192.168.245.0 | 192.168.245.1 - 192.168.245.254 | 192.168.245.255 |
| 192.168.246.0 | 192.168.246.1 - 192.168.246.254 | 192.168.246.255 |
| 192.168.247.0 | 192.168.247.1 - 192.168.247.254 | 192.168.247.255 |
| 192.168.248.0 | 192.168.248.1 - 192.168.248.254 | 192.168.248.255 |
| 192.168.249.0 | 192.168.249.1 - 192.168.249.254 | 192.168.249.255 |
| 192.168.250.0 | 192.168.250.1 - 192.168.250.254 | 192.168.250.255 |
| 192.168.251.0 | 192.168.251.1 - 192.168.251.254 | 192.168.251.255 |
| 192.168.252.0 | 192.168.252.1 - 192.168.252.254 | 192.168.252.255 |
| 192.168.253.0 | 192.168.253.1 - 192.168.253.254 | 192.168.253.255 |
| 192.168.254.0 | 192.168.254.1 - 192.168.254.254 | 192.168.254.255 |
| 192.168.255.0 | 192.168.255.1 - 192.168.255.254 | 192.168.255.255 |
How to use this calculator
Enter an IPv4 address and pick a CIDR prefix with the dropdown or slider. The results card shows network, broadcast, usable range, mask, and host counts; binary rows under the inputs mark network bits blue and host bits green. Detect My IP fills your public address on load; Clear resets to 192.168.1.0/24. Click a row in the Typical subnets table to apply /8–/32 prefixes or filter by host count. IPv4 math is bitwise AND/OR on a 32-bit mask; /31 and /32 are special cases with one or zero usable hosts. This tool does not ping your LAN or validate routing tables.
Typical subnets
Click a row to apply that prefix to the calculator. Search by prefix (/24), mask, or hosts (e.g. 500).
| Prefix | Subnet mask | Usable hosts |
|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 |
| /9 | 255.128.0.0 | 8,388,606 |
| /10 | 255.192.0.0 | 4,194,302 |
| /11 | 255.224.0.0 | 2,097,150 |
| /12 | 255.240.0.0 | 1,048,574 |
| /13 | 255.248.0.0 | 524,286 |
| /14 | 255.252.0.0 | 262,142 |
| /15 | 255.254.0.0 | 131,070 |
| /16 | 255.255.0.0 | 65,534 |
| /17 | 255.255.128.0 | 32,766 |
| /18 | 255.255.192.0 | 16,382 |
| /19 | 255.255.224.0 | 8,190 |
| /20 | 255.255.240.0 | 4,094 |
| /21 | 255.255.248.0 | 2,046 |
| /22 | 255.255.252.0 | 1,022 |
| /23 | 255.255.254.0 | 510 |
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 |
| /31 | 255.255.255.254 | 2 |
| /32 | 255.255.255.255 | 0 |
Reading the subnet results panel
Match the dark results card to your inputs: network, broadcast, and usable range on IPv4; network and range end on IPv6. Binary rows under the form show where the prefix splits network from host bits.
Same subnet, different host IP
Prefix cheat sheet, slider, and class filter
IPv6 tab: 2001:db8::1/64
Sibling subnet table (IPv4)
IP subnet calculator: CIDR, mask, and host range
Bitwise IPv4 and IPv6 subnet math in the browser. Does not ping networks, scan LANs, or validate BGP routing.
What this calculator does
How the math works
- IPv6 link size:/64 is the usual LAN prefix (SLAAC expects it on most interfaces). /48 and /56 are common allocation sizes from ISPs—the quick buttons in the IPv6 sidebar apply those prefixes.
- Hex and hextets:Each hextet is 16 bits (four hex digits). Reading expanded form makes prefix boundaries visible when compressed :: notation hides zero runs.
Edge cases and enumeration limits
- /31 and /32:/32 returns a single host—network and broadcast collapse to the same address. /31 shows two usable hosts in this tool (RFC 3021 point-to-point links). There is no /0 in the dropdown.
- Sibling subnet table:Lists equal-sized /n subnets sharing the same enclosing /8, /16, or /24 parent as your input. A /26 inside 192.168.1.0/24 yields four rows (.0, .64, .128, .192). Output stops at 512 rows when the math would produce more; the header still shows the full count.
- Class filter vs CIDR:Class A/B/C only changes dropdown bounds (/8–/30, /16–/30, /24–/30). It does not validate whether your address is “really” classful—modern routing ignores that label.
- Invalid or detected IPs:Malformed IPv4 shows a prompt instead of results. Public-IP detection on load uses an external API; failure falls back to 192.168.1.1 with an error note—Clear restores the private example.
IP Subnet Calculator FAQ
How does this page compute the network and broadcast addresses?
Why does a /24 show 254 usable hosts instead of 256?
What do the blue and green bits in the binary visualizer mean?
What changes when I switch to the IPv6 tab?
What does the network class filter do?
Why did my IP address change when the page loaded?
What are the integer, hex, and reverse-DNS fields for?
What is the wildcard mask on the results card?
When should I trust the /31 host count?
How is this different from the Binary Calculator?
Mathematical Reference Note
Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.
Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.
Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.