📊 IP Range Calculator

Calculate the full IP address range from a CIDR block or from a Start–End pair. Get total count, usable hosts, binary, hex, downloadable IP list, and check if any IP falls in a range — free, instant, browser-only.

Examples: 192.168.1.0/24   10.0.0.0/8   172.16.0.0/12
🕒 Recent Calculations
No recent calculations yet.

📚 What Is an IP Range?

An IP range is a consecutive sequence of IP addresses between a start address and an end address. In IPv4, every address is a 32-bit integer — meaning ranges can be manipulated mathematically. The most common way to express a range is CIDR notation (e.g. 192.168.1.0/24), but ranges can also be written as explicit start–end pairs (e.g. 192.168.1.0 – 192.168.1.255).

IP ranges are foundational to networking: routers match packets to routes using ranges, firewalls permit or deny traffic by ranges, and geolocation databases store (start, end, location) tuples to map billions of IPs. Understanding IP ranges helps you design networks, configure security policies, and troubleshoot connectivity.

🔢 How to Calculate an IP Range from CIDR

CIDR notation encodes both the network address and the prefix length. To calculate the range:

  1. Convert the IP to a 32-bit binary number.
  2. The first prefix bits are the network bits (fixed). The remaining 32 − prefix bits are host bits.
  3. Set all host bits to 0 → Network Address (range start).
  4. Set all host bits to 1 → Broadcast Address (range end).
  5. Total addresses = 2(32−prefix). Usable hosts = Total − 2.

Example: 192.168.1.0/24 → 8 host bits → 28 = 256 total → 254 usable hosts (192.168.1.1 – 192.168.1.254).

CIDRTotal IPsUsable HostsStartEnd
/3211 (host route)x.x.x.xx.x.x.x
/3042x.x.x.0x.x.x.3
/281614x.x.x.0x.x.x.15
/24256254x.x.x.0x.x.x.255
/221,0241,022x.x.0.0x.x.3.255
/1665,53665,534x.x.0.0x.x.255.255
/816,777,21616,777,214x.0.0.0x.255.255.255

🛡️ Use Cases for IP Range Calculations

🔒
Firewall & ACL Rules
Define permit/deny rules using CIDR ranges to block entire geographic regions or malicious ASN prefixes. One CIDR rule replaces thousands of individual IP entries.
📊
Network Segmentation
Design VLANs and subnets by allocating IP ranges per department or workload. A /26 (62 hosts) per floor — allocate them from a parent /22.
🔍
Penetration Testing
Define engagement scope as CIDR blocks. nmap, masscan, and Shodan accept CIDR input directly. Confirm exact host counts before scanning.
🌐
Cloud Security Groups
AWS/GCP/Azure security groups use CIDR. Restrict DB access to 10.0.1.0/24 (app subnet) instead of 0.0.0.0/0. Our calculator confirms the tightest CIDR for any range.
📌
IP Geolocation Databases
MaxMind GeoLite2 stores IP ranges as start–end integer pairs. Converting CIDR to integer pairs (this calculator's output) is the exact format used internally.
📡
DHCP Pool Planning
Calculate usable host range first, then reserve static IPs at the low end and set the DHCP pool at the high end to prevent conflicts.

🔗 More Ways to Work With IP Ranges

For full subnet splitting (VLSM), use our Subnet Calculator. For detailed CIDR mathematics including wildcard masks, try the CIDR Calculator. For geolocation and ASN data on any IP, use IP Lookup. Check ranges against blocklists with our Blacklist Checker. For understanding IP addresses deeper, read What Is an IP Address? and Public vs Private IP.

📚 Want the full in-depth guide? Read: IP Range Calculator — Complete Guide →

ToolsNovaHub tools are built and independently maintained with a focus on accurate, no-signup network and security utilities. Spotted an error? Let us know.

🎓
Expert Tip
Sanity-check one manual example against IP Range Calculator's output the first time you use it for a new case (a new subnet size or ID format) before scripting around it.
ToolsNovaHub Pro Tip
Use IP Range Calculator's copy/export option to keep an audit trail instead of retyping values — it removes an entire class of transcription errors.
⚠️
Common Beginner Mistake
Assuming default settings fit every case. IP Range Calculator's defaults are sensible starting points, not universal rules — check the notes for edge cases.

📋 Related Tools & Guides Comparison

ResourceTypeLink
Email CheckerVerifyOpen Tool →
IP ConverterVerifyOpen Tool →
CIDR CalculatorVerifyOpen Tool →
Age Calculator Guide: Leap Years, Legal Age & Calendar HistoryGuideRead Guide →
ASN Lookup Guide: BGP, Autonomous Systems & Internet Routing ExplainedGuideRead Guide →

FAQ

An IP range is a consecutive sequence of IP addresses between a start address and an end address. Ranges can be expressed as CIDR notation (e.g. 192.168.1.0/24) or as explicit start–end pairs (e.g. 192.168.1.1 – 192.168.1.254).
The formula is 2^(32-prefix). For /24: 256 total (254 usable). For /16: 65,536. For /28: 16 (14 usable). This calculator does the math instantly.
The first address (network) and last address (broadcast) are reserved and cannot be assigned to devices. A /24 with 256 total IPs yields 254 usable host addresses.
Yes — use the Start–End tab. The calculator converts both to 32-bit integers, finds the count, and shows covering CIDR blocks.
Firewall ACLs use CIDR ranges to permit or deny traffic from groups of addresses. One CIDR rule replaces thousands of individual IP entries.
Convert the target IP and both range endpoints to 32-bit integers. If start_int ≤ ip_int ≤ end_int, the IP is in range. Use the IP in Range Check tab above.
0.0.0.0/0 is the default route covering all 4,294,967,296 IPv4 addresses. /32 is the smallest — a single host.
RFC 1918: 10.0.0.0/8 (16.7M IPs), 172.16.0.0/12 (1M IPs), 192.168.0.0/16 (65K IPs). Not routed on the public internet.
Geolocation DBs store (start_int, end_int, country, city, ISP) rows. Binary search finds your IP's row — that's why lookup is instant even for billions of IPs.
127.0.0.0/8 (loopback), 169.254.0.0/16 (link-local/APIPA), 224.0.0.0/4 (multicast), 240.0.0.0/4 (experimental/future use). This calculator flags these automatically.
Yes. 192.168.1.5 belongs to /24, /16, and /8 ranges simultaneously. The longest prefix match (most specific) wins in routing decisions.
If the range start has all host bits zero and count is a power of 2, it maps to one CIDR. Otherwise multiple CIDRs are needed. Our Start–End mode shows the minimum CIDR set.
AWS, GCP, Azure security groups use CIDR notation. Restrict database access to 10.0.1.0/24 (app subnet) instead of 0.0.0.0/0 to limit exposure.
2^32 = 4,294,967,296 total. Roughly 3.7 billion are publicly routable after subtracting reserved and private ranges.
Pen testers define scope as CIDR blocks. nmap/masscan/Shodan accept CIDR directly. Always confirm IP counts before scanning to stay in scope.
Yes — completely free, browser-only, no account. No IP data is sent to our servers.