CIDR Calculator – IP Range & Subnet Calculator
Calculate CIDR blocks, subnet masks, and host counts for any IPv4 network.
Introduction
Quickly convert IP plus CIDR prefix into subnet mask, network address, broadcast, and host count — essential for cloud VPCs and CCNA labs.
How to use this cidr calculator tool
- Enter an IPv4 address (e.g. 192.168.1.10).
- Enter CIDR as /24 or select prefix from the dropdown.
- Click Calculate.
- Copy network range, mask, and host counts.
What Is This Tool?
A CIDR calculator computes all parameters of a classless IPv4 subnet from an address and prefix length (such as 192.168.1.0/24).
CIDR (Classless Inter-Domain Routing) replaced class A/B/C sizing and is the standard for routing and firewall documentation today.
How to Use This Tool
- Enter an IPv4 address (e.g. 192.168.1.10).
- Enter CIDR as /24 or select prefix from the dropdown.
- Click Calculate.
- Copy network range, mask, and host counts.
Formula / Calculation Logic
Network = IP AND subnet mask. Broadcast = network OR wildcard mask. Usable hosts = 2^(32−prefix) − 2 (except /31 and /32).
Subnet mask from prefix: set the leftmost `prefix` bits to 1 in a 32-bit word.
Examples
Sample inputs and expected outputs:
| Input | Result |
|---|---|
| 192.168.1.10/24 | Network 192.168.1.0 — 254 usable hosts |
| 10.0.0.0/8 | 16,777,214 usable hosts |
| /26 mask | 255.255.255.192 — 62 usable hosts |
Understanding Results
- Network address — first address of the subnet (host bits zero).
- Broadcast — last address on the segment (host bits one).
- Host range — assignable addresses between network and broadcast.
- CIDR notation — compact form for route tables and cloud APIs.
Use Cases
- AWS/Azure subnet design
- ACL documentation
- CCNA subnetting practice
- IPAM audits
Benefits
- Instant CIDR math
- No binary worksheet
- Consistent with RFC definitions
- Copy-ready results
Common Mistakes
Avoid these errors when using this network calculator:
Planning pitfalls
- Forgetting reserved network and broadcast addresses on normal subnets.
- Using /24 math on a /25 without recalculating boundaries.
- Mixing CIDR with incorrect dotted mask (must be contiguous ones).
References
Disclaimer
This calculator is for education, lab work, and network planning. Always verify production firewall, routing, and cloud VPC settings before deployment.
cidr calculator — frequently asked questions
A CIDR calculator applies standard IPv4 subnet math (RFC 950 / CIDR) to compute network boundaries, masks, and host counts without manual binary conversion.
You enter IPv4 addresses, masks, or CIDR notation. The calculator bitwise-ANDs the address with the mask to find the network ID, then derives broadcast, wildcard, and host ranges.
Use it during CCNA study, VPC design, firewall rule documentation, IPAM planning, and troubleshooting when you need quick confirmation of subnet boundaries.
Yes. VSPIC runs calculations in your browser with no account required.
These calculators focus on IPv4. For IPv6 prefix planning, use our IPv6 Test and IP Subnet Calculator IPv6 tab.
CIDR writes the prefix length after a slash (e.g. /24). It replaces legacy classful networks and is used in routing tables worldwide.
A subnet mask marks which bits belong to the network portion. A /24 equals 255.255.255.0 with 254 usable hosts in typical subnets.
Yes. RFC 1918 addresses (10.x, 172.16–31.x, 192.168.x) use the same subnet mathematics as public space.
Set all host bits to 1 in the subnet — bitwise OR of network address with the inverted mask.
Variable Length Subnet Masking uses different prefix lengths within one parent network to minimize wasted addresses.
256 total addresses, 254 usable hosts when network and broadcast are reserved.
Next step for cidr calculator
Continue with ip lookup on VSPIC.
Related Tools
Explore more free VSPIC tools for IP, DNS, security, and network diagnostics.
IP Lookup
Look up any IP address for ISP, location, and ASN details
Use Free →WHOIS Lookup
Retrieve domain and IP registration WHOIS records
Use Free →DNS Lookup
Free DNS lookup tool and DNS checker — query A, AAAA, MX, TXT, NS, CNAME, and SOA records for any domain.
Use Free →Hostname Lookup
Resolve a domain name to its hostname and IP addresses
Use Free →Reverse DNS Lookup
Resolve IP addresses to hostnames via PTR records
Use Free →IPv6 Test
Check if your connection supports IPv6 addressing
Use Free →IP Subnet Calculator
IPv4 & IPv6 subnet calculator — class, mask, hosts, wildcard
Use Free →CIDR Calculator
CIDR to subnet mask, network range, and host count
Use Free →
Trusted by Users Who Value Privacy
Always Free
No premium plan ever
100% Private
Files processed in browser
Instant Results
Convert in seconds
Works Everywhere
Any device, any OS