Subnet / CIDR Calculator

Type an IPv4 block such as 10.0.0.0/16 to get the network, broadcast, host range, masks and host counts, then split it into equal subnets for VPCs, Kubernetes or your LAN.

Also accepts a netmask (10.0.0.0 255.255.0.0) or a bare IP.

Block
10.0.0.0/1665,534usable hosts
Private (RFC 1918)AWS VPC subnet: 65,531 usable
Network address
10.0.0.0
Broadcast address
10.0.255.255
First usable host
10.0.0.1
Last usable host
10.0.255.254
Subnet mask
255.255.0.0
Wildcard mask
0.0.255.255
Total addresses
65,536
Usable hosts
65,534
Mask in binary
11111111.11111111.00000000.00000000(16 network bits, 16 host bits)

Split 10.0.0.0/16 into

256 subnets
#SubnetUsable rangeBroadcastHosts
110.0.0.0/2410.0.0.1 – 10.0.0.25410.0.0.255254
210.0.1.0/2410.0.1.1 – 10.0.1.25410.0.1.255254
310.0.2.0/2410.0.2.1 – 10.0.2.25410.0.2.255254
410.0.3.0/2410.0.3.1 – 10.0.3.25410.0.3.255254
510.0.4.0/2410.0.4.1 – 10.0.4.25410.0.4.255254
610.0.5.0/2410.0.5.1 – 10.0.5.25410.0.5.255254
710.0.6.0/2410.0.6.1 – 10.0.6.25410.0.6.255254
810.0.7.0/2410.0.7.1 – 10.0.7.25410.0.7.255254
910.0.8.0/2410.0.8.1 – 10.0.8.25410.0.8.255254
1010.0.9.0/2410.0.9.1 – 10.0.9.25410.0.9.255254
1110.0.10.0/2410.0.10.1 – 10.0.10.25410.0.10.255254
1210.0.11.0/2410.0.11.1 – 10.0.11.25410.0.11.255254
1310.0.12.0/2410.0.12.1 – 10.0.12.25410.0.12.255254
1410.0.13.0/2410.0.13.1 – 10.0.13.25410.0.13.255254
1510.0.14.0/2410.0.14.1 – 10.0.14.25410.0.14.255254
1610.0.15.0/2410.0.15.1 – 10.0.15.25410.0.15.255254
1710.0.16.0/2410.0.16.1 – 10.0.16.25410.0.16.255254
1810.0.17.0/2410.0.17.1 – 10.0.17.25410.0.17.255254
1910.0.18.0/2410.0.18.1 – 10.0.18.25410.0.18.255254
2010.0.19.0/2410.0.19.1 – 10.0.19.25410.0.19.255254
2110.0.20.0/2410.0.20.1 – 10.0.20.25410.0.20.255254
2210.0.21.0/2410.0.21.1 – 10.0.21.25410.0.21.255254
2310.0.22.0/2410.0.22.1 – 10.0.22.25410.0.22.255254
2410.0.23.0/2410.0.23.1 – 10.0.23.25410.0.23.255254
2510.0.24.0/2410.0.24.1 – 10.0.24.25410.0.24.255254
2610.0.25.0/2410.0.25.1 – 10.0.25.25410.0.25.255254
2710.0.26.0/2410.0.26.1 – 10.0.26.25410.0.26.255254
2810.0.27.0/2410.0.27.1 – 10.0.27.25410.0.27.255254
2910.0.28.0/2410.0.28.1 – 10.0.28.25410.0.28.255254
3010.0.29.0/2410.0.29.1 – 10.0.29.25410.0.29.255254
3110.0.30.0/2410.0.30.1 – 10.0.30.25410.0.30.255254
3210.0.31.0/2410.0.31.1 – 10.0.31.25410.0.31.255254
3310.0.32.0/2410.0.32.1 – 10.0.32.25410.0.32.255254
3410.0.33.0/2410.0.33.1 – 10.0.33.25410.0.33.255254
3510.0.34.0/2410.0.34.1 – 10.0.34.25410.0.34.255254
3610.0.35.0/2410.0.35.1 – 10.0.35.25410.0.35.255254
3710.0.36.0/2410.0.36.1 – 10.0.36.25410.0.36.255254
3810.0.37.0/2410.0.37.1 – 10.0.37.25410.0.37.255254
3910.0.38.0/2410.0.38.1 – 10.0.38.25410.0.38.255254
4010.0.39.0/2410.0.39.1 – 10.0.39.25410.0.39.255254
4110.0.40.0/2410.0.40.1 – 10.0.40.25410.0.40.255254
4210.0.41.0/2410.0.41.1 – 10.0.41.25410.0.41.255254
4310.0.42.0/2410.0.42.1 – 10.0.42.25410.0.42.255254
4410.0.43.0/2410.0.43.1 – 10.0.43.25410.0.43.255254
4510.0.44.0/2410.0.44.1 – 10.0.44.25410.0.44.255254
4610.0.45.0/2410.0.45.1 – 10.0.45.25410.0.45.255254
4710.0.46.0/2410.0.46.1 – 10.0.46.25410.0.46.255254
4810.0.47.0/2410.0.47.1 – 10.0.47.25410.0.47.255254
4910.0.48.0/2410.0.48.1 – 10.0.48.25410.0.48.255254
5010.0.49.0/2410.0.49.1 – 10.0.49.25410.0.49.255254
5110.0.50.0/2410.0.50.1 – 10.0.50.25410.0.50.255254
5210.0.51.0/2410.0.51.1 – 10.0.51.25410.0.51.255254
5310.0.52.0/2410.0.52.1 – 10.0.52.25410.0.52.255254
5410.0.53.0/2410.0.53.1 – 10.0.53.25410.0.53.255254
5510.0.54.0/2410.0.54.1 – 10.0.54.25410.0.54.255254
5610.0.55.0/2410.0.55.1 – 10.0.55.25410.0.55.255254
5710.0.56.0/2410.0.56.1 – 10.0.56.25410.0.56.255254
5810.0.57.0/2410.0.57.1 – 10.0.57.25410.0.57.255254
5910.0.58.0/2410.0.58.1 – 10.0.58.25410.0.58.255254
6010.0.59.0/2410.0.59.1 – 10.0.59.25410.0.59.255254
6110.0.60.0/2410.0.60.1 – 10.0.60.25410.0.60.255254
6210.0.61.0/2410.0.61.1 – 10.0.61.25410.0.61.255254
6310.0.62.0/2410.0.62.1 – 10.0.62.25410.0.62.255254
6410.0.63.0/2410.0.63.1 – 10.0.63.25410.0.63.255254
6510.0.64.0/2410.0.64.1 – 10.0.64.25410.0.64.255254
6610.0.65.0/2410.0.65.1 – 10.0.65.25410.0.65.255254
6710.0.66.0/2410.0.66.1 – 10.0.66.25410.0.66.255254
6810.0.67.0/2410.0.67.1 – 10.0.67.25410.0.67.255254
6910.0.68.0/2410.0.68.1 – 10.0.68.25410.0.68.255254
7010.0.69.0/2410.0.69.1 – 10.0.69.25410.0.69.255254
7110.0.70.0/2410.0.70.1 – 10.0.70.25410.0.70.255254
7210.0.71.0/2410.0.71.1 – 10.0.71.25410.0.71.255254
7310.0.72.0/2410.0.72.1 – 10.0.72.25410.0.72.255254
7410.0.73.0/2410.0.73.1 – 10.0.73.25410.0.73.255254
7510.0.74.0/2410.0.74.1 – 10.0.74.25410.0.74.255254
7610.0.75.0/2410.0.75.1 – 10.0.75.25410.0.75.255254
7710.0.76.0/2410.0.76.1 – 10.0.76.25410.0.76.255254
7810.0.77.0/2410.0.77.1 – 10.0.77.25410.0.77.255254
7910.0.78.0/2410.0.78.1 – 10.0.78.25410.0.78.255254
8010.0.79.0/2410.0.79.1 – 10.0.79.25410.0.79.255254
8110.0.80.0/2410.0.80.1 – 10.0.80.25410.0.80.255254
8210.0.81.0/2410.0.81.1 – 10.0.81.25410.0.81.255254
8310.0.82.0/2410.0.82.1 – 10.0.82.25410.0.82.255254
8410.0.83.0/2410.0.83.1 – 10.0.83.25410.0.83.255254
8510.0.84.0/2410.0.84.1 – 10.0.84.25410.0.84.255254
8610.0.85.0/2410.0.85.1 – 10.0.85.25410.0.85.255254
8710.0.86.0/2410.0.86.1 – 10.0.86.25410.0.86.255254
8810.0.87.0/2410.0.87.1 – 10.0.87.25410.0.87.255254
8910.0.88.0/2410.0.88.1 – 10.0.88.25410.0.88.255254
9010.0.89.0/2410.0.89.1 – 10.0.89.25410.0.89.255254
9110.0.90.0/2410.0.90.1 – 10.0.90.25410.0.90.255254
9210.0.91.0/2410.0.91.1 – 10.0.91.25410.0.91.255254
9310.0.92.0/2410.0.92.1 – 10.0.92.25410.0.92.255254
9410.0.93.0/2410.0.93.1 – 10.0.93.25410.0.93.255254
9510.0.94.0/2410.0.94.1 – 10.0.94.25410.0.94.255254
9610.0.95.0/2410.0.95.1 – 10.0.95.25410.0.95.255254
9710.0.96.0/2410.0.96.1 – 10.0.96.25410.0.96.255254
9810.0.97.0/2410.0.97.1 – 10.0.97.25410.0.97.255254
9910.0.98.0/2410.0.98.1 – 10.0.98.25410.0.98.255254
10010.0.99.0/2410.0.99.1 – 10.0.99.25410.0.99.255254
10110.0.100.0/2410.0.100.1 – 10.0.100.25410.0.100.255254
10210.0.101.0/2410.0.101.1 – 10.0.101.25410.0.101.255254
10310.0.102.0/2410.0.102.1 – 10.0.102.25410.0.102.255254
10410.0.103.0/2410.0.103.1 – 10.0.103.25410.0.103.255254
10510.0.104.0/2410.0.104.1 – 10.0.104.25410.0.104.255254
10610.0.105.0/2410.0.105.1 – 10.0.105.25410.0.105.255254
10710.0.106.0/2410.0.106.1 – 10.0.106.25410.0.106.255254
10810.0.107.0/2410.0.107.1 – 10.0.107.25410.0.107.255254
10910.0.108.0/2410.0.108.1 – 10.0.108.25410.0.108.255254
11010.0.109.0/2410.0.109.1 – 10.0.109.25410.0.109.255254
11110.0.110.0/2410.0.110.1 – 10.0.110.25410.0.110.255254
11210.0.111.0/2410.0.111.1 – 10.0.111.25410.0.111.255254
11310.0.112.0/2410.0.112.1 – 10.0.112.25410.0.112.255254
11410.0.113.0/2410.0.113.1 – 10.0.113.25410.0.113.255254
11510.0.114.0/2410.0.114.1 – 10.0.114.25410.0.114.255254
11610.0.115.0/2410.0.115.1 – 10.0.115.25410.0.115.255254
11710.0.116.0/2410.0.116.1 – 10.0.116.25410.0.116.255254
11810.0.117.0/2410.0.117.1 – 10.0.117.25410.0.117.255254
11910.0.118.0/2410.0.118.1 – 10.0.118.25410.0.118.255254
12010.0.119.0/2410.0.119.1 – 10.0.119.25410.0.119.255254
12110.0.120.0/2410.0.120.1 – 10.0.120.25410.0.120.255254
12210.0.121.0/2410.0.121.1 – 10.0.121.25410.0.121.255254
12310.0.122.0/2410.0.122.1 – 10.0.122.25410.0.122.255254
12410.0.123.0/2410.0.123.1 – 10.0.123.25410.0.123.255254
12510.0.124.0/2410.0.124.1 – 10.0.124.25410.0.124.255254
12610.0.125.0/2410.0.125.1 – 10.0.125.25410.0.125.255254
12710.0.126.0/2410.0.126.1 – 10.0.126.25410.0.126.255254
12810.0.127.0/2410.0.127.1 – 10.0.127.25410.0.127.255254
12910.0.128.0/2410.0.128.1 – 10.0.128.25410.0.128.255254
13010.0.129.0/2410.0.129.1 – 10.0.129.25410.0.129.255254
13110.0.130.0/2410.0.130.1 – 10.0.130.25410.0.130.255254
13210.0.131.0/2410.0.131.1 – 10.0.131.25410.0.131.255254
13310.0.132.0/2410.0.132.1 – 10.0.132.25410.0.132.255254
13410.0.133.0/2410.0.133.1 – 10.0.133.25410.0.133.255254
13510.0.134.0/2410.0.134.1 – 10.0.134.25410.0.134.255254
13610.0.135.0/2410.0.135.1 – 10.0.135.25410.0.135.255254
13710.0.136.0/2410.0.136.1 – 10.0.136.25410.0.136.255254
13810.0.137.0/2410.0.137.1 – 10.0.137.25410.0.137.255254
13910.0.138.0/2410.0.138.1 – 10.0.138.25410.0.138.255254
14010.0.139.0/2410.0.139.1 – 10.0.139.25410.0.139.255254
14110.0.140.0/2410.0.140.1 – 10.0.140.25410.0.140.255254
14210.0.141.0/2410.0.141.1 – 10.0.141.25410.0.141.255254
14310.0.142.0/2410.0.142.1 – 10.0.142.25410.0.142.255254
14410.0.143.0/2410.0.143.1 – 10.0.143.25410.0.143.255254
14510.0.144.0/2410.0.144.1 – 10.0.144.25410.0.144.255254
14610.0.145.0/2410.0.145.1 – 10.0.145.25410.0.145.255254
14710.0.146.0/2410.0.146.1 – 10.0.146.25410.0.146.255254
14810.0.147.0/2410.0.147.1 – 10.0.147.25410.0.147.255254
14910.0.148.0/2410.0.148.1 – 10.0.148.25410.0.148.255254
15010.0.149.0/2410.0.149.1 – 10.0.149.25410.0.149.255254
15110.0.150.0/2410.0.150.1 – 10.0.150.25410.0.150.255254
15210.0.151.0/2410.0.151.1 – 10.0.151.25410.0.151.255254
15310.0.152.0/2410.0.152.1 – 10.0.152.25410.0.152.255254
15410.0.153.0/2410.0.153.1 – 10.0.153.25410.0.153.255254
15510.0.154.0/2410.0.154.1 – 10.0.154.25410.0.154.255254
15610.0.155.0/2410.0.155.1 – 10.0.155.25410.0.155.255254
15710.0.156.0/2410.0.156.1 – 10.0.156.25410.0.156.255254
15810.0.157.0/2410.0.157.1 – 10.0.157.25410.0.157.255254
15910.0.158.0/2410.0.158.1 – 10.0.158.25410.0.158.255254
16010.0.159.0/2410.0.159.1 – 10.0.159.25410.0.159.255254
16110.0.160.0/2410.0.160.1 – 10.0.160.25410.0.160.255254
16210.0.161.0/2410.0.161.1 – 10.0.161.25410.0.161.255254
16310.0.162.0/2410.0.162.1 – 10.0.162.25410.0.162.255254
16410.0.163.0/2410.0.163.1 – 10.0.163.25410.0.163.255254
16510.0.164.0/2410.0.164.1 – 10.0.164.25410.0.164.255254
16610.0.165.0/2410.0.165.1 – 10.0.165.25410.0.165.255254
16710.0.166.0/2410.0.166.1 – 10.0.166.25410.0.166.255254
16810.0.167.0/2410.0.167.1 – 10.0.167.25410.0.167.255254
16910.0.168.0/2410.0.168.1 – 10.0.168.25410.0.168.255254
17010.0.169.0/2410.0.169.1 – 10.0.169.25410.0.169.255254
17110.0.170.0/2410.0.170.1 – 10.0.170.25410.0.170.255254
17210.0.171.0/2410.0.171.1 – 10.0.171.25410.0.171.255254
17310.0.172.0/2410.0.172.1 – 10.0.172.25410.0.172.255254
17410.0.173.0/2410.0.173.1 – 10.0.173.25410.0.173.255254
17510.0.174.0/2410.0.174.1 – 10.0.174.25410.0.174.255254
17610.0.175.0/2410.0.175.1 – 10.0.175.25410.0.175.255254
17710.0.176.0/2410.0.176.1 – 10.0.176.25410.0.176.255254
17810.0.177.0/2410.0.177.1 – 10.0.177.25410.0.177.255254
17910.0.178.0/2410.0.178.1 – 10.0.178.25410.0.178.255254
18010.0.179.0/2410.0.179.1 – 10.0.179.25410.0.179.255254
18110.0.180.0/2410.0.180.1 – 10.0.180.25410.0.180.255254
18210.0.181.0/2410.0.181.1 – 10.0.181.25410.0.181.255254
18310.0.182.0/2410.0.182.1 – 10.0.182.25410.0.182.255254
18410.0.183.0/2410.0.183.1 – 10.0.183.25410.0.183.255254
18510.0.184.0/2410.0.184.1 – 10.0.184.25410.0.184.255254
18610.0.185.0/2410.0.185.1 – 10.0.185.25410.0.185.255254
18710.0.186.0/2410.0.186.1 – 10.0.186.25410.0.186.255254
18810.0.187.0/2410.0.187.1 – 10.0.187.25410.0.187.255254
18910.0.188.0/2410.0.188.1 – 10.0.188.25410.0.188.255254
19010.0.189.0/2410.0.189.1 – 10.0.189.25410.0.189.255254
19110.0.190.0/2410.0.190.1 – 10.0.190.25410.0.190.255254
19210.0.191.0/2410.0.191.1 – 10.0.191.25410.0.191.255254
19310.0.192.0/2410.0.192.1 – 10.0.192.25410.0.192.255254
19410.0.193.0/2410.0.193.1 – 10.0.193.25410.0.193.255254
19510.0.194.0/2410.0.194.1 – 10.0.194.25410.0.194.255254
19610.0.195.0/2410.0.195.1 – 10.0.195.25410.0.195.255254
19710.0.196.0/2410.0.196.1 – 10.0.196.25410.0.196.255254
19810.0.197.0/2410.0.197.1 – 10.0.197.25410.0.197.255254
19910.0.198.0/2410.0.198.1 – 10.0.198.25410.0.198.255254
20010.0.199.0/2410.0.199.1 – 10.0.199.25410.0.199.255254
20110.0.200.0/2410.0.200.1 – 10.0.200.25410.0.200.255254
20210.0.201.0/2410.0.201.1 – 10.0.201.25410.0.201.255254
20310.0.202.0/2410.0.202.1 – 10.0.202.25410.0.202.255254
20410.0.203.0/2410.0.203.1 – 10.0.203.25410.0.203.255254
20510.0.204.0/2410.0.204.1 – 10.0.204.25410.0.204.255254
20610.0.205.0/2410.0.205.1 – 10.0.205.25410.0.205.255254
20710.0.206.0/2410.0.206.1 – 10.0.206.25410.0.206.255254
20810.0.207.0/2410.0.207.1 – 10.0.207.25410.0.207.255254
20910.0.208.0/2410.0.208.1 – 10.0.208.25410.0.208.255254
21010.0.209.0/2410.0.209.1 – 10.0.209.25410.0.209.255254
21110.0.210.0/2410.0.210.1 – 10.0.210.25410.0.210.255254
21210.0.211.0/2410.0.211.1 – 10.0.211.25410.0.211.255254
21310.0.212.0/2410.0.212.1 – 10.0.212.25410.0.212.255254
21410.0.213.0/2410.0.213.1 – 10.0.213.25410.0.213.255254
21510.0.214.0/2410.0.214.1 – 10.0.214.25410.0.214.255254
21610.0.215.0/2410.0.215.1 – 10.0.215.25410.0.215.255254
21710.0.216.0/2410.0.216.1 – 10.0.216.25410.0.216.255254
21810.0.217.0/2410.0.217.1 – 10.0.217.25410.0.217.255254
21910.0.218.0/2410.0.218.1 – 10.0.218.25410.0.218.255254
22010.0.219.0/2410.0.219.1 – 10.0.219.25410.0.219.255254
22110.0.220.0/2410.0.220.1 – 10.0.220.25410.0.220.255254
22210.0.221.0/2410.0.221.1 – 10.0.221.25410.0.221.255254
22310.0.222.0/2410.0.222.1 – 10.0.222.25410.0.222.255254
22410.0.223.0/2410.0.223.1 – 10.0.223.25410.0.223.255254
22510.0.224.0/2410.0.224.1 – 10.0.224.25410.0.224.255254
22610.0.225.0/2410.0.225.1 – 10.0.225.25410.0.225.255254
22710.0.226.0/2410.0.226.1 – 10.0.226.25410.0.226.255254
22810.0.227.0/2410.0.227.1 – 10.0.227.25410.0.227.255254
22910.0.228.0/2410.0.228.1 – 10.0.228.25410.0.228.255254
23010.0.229.0/2410.0.229.1 – 10.0.229.25410.0.229.255254
23110.0.230.0/2410.0.230.1 – 10.0.230.25410.0.230.255254
23210.0.231.0/2410.0.231.1 – 10.0.231.25410.0.231.255254
23310.0.232.0/2410.0.232.1 – 10.0.232.25410.0.232.255254
23410.0.233.0/2410.0.233.1 – 10.0.233.25410.0.233.255254
23510.0.234.0/2410.0.234.1 – 10.0.234.25410.0.234.255254
23610.0.235.0/2410.0.235.1 – 10.0.235.25410.0.235.255254
23710.0.236.0/2410.0.236.1 – 10.0.236.25410.0.236.255254
23810.0.237.0/2410.0.237.1 – 10.0.237.25410.0.237.255254
23910.0.238.0/2410.0.238.1 – 10.0.238.25410.0.238.255254
24010.0.239.0/2410.0.239.1 – 10.0.239.25410.0.239.255254
24110.0.240.0/2410.0.240.1 – 10.0.240.25410.0.240.255254
24210.0.241.0/2410.0.241.1 – 10.0.241.25410.0.241.255254
24310.0.242.0/2410.0.242.1 – 10.0.242.25410.0.242.255254
24410.0.243.0/2410.0.243.1 – 10.0.243.25410.0.243.255254
24510.0.244.0/2410.0.244.1 – 10.0.244.25410.0.244.255254
24610.0.245.0/2410.0.245.1 – 10.0.245.25410.0.245.255254
24710.0.246.0/2410.0.246.1 – 10.0.246.25410.0.246.255254
24810.0.247.0/2410.0.247.1 – 10.0.247.25410.0.247.255254
24910.0.248.0/2410.0.248.1 – 10.0.248.25410.0.248.255254
25010.0.249.0/2410.0.249.1 – 10.0.249.25410.0.249.255254
25110.0.250.0/2410.0.250.1 – 10.0.250.25410.0.250.255254
25210.0.251.0/2410.0.251.1 – 10.0.251.25410.0.251.255254
25310.0.252.0/2410.0.252.1 – 10.0.252.25410.0.252.255254
25410.0.253.0/2410.0.253.1 – 10.0.253.25410.0.253.255254
25510.0.254.0/2410.0.254.1 – 10.0.254.25410.0.254.255254
25610.0.255.0/2410.0.255.1 – 10.0.255.25410.0.255.255254

Reading a CIDR block

The number after the slash is how many leading bits are fixed for the network. A /24 fixes 24 bits and leaves 8 for hosts: 2⁸ = 256 addresses, minus the network and broadcast addresses = 254 usable hosts.

Why AWS shows 5 fewer IPs

In every VPC subnet AWS keeps the first four addresses (network, VPC router, DNS, future use) and the last one. A /24 gives you 251 usable IPs, a /28 only 11. AWS subnets must be between /16 and /28.

Planning a VPC or cluster

A common layout is a /16 VPC split into /20s: one public and one private subnet per availability zone, with room left over. Keep Kubernetes pod and service ranges outside the VPC block so they never overlap.

Runs locally in your browser. Nothing you paste here is uploaded.