Skip to main content
IP Range CalculatorPRO
IPv4 Subnetting & RangeInstant Client-Side Tool

Nth Address Calculator

Find an address by range offset.

Nth Address Calculator: inputs and results

Enter an IP address, CIDR prefix, or range. Then check its first and last address below.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

How Nth Address Calculator Works?

This tool works by adding an offset to the first address of a range and checking that the result stays inside the range. Offset 0 returns the first address.

  1. Enter the range or CIDR

    Type 192.168.0.0/22 or a start–end range.

  2. Enter the offset

    Type a position such as 1,000. Negative offsets count back from the last address.

  3. Add the offset

    The calculator adds the offset to the 32-bit start value: start + 1,000.

  4. Check the bounds

    Results beyond the last address are flagged as out of range.

Nth Address Calculator Formula

The formula is Address(n) = Start + n, valid while 0 ≤ n ≤ Size − 1.

Forward offset

A(n) = Start + n

Offset 0 is the first address.

Backward offset

A(−k) = End − (k − 1)

Offset −1 is the last address.

Valid offsets

0 ≤ n ≤ 2^(32−p) − 1

A /22 accepts offsets 0 to 1,023.

Octet split

n = 256 × q + r → +q in octet 3, +r in octet 4

Carries move left across octets.

Worked example: offset 1,000 in 192.168.0.0/22

1,000 = 3 × 256 + 232
Start = 192.168.0.0
Add 3 to octet 3 and 232 to octet 4
Result = 192.168.3.232 (inside 192.168.0.0 – 192.168.3.255 ✓)

Nth Address Calculator Conversion Table

The table lists the address at 13 offsets inside 192.168.0.0/22, including the last valid offset and 1 out-of-range offset.

Offset (n)AddressStatus
0192.168.0.0First address
1192.168.0.1In range
2192.168.0.2In range
10192.168.0.10In range
100192.168.0.100In range
254192.168.0.254In range
255192.168.0.255In range
256192.168.1.0In range
500192.168.1.244In range
512192.168.2.0In range
1,000192.168.3.232In range
1,023192.168.3.255Last address
1,024192.168.4.0Out of range

What is Nth Address Calculator?

The Nth Address Calculator is a tool that returns the address found at a given position inside an IPv4 range or subnet. Position 0 is the first address, and position 1 is the next address.

Offsets cross octet boundaries automatically. Offset 256 in 192.168.0.0/22 lands on 192.168.1.0, not on an invalid 192.168.0.256. The calculator handles every carry across all 4 octets.

Addressing standards often place devices at fixed positions, such as the 10th address for a firewall or the 5th-from-last address for a management switch. The Nth Address Calculator finds those addresses in any subnet size.

What are the uses of Nth Address Calculator?

There are 5 main uses of the Nth Address Calculator, including template addressing, automation, and lab setup.

  • Applying address templates

    Site templates assign the gateway to offset 1, the firewall to offset 2, and printers to offsets 20 to 29.

  • Generating IPs in automation

    Ansible and Terraform templates compute cidrhost(prefix, n). The calculator checks those values by hand.

  • Placing load balancer VIPs

    Virtual IPs often sit at fixed offsets near the end of a subnet, such as offset −10.

  • Building lab networks

    Lab guides assign host 1 to host N in order. The calculator gives each lab host its address.

  • Checking offset bounds

    The calculator warns before a template assigns an address beyond the subnet end.