Technology calculators

IP Range Calculator

Updated Oct 8, 2026 By Infinity Calculator

IP Address / Range Input

Accepts CIDR, dotted subnet mask, wildcard mask, dash range, or a bare IPv4/IPv6 address.
Detected: IPv4 CIDR
Quick examples

Visual IP Range

Step-by-Step Solution

Address Space by Prefix Length

Quick-Reference Subnet Tables

Class A subnet reference from slash 8 to slash 30
CIDR PrefixSubnet MaskWildcard MaskSubnets (of /8)Usable Hosts
Class B subnet reference from slash 16 to slash 30
CIDR PrefixSubnet MaskWildcard MaskSubnets (of /16)Usable Hosts
Supernetting reference from slash 1 to slash 23
CIDR BlockSupernet MaskWildcard MaskClass C (/24) BlocksTotal Usable Hosts

Introduction

An IP range calculator shows you every address inside a network block. Type in an IP address, a CIDR block like 192.168.1.0/24, a subnet mask, or a start and end IP. The tool then tells you the network address, the broadcast address, the first and last usable host, and how many addresses you get in total.

It works with both IPv4 and IPv6. You can enter the address in many ways: CIDR notation, a dotted mask like 255.255.255.0, a wildcard mask like 0.0.0.255, a dash range like 10.0.0.1-10.0.0.255, or just a plain IP on its own. If you only work with 32-bit addressing, the IPv4 Calculator covers the same ground with a narrower focus.

You also get extra details that help with real network work. The calculator shows the binary and hex forms of each address, the wildcard mask for access lists, the reverse DNS (PTR) name, and whether the IP is private, public, loopback, link-local, or multicast. A step-by-step section shows the math, so you can learn how subnetting works instead of just copying the answer.

This is useful if you plan subnets, set up a router, write firewall rules, or study for a networking exam like the CCNA. Quick-reference tables for Class A, Class B, and supernetting sit at the bottom of the page, and the row that matches your prefix is highlighted for you.

How to use our IP Range Calculator

Type an IP address, CIDR block, or IP range into the box. The calculator shows the network address, broadcast address, subnet mask, wildcard mask, first and last usable host, total addresses, and step-by-step math for IPv4 and IPv6.

IP Address / Range: Enter the address you want to check. You can use CIDR like 192.168.1.0/24, a subnet mask like 192.0.2.0/255.255.255.0, a wildcard mask like 192.0.2.0/0.0.0.255, a dash range like 10.0.0.1-10.0.0.255, or just a plain address like fe80::1. The badge under the box tells you which format was found.

Quick examples: Click any example button to fill the box for you. This is a fast way to see how each input format works.

Calculate: Click this button (or press Enter) to run the numbers. Results also update as you type.

Reset: Click this to clear your entry and go back to the default 192.168.1.10/24.

Copy buttons: Click the copy icon next to any result to copy that value, like the subnet mask or host range.

Quick-Reference Subnet Tables: Use the tabs at the bottom to view Class A, Class B, and supernetting charts. The row that matches your prefix is highlighted in green.

What Is an IP Range?

Every device on a network has an IP address. An IP range is just a group of IP addresses that sit next to each other, like house numbers on one street. Networks are built from these ranges, so routers know which addresses belong together and where to send data. If you want to inspect one single address rather than a whole block, the IP Address Calculator is the quicker route.

How IP Ranges Are Written

The most common way is CIDR notation, like 192.168.1.0/24. The number after the slash is the prefix length. It tells you how many bits at the front of the address are locked in for the network.1 The bits left over are used for hosts (devices).

  • Small prefix (like /8) = big network, many addresses.
  • Big prefix (like /30) = tiny network, few addresses.
  • Each extra bit in the prefix cuts the size of the range in half.

You may also see the same range written with a subnet mask (255.255.255.0), a wildcard mask (0.0.0.255), or as a plain start-to-end range (10.0.0.1-10.0.0.255). They all describe the same idea in different styles.

Key Addresses in Every IPv4 Range

  • Network address – the first address. It names the whole subnet and is not given to a device.2
  • Broadcast address – the last address. Data sent here goes to every device in the subnet.2
  • Usable hosts – everything in between. This is why usable hosts equal total addresses minus 2.2

Two special cases break that rule. A /31 gives 2 usable addresses for a point-to-point link (RFC 3021).4 A /32 is a single host.1

Common Subnet Sizes

CIDRSubnet MaskTotal AddressesUsable Hosts
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/24255.255.255.0256254
/16255.255.0.065,53665,534
/8255.0.0.016,777,21616,777,214

Private, Public, and Special Ranges

Some ranges are set aside for use inside homes and offices. These private ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.3 They are not routed on the open internet.3 A router usually uses NAT to share one public address. Other blocks have jobs of their own, such as 127.0.0.0/8 for loopback and 169.254.0.0/16 for link-local (APIPA) addresses.6 Multicast uses 224.0.0.0 to 239.255.255.255.16

IPv6 Ranges

IPv6 addresses are 128 bits long instead of 32, so the ranges are huge.7 A single /64 holds about 18 quintillion addresses. That is the normal size for one network segment.9 IPv6 has no broadcast addresses; multicast does that job.8 The global unicast addresses handed out today come from 2000::/3.10 Unique local addresses, for use inside a site, start with fc00::/7.11 Link-local addresses start with fe80::/10.8

Why IP Ranges Matter

Network admins use IP ranges to split one big network into smaller subnets. Smaller subnets cut down on broadcast traffic, keep departments apart, and make firewall rules simpler. Wildcard masks are used in access control lists on Cisco gear.5 Cloud networks use CIDR blocks too: when you create an AWS VPC, you must specify an IPv4 CIDR block between a /16 netmask and a /28 netmask.17 DHCP scope planning works in CIDR blocks as well. Picking the right prefix length means you have enough addresses for your devices without wasting a big block.


Formulas used

Subnet mask from prefix length 1
M = (2^{p} - 1) \cdot 2^{\,b - p}
Wildcard mask (inverse mask)
W = (2^{b} - 1) \oplus M
Network address
N = A \;\text{AND}\; M
Broadcast / last address in block
B = N \;\text{OR}\; W
Total addresses in block 1
T = 2^{\,b - p}
Usable hosts (IPv4) 1
H = \begin{cases} 2^{\,32-p} - 2, & p \le 30 \\ 2, & p = 31 \\ 1, & p = 32 \end{cases}
Addresses in a dash range
C = E - S + 1
Number of /64 subnets in an IPv6 prefix
S_{64} = 2^{\,64 - p}, \quad p \le 64

Frequently asked questions

What is a wildcard mask for?

A wildcard mask is the flipped version of a subnet mask.5 A 0 bit means "this bit must match" and a 1 bit means "any value is fine". Cisco access control lists (ACLs) use them.5 OSPF network statements and route maps use them too. For a /24, the subnet mask is 255.255.255.0 and the wildcard mask is 0.0.0.255.5

What does "smallest enclosing CIDR" mean on a dash range?

When you type a range like 10.0.0.1-10.0.0.255, the tool finds the smallest single CIDR block that fits the whole range inside it. Here that is 10.0.0.0/24. This is useful because firewalls, routers, and cloud tools usually want CIDR, not a start and end IP. Note the block may be a bit larger than the range you typed.

How many usable IPs do I get in an IPv6 block?

Almost all of them. IPv6 has no broadcast addresses.8 The first address in each subnet is the Subnet-Router anycast address.8 The highest 128 interface ID values in each subnet are also reserved, for other subnet anycast addresses.12 The usable count shown here is total addresses minus 1. A /127 is used on point-to-point links between routers.13 A /128 is one host.

What is the reverse DNS (PTR) name in the results?

It is the special name used to look up a name from an IP instead of an IP from a name.14 IPv4 flips the octets and adds .in-addr.arpa, so 192.168.1.0 becomes 0.1.168.192.in-addr.arpa. IPv6 uses single hex digits in reverse plus .ip6.arpa.15 You need this when setting up PTR records for mail servers.

What are host bits?

Host bits are the leftover bits after the prefix. For IPv4, host bits = 32 minus the prefix. A /26 has 6 host bits, so the block holds 2⁶ = 64 addresses. More host bits means a bigger range.

How do I pick the right prefix for my number of devices?

Count your devices, add room to grow, then pick the smallest block that fits. Remember two addresses are taken by the network and broadcast, and one more is usually your router.

  • Up to 6 devices → /29
  • Up to 14 → /28
  • Up to 30 → /27
  • Up to 62 → /26
  • Up to 254 → /24

What is the decimal (integer) value of an IP used for?

Every IP is really just one big number. Turning it into a plain integer makes it easy to store in a database, sort addresses, or check if an IP falls inside a range with a simple greater-than or less-than test. Many programming languages and SQL databases use this form.

Should the router use the first or last usable IP?

Either works, and neither is a rule. Many teams give the router the first usable IP (like 192.168.1.1) and start the DHCP pool later in the range. Others use the last usable IP. Just pick one style and use it on every subnet so it stays easy to remember.

Does a /24 always give 254 hosts?

In IPv4, yes. A /24 has 256 total addresses, minus the network and broadcast address, leaving 254 usable hosts.1 An IPv6 /24 is completely different and holds a huge block of addresses, because IPv6 addresses are 128 bits long.


Sources

  1. Fuller V, Li T. Classless Inter-domain Routing (CIDR): The Internet Address Assignment and Aggregation Plan (RFC 4632). Internet Engineering Task Force. 2006;§ 2 History; § 3.1 Prefix Notation (prefix table); § 4 Aggregation; § 5 Routing Implementation. Accessed September 29, 2026.
  2. Braden R, ed.. Requirements for Internet Hosts -- Communication Layers (RFC 1122). Internet Engineering Task Force. 1989;§ 3.2.1.3 Addressing; § 3.3.1.1 Local/Remote Decision; § 3.3.6 Broadcasts. Accessed September 29, 2026.
  3. Rekhter Y, Moskowitz B, Karrenberg D, de Groot GJ, Lear E. Address Allocation for Private Internets (RFC 1918). Internet Engineering Task Force. 1996;§ 3 Private Address Space. Accessed September 29, 2026.
  4. Retana A, White R, Fuller V, McPherson D. Using 31-Bit Prefixes on IPv4 Point-to-Point Links (RFC 3021). Internet Engineering Task Force. 2000;§ 1 Introduction; § 2.1 Addressing. Accessed September 29, 2026.
  5. Configure IP Access Lists. Cisco Systems. 2025;ACL Basics: wildcard (inverse) masks. Accessed September 29, 2026.
  6. Cotton M, Vegoda L, Bonica R, ed., Haberman B. Special-Purpose IP Address Registries (RFC 6890). Internet Engineering Task Force. 2013;§ 2.2.2 IPv4 Special-Purpose Address Registry entries. Accessed September 29, 2026.
  7. Deering S, Hinden R. Internet Protocol, Version 6 (IPv6) Specification (RFC 8200). Internet Engineering Task Force. 2017;§ 1 Introduction (Expanded Addressing Capabilities). Accessed September 29, 2026.
  8. Hinden R, Deering S. IP Version 6 Addressing Architecture (RFC 4291). Internet Engineering Task Force. 2006;§ 2.2 Text Representation; § 2.5.1 Interface Identifiers; § 2.5.5.2 IPv4-Mapped IPv6 Address. Accessed September 29, 2026.
  9. Carpenter B, ed., Chown T, Gont F, Jiang S, Petrescu A, Yourtchenko A. Analysis of the 64-bit Boundary in IPv6 Addressing (RFC 7421). Internet Engineering Task Force. 2015;Abstract; § 2 Advantages of a Fixed Identifier Length. Accessed September 29, 2026.
  10. Hinden R, Deering S, Nordmark E. IPv6 Global Unicast Address Format (RFC 3587). Internet Engineering Task Force. 2003;§ 1 Introduction; § 3 Address Format. Accessed September 29, 2026.
  11. Hinden R, Haberman B. Unique Local IPv6 Unicast Addresses (RFC 4193). Internet Engineering Task Force. 2005;§ 3.1 Format. Accessed September 29, 2026.
  12. Johnson D, Deering S. Reserved IPv6 Subnet Anycast Addresses (RFC 2526). Internet Engineering Task Force. 1999;§ 2 Format of Reserved Subnet Anycast Addresses. Accessed September 29, 2026.
  13. Kohno M, Nitzan B, Bush R, Matsuzaki Y, Colitti L, Narten T. Using 127-Bit IPv6 Prefixes on Inter-Router Links (RFC 6164). Internet Engineering Task Force. 2011;Abstract. Accessed September 29, 2026.
  14. Mockapetris P. Domain Names - Implementation and Specification (RFC 1035). Internet Engineering Task Force. 1987;§ 3.5 IN-ADDR.ARPA domain. Accessed September 29, 2026.
  15. Thomson S, Huitema C, Ksinant V, Souissi M. DNS Extensions to Support IP Version 6 (RFC 3596). Internet Engineering Task Force. 2003;§ 2.5 IP6.ARPA Domain. Accessed September 29, 2026.
  16. Deering S. Host Extensions for IP Multicasting (RFC 1112). Internet Engineering Task Force. 1989;§ 4 Host Group Addresses. Accessed September 29, 2026.
  17. VPC CIDR blocks. Amazon Virtual Private Cloud User Guide. Amazon Web Services. Accessed October 8, 2026.