First and Last Address Calculator
Identify a range’s endpoints.
First and Last Address Calculator: inputs and results
Enter an IP address, CIDR prefix, or range. Then check its first and last address below.
Calculated Boundaries & ParametersReady
Key Capabilities
- •100% Client-Side: Zero telemetry or server latency.
- •RFC Compliant: Exact 32-bit and 128-bit integer precision.
- •Quick Copy: Instant access to CIDR, mask, and range bounds.
- •Cross-Platform: Works on desktop, tablet, and mobile browsers.
Related IPv4 Subnetting & RangeAll Tools
IPv4 Range Calculator
Find address boundaries from a prefix.
IPv4 Subnet Calculator
Calculate subnet details from address and mask.
Network Address Calculator
Find the subnet’s network address.
IPv4 Broadcast Address Calculator
Find broadcast addresses where applicable.
Usable IPv4 Host Range Calculator
Apply the selected subnet-use rules.
Total Address Count Calculator
Count addresses within a prefix.
How First and Last Address Calculator Works?
This tool works by returning the lowest and highest address of a CIDR block, with no addresses removed for network or broadcast use.
Enter a CIDR block
Type a block such as
100.64.0.0/10or any address with a prefix.Round down to the block start
The calculator aligns the address to the prefix boundary. The aligned value is the first address.
Add the block size
The last address equals the first address plus
2^(32−p) − 1.Show both endpoints
The calculator prints both endpoints side by side, ready for range-based tools and spreadsheets.
First and Last Address Calculator Formula
The formula is First = IP AND Mask, and Last = First + 2^(32 − p) − 1.
First address
First = IP AND MaskThe block start, with every host bit at 0.
Last address
Last = First + 2^(32−p) − 1The block end, with every host bit at 1.
Span check
Last − First + 1 = 2^(32−p)The endpoints always enclose an exact multiple of 2 addresses (except /32).
Worked example: 100.64.0.0/10 (shared address space, RFC 6598)
Host bits = 32 − 10 = 22 Size = 2^22 = 4,194,304 addresses First = 100.64.0.0 Last = 100.64.0.0 + 4,194,303 = 100.127.255.255
First and Last Address Calculator Conversion Table
The table lists the first address, last address, and size of 10 well-known and sample IPv4 blocks.
| CIDR Block | First Address | Last Address | Size |
|---|---|---|---|
| 10.0.0.0/8 | 10.0.0.0 | 10.255.255.255 | 16,777,216 |
| 172.16.0.0/12 | 172.16.0.0 | 172.31.255.255 | 1,048,576 |
| 192.168.0.0/16 | 192.168.0.0 | 192.168.255.255 | 65,536 |
| 100.64.0.0/10 | 100.64.0.0 | 100.127.255.255 | 4,194,304 |
| 169.254.0.0/16 | 169.254.0.0 | 169.254.255.255 | 65,536 |
| 198.18.0.0/15 | 198.18.0.0 | 198.19.255.255 | 131,072 |
| 192.0.2.0/24 | 192.0.2.0 | 192.0.2.255 | 256 |
| 10.10.10.64/26 | 10.10.10.64 | 10.10.10.127 | 64 |
| 10.10.10.128/25 | 10.10.10.128 | 10.10.10.255 | 128 |
| 172.31.255.240/28 | 172.31.255.240 | 172.31.255.255 | 16 |
What is First and Last Address Calculator?
The First and Last Address Calculator is a tool that identifies the 2 endpoints of an IPv4 address block: the lowest address and the highest address. The tool reports the full span of the block, not the usable host range.
Endpoints matter whenever a system stores address space as intervals. Databases, geolocation feeds, and many firewall vendors use a start–end pair. The First and Last Address Calculator converts CIDR notation into that pair without applying host reservation rules.
For a /24 such as 192.0.2.0/24, the first address is 192.0.2.0 and the last is 192.0.2.255. The usable host range (.1 to .254) is a separate calculation.
What are the uses of First and Last Address Calculator?
There are 5 main uses of the First and Last Address Calculator, including database range storage, registry lookups, and documentation.
Storing ranges in databases
SQL tables often store
ip_startandip_endcolumns. The endpoints convert a prefix into those 2 columns.Matching registry records
WHOIS and RIR records show allocations as start–end ranges. The endpoints confirm that a prefix matches a record.
Reserving special-purpose space
Teams blocking
100.64.0.0/10or198.18.0.0/15need the full span, including the network and broadcast positions.Building range-based reports
Spreadsheet reports sort and compare ranges more easily with numeric endpoints.
Documenting address plans
Address plans list each block with its first and last address so readers see the span at a glance.