Free Subnet Calculator (CIDR & IPv4)
This free subnet calculator turns any IPv4 CIDR block into its network address, broadcast address, subnet mask, and usable host range in one click. No sign-up, and every calculation runs in your browser.
CIDR Notation
Reverse Lookup: Hosts to Prefix
Not sure which prefix to use? Enter how many usable hosts you need and get the smallest matching subnet.
No subnet yet
Enter an IPv4 CIDR block such as 192.168.1.0/24, then click Calculate to see its addresses, masks, and host range here.
About This Free Subnet Calculator
This free subnet calculator takes CIDR notation, the compact form like 192.168.1.0/24 that combines an IP address and prefix length, and works out the subnet mask, wildcard mask, network address, and broadcast address with exact binary math, so you never have to subnet by hand.
It also reports the usable host range, correctly handling /31 point-to-point links and /32 host routes, along with an informational IP class and whether the address falls inside a private range like 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16. The calculator covers IPv4 only and does not calculate IPv6 prefixes.
A Pro-Grade IP Subnet Calculator, Free
Every Subnet Detail at Once
Network, broadcast, subnet mask, wildcard mask, total addresses, usable hosts, and host range in a single result.
Correct Edge Cases
/31 and /32 are handled per networking convention, and unsigned 32-bit math avoids negative-number bugs on large masks.
Subnet Size Finder
Enter the number of hosts you need and instantly get the tightest CIDR prefix that fits.
Private and No Sign-Up
Every address is calculated locally on your device, ideal for internal network ranges you would rather not send anywhere.
Who Uses an Online Subnet Calculator?
- Network engineers planning address blocks across sites and checking CIDR to IP range boundaries.
- System administrators configuring firewalls and routers who need an exact subnet mask, wildcard mask, and broadcast address.
- Cloud and DevOps engineers sizing VPC and subnet CIDR blocks without wasting address space.
- Students and certification candidates checking subnetting homework and practicing for networking exams.
Working in other number systems? Convert IP octets and masks with the binary, hex, and decimal converter, or schedule network jobs with the free cron expression generator.
Privacy first. No address you enter into this tool is uploaded, logged, or stored on a server. All calculations happen directly on your device inside your browser tab.
How to Calculate a Subnet for Free
- Enter a CIDR block. Enter an IPv4 address with its prefix length, such as 10.0.0.0/16, into the CIDR Notation field.
- Calculate. Click Calculate to see the subnet mask, wildcard mask, network and broadcast addresses, and usable host range.
- Check the scope. Check the IP Class and Address Scope to confirm whether the block is public or a private network.
- Size a subnet. Need help sizing a subnet instead? Enter a host count into Hosts Needed and click Suggest Subnet for the smallest matching prefix.
