/tools/ip-subnet-calculator

IP & Subnet Calculator

Calculate IPv4 and IPv6 CIDR ranges, subnet masks, usable hosts, cloud reservations, splits and aggregation with exact local arithmetic.

ip-subnet://local

1. Calculate

Address and CIDR

Press Enter to calculate.

Enter an address and prefix.

Sharing is explicit. The copied URL fragment stores only the canonical CIDR and selected profile; URL fragments are not sent in the page request.

2. Split

Divide a CIDR

Up to 10,000 child ranges.

3. Size

Recommend a prefix

Reservation profile is shared with the calculator.

4. Aggregate

Combine adjacent routes

IPv4 and IPv6 must be aggregated separately.
Ready. All address arithmetic stays in this browser.

/worked examples

Common IP calculator examples

QuestionInputWhat the result demonstratesTry it
What network contains this host?192.168.50.42/24Network, broadcast, mask and usable IPv4 range
How does a point-to-point subnet work?198.51.100.10/31Two usable RFC 3021 addresses without broadcast exclusion
What is an IPv6 /64 range?2001:db8:1234:5678::1/64Canonical IPv6 network and exact 128-bit address count
How many AWS addresses are usable?10.20.30.40/24Informational AWS primary IPv4 reservations

The public CIDR test vectors and reproduction notes cover IPv4, IPv6 and special prefixes.

/reference

CIDR special cases

RangeBehaviour
IPv4 /31Two point-to-point addresses; no network or broadcast exclusion.
IPv4 /32One host route.
IPv6 /127Two point-to-point addresses.
IPv6 /128One IPv6 address.

/cloud profiles

Validated reservation calculations

The profiles accept documented IPv4 subnet sizes only: AWS /16–/28, Azure /2–/29 and Google Cloud primary ranges /4–/29. AWS and Azure reserve the first four and final address; Google Cloud primary ranges reserve the first two and final two. Provider-specific services, secondary ranges and bring-your-own-IP exceptions can differ, so verify the current AWS, Azure and Google Cloud documentation before deployment.

/faq

IP and subnet calculator questions

What does CIDR notation mean?

CIDR combines an IP address with a slash prefix. For example, 192.168.50.42/24 says that the first 24 bits identify the network.

Is any address sent to a lookup service?

No. The tool performs deterministic local arithmetic and does not geolocate or validate ownership.

Does this IP calculator support IPv6?

Yes. Standard IPv4 and IPv6 arithmetic uses exact BigInt values, including /127 and /128 cases. Cloud reservation profiles apply only to their supported IPv4 subnet sizes.

How are cloud-reserved addresses calculated?

The selected profile validates the address family and provider prefix range before applying its documented unusable-address offsets. Unsupported combinations return an error instead of an estimated range.

What is route aggregation?

Adjacent sibling CIDRs can be combined into their common parent when the boundary and prefix permit it. Contained child ranges are removed.