Advertisement

Subnet Calculator

Work out network, broadcast, usable hosts and masks for any IPv4 or IPv6 CIDR, and split networks into subnets.

Last updated:

Subnet Calculator
IPv4 · IPv6 · CIDR · Split
Quick masks

How to Use the Subnet Calculator

1
Enter an IP address or CIDR, like 10.0.0.0/16
2
Pick the mask or a quick /prefix
3
Read the results, or split into smaller subnets

All maths runs in your browser.

CIDR Cheat Sheet

CIDRSubnet maskAddressesUsable hosts
/32255.255.255.25511 (single host)
/31255.255.255.25422 (point-to-point)
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/27255.255.255.2243230
/26255.255.255.1926462
/25255.255.255.128128126
/24255.255.255.0256254
/23255.255.254.0512510
/22255.255.252.01,0241,022
/16255.255.0.065,53665,534
/8255.0.0.016,777,21616,777,214

How Subnetting Works

Private IP Ranges

RangeCIDRTypical use
10.0.0.0 - 10.255.255.25510.0.0.0/8Big companies, cloud VPCs
172.16.0.0 - 172.31.255.255172.16.0.0/12Docker, mid-size networks
192.168.0.0 - 192.168.255.255192.168.0.0/16Home and small office routers
100.64.0.0 - 100.127.255.255100.64.0.0/10Carrier-grade NAT (ISPs)

Splitting a Network (VLSM)

IPv6 Subnetting

Related Tools

Frequently Asked Questions

How many hosts are in a /24? +

256 addresses, 254 usable hosts.

What is the subnet mask for /27? +

255.255.255.224, with 30 usable hosts.

What is a wildcard mask? +

The inverse of the subnet mask, used in Cisco ACLs and OSPF. For /24 it is 0.0.0.255.

Why are 2 addresses not usable? +

The first is the network address and the last is the broadcast address. /31 and /32 are exceptions.

How do I calculate the network address? +

Do a bitwise AND of the IP and the mask. 192.168.1.130/25 gives network 192.168.1.128.

Does it work for IPv6? +

Yes. Switch to IPv6 and enter an address with a prefix, like 2001:db8::/48.

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →