What Is an IP Block Size Calculator?
An IP block size calculator shows the complete network block containing an IPv4 or IPv6 address and CIDR prefix. It calculates the network boundary, last address, total and usable capacity, host bits, address position, and the previous and next equal-sized blocks.
For IPv4, the calculator from ipdnslookup also shows the subnet mask, wildcard mask, binary mask, changing octet, and octet increment. These values make it easier to understand where one block ends and the next begins.
How to Use the IP Block Size Calculator
- Enter an address: Type an IPv4 or IPv6 address that belongs to the block you want to inspect.
- Add a CIDR prefix: Include a slash value such as
/24,/27, or/64. - Select Calculate Block Size: The calculator normalizes the address to its correct network boundary.
- Read the block size: Review the total mathematical number of addresses.
- Check the boundaries: Confirm the first address, last address, and usable range.
- Review adjacent blocks: See the previous and next network with the same prefix.
- Use IPv4 increment details: Apply the changing octet and increment when working through blocks manually.
Example IPv4 block calculation
Input: 192.168.1.70/26
Normalized block: 192.168.1.64/26
Total addresses: 64
Traditional usable range: 192.168.1.65 through 192.168.1.126
Final address: 192.168.1.127
A /26 mask is 255.255.255.192. The changing fourth octet has an increment of 64, so its block boundaries begin at 0, 64, 128, and 192.
Example IPv6 block calculation
Input: 2001:db8:10:20::15/64
Normalized block: 2001:db8:10:20::/64
Host bits: 64
Total mathematical capacity: 18,446,744,073,709,551,616 addresses.
The calculator works with the boundaries and count. It does not try to list every IPv6 address.
Why Use Our IP Block Size Calculator?
- IPv4 and IPv6 support: Use the correct 32-bit or 128-bit calculations.
- Automatic normalization: Enter any address inside the block and receive the actual network CIDR.
- Complete boundaries: See the first, last, first usable, and last usable values.
- Capacity details: Compare total addresses with usable capacity.
- Address position: Learn where the entered address falls inside its block.
- Adjacent networks: Find the previous and next equal blocks without manual arithmetic.
- IPv4 mask details: Receive dotted, wildcard, and binary masks.
- Block increment: Identify the octet step used for manual subnet calculations.
- No signup: Complete normal calculations immediately.
How IP Block Size Calculation Works
An IPv4 address contains 32 bits and an IPv6 address contains 128 bits. A CIDR prefix tells you how many leading bits belong to the network. The remaining bits define the possible values inside that block.
Host bits = address width - prefix length
Block size = 2host bits
An IPv4 /24 leaves eight host bits, so it contains 28, or 256, total addresses. A /27 leaves five host bits and contains 32 addresses. Each additional prefix bit halves the block size.
The calculator applies the prefix mask to the entered address to find the network boundary. The last address is the network boundary plus the block size minus one.
Understanding Your Block Size Results
- Entered Address: The exact host address supplied in the form.
- CIDR Block: The normalized network containing the address.
- Total Block Size: Every mathematical address inside the CIDR.
- Usable Capacity: Capacity after the calculator applies its IPv4 or IPv6 rule.
- First and Last Address: The complete lower and upper boundaries.
- First and Last Usable: Common host boundaries for the selected prefix.
- Host Bits: Bits that vary inside the block.
- Address Position: The entered address's one-based position from the beginning.
- Previous and Next Block: Neighboring CIDRs with the same prefix length.
- Changing Octet: The IPv4 octet where the subnet boundary changes.
- Octet Increment: The step between IPv4 network boundaries in that octet.
How to Calculate an IPv4 Block Increment
Find the first subnet-mask octet that is not 255. Subtract that octet from 256. The answer is the block increment.
For a /27, the mask is 255.255.255.224. The calculation is 256 - 224 = 32. Fourth-octet network boundaries therefore begin at 0, 32, 64, 96, 128, 160, 192, and 224.
For a /20, the mask is 255.255.240.0. The changing third octet has an increment of 16, so boundaries begin at 0, 16, 32, and continue in steps of 16.
IPv4 Usable Address Rules
For ordinary IPv4 prefixes from /0 through /30, the first address identifies the network and the final address is the directed broadcast address. Traditional usable capacity is therefore two less than the total block size.
RFC 3021 allows both addresses in a /31 on a point-to-point link. A /32 represents one host route. Cloud platforms and providers may reserve additional values, so check their documentation before allocating every calculated host.
IPv6 Block Size Rules
IPv6 has no IPv4-style broadcast-address reservation. The calculator reports the full mathematical capacity for the prefix. The IPv6 addressing architecture defines the 128-bit address and prefix model.
A common IPv6 /64 is intentionally enormous. Network design normally works with prefixes and boundaries rather than enumerating individual addresses. Policy can still reserve specific values even though the mathematics does not subtract a broadcast address.
Common Uses for an IP Block Size Calculator
- Subnet planning: Confirm the capacity and boundaries of an allocation.
- Firewall review: Understand the complete space described by a CIDR rule.
- DHCP planning: Compare a block with the intended dynamic pool and reservations.
- Cloud networking: Check mathematical capacity before applying platform reservations.
- Route configuration: Verify normalized network boundaries and adjacent blocks.
- Address troubleshooting: Confirm whether two addresses fall inside the same CIDR.
- Subnetting study: Practice prefixes, masks, increments, and powers of two.
Common Block Size Mistakes
- Treating the entered host as the network: The true boundary may be lower.
- Forgetting both endpoints: Block size includes the first and final address.
- Subtracting two from every prefix: IPv4 /31, /32, and IPv6 follow different rules.
- Ignoring alignment: CIDR blocks begin only at valid binary boundaries.
- Confusing block size and subnet count: One measures addresses per block; the other measures how many blocks are created.
- Enumerating IPv6: Use prefix mathematics for very large address spaces.
Frequently Asked Questions
How large is an IPv4 /24 block?
It contains 256 total addresses and traditionally 254 usable host addresses.
How large is a /26?
An IPv4 /26 contains 64 total addresses and traditionally 62 usable hosts.
Why did my entered address change in the CIDR result?
The result is normalized to the network boundary containing the entered host.
What is the block increment for /27?
The mask octet is 224, so 256 - 224 gives an increment of 32.
Can the calculator handle IPv6?
Yes. Enter an IPv6 address with a prefix such as /48 or /64.
Are cloud usable-address counts always the same?
No. A provider may reserve additional addresses for its services.
What is the difference between block size and usable capacity?
Block size includes every address, while usable capacity applies address-reservation rules.
Related IP Address Calculators
Use the Number of Hosts Calculator to choose a prefix from capacity, the IP Address Range Calculator for arbitrary boundaries, and the Number of Subnets Calculator to divide a parent block. Browse all published calculators from ipdnslookup.