Subnet Calculator — IPv4, CIDR & Mask
Free IPv4 subnet calculator — network & broadcast address, host ranges, wildcard mask, binary breakdown, subnet splitting. Exact 32-bit math.
- 👨💻 Developer Tool
- ✓ Free
- ✓ No sign-up
- ✓ Private — runs in your browser
- ✓ Any device
Each octet 0–255. Tip: paste a full 10.0.0.0/8 here.
Enter a full IPv4 address to test membership.
× networks · usable hosts each
🔒 100% in-browser, zero network calls — every value is exact 32-bit math. Handles /31 (RFC 3021, 2 usable) and /32 edge cases correctly. Where LLMs routinely fumble subnet boundaries and host counts, this is deterministic and instant.
Why you’ll love Subnet Calculator — IPv4, CIDR & Mask
How to use it
- 01
Open it
No download and no login — the tool is ready right at the top of this page.
- 02
Use it
Enter your details or start interacting. Everything updates live as you go.
- 03
Get your result
Copy, download or share your result in a single tap. That’s it.
About Subnet Calculator — IPv4, CIDR & Mask
This IPv4 subnet calculator does exact 32-bit binary math in your browser — no server calls, no sign-up, and results appear as you type. Enter an address (or paste a full CIDR like 10.0.0.0/8 into the first octet and it fills everything), pick a prefix with the slider, number box or mask dropdown, and you instantly get the network address, broadcast address, first and last usable host, subnet mask, wildcard mask, and total versus usable address counts.
The method is the same one routers use: the network address is the IP ANDed with the subnet mask, and the broadcast address is the network ORed with the wildcard (inverted) mask. A colour-coded binary breakdown shows exactly which bits are network and which are host, which is the fastest way to actually understand subnetting rather than memorise it. Worked example: 192.168.1.130/26 has mask 255.255.255.192, network 192.168.1.128, broadcast 192.168.1.191, and 62 usable hosts (2^6 − 2) from .129 to .190.
Three extra tools cover the questions that follow: a membership tester tells you whether any IP falls inside the current network, a splitter divides the block into 2–64 equal subnets with each new CIDR, range and broadcast listed, and a host planner finds the smallest prefix that fits N hosts. It also identifies the address class (A–E) and type — RFC 1918 private, public, loopback, APIPA link-local, CGNAT (100.64/10) or multicast — and handles the /31 and /32 edge cases correctly, where many calculators (and most AI chatbots) get host counts wrong.
Popular uses
- ✦ Network engineers carving a corporate block into per-VLAN subnets
- ✦ CCNA / Network+ students checking subnetting practice answers with a binary view of why
- ✦ Cloud engineers planning AWS VPC or Azure VNet CIDR ranges before anything is provisioned
- ✦ Sysadmins verifying whether an IP falls inside a firewall rule or allowlist range
- ✦ Writing Cisco ACLs and OSPF statements with the correct wildcard mask
Frequently asked questions
How are the network and broadcast addresses calculated from a CIDR prefix?
Why does a /31 show 2 usable hosts and a /32 show 1 instead of zero?
What is a wildcard mask and where would I use it?
How do I check whether an IP address belongs to a subnet?
Does this calculator support IPv6 or unequal (VLSM) splits?
Is Subnet Calculator — IPv4, CIDR & Mask free to use?
Is my code or data sent anywhere?
More developer tools
All developer toolsPeople also use
We built this. We can build yours.
Subnet Calculator — IPv4, CIDR & Mask is one of our free tools. Need a website, app, AI agent or automation? Fixed price — and you own the code.