فارسی

Subnet Calculator: Network, Mask & Usable Hosts

Enter an IP address such as 192.168.1.10/24 to see the network range and usable addresses. You can also divide that range into smaller subnets.

The arithmetic runs in your browser, and the address you enter is not sent anywhere.

This is address arithmetic only: it does not say whether a range is free on your network, already allocated, or reachable from the internet. The scope label comes from IANA’s special-purpose range list.

About this tool

A prefix such as /24 sets the size of the network. The calculator uses the address and prefix to find the network address, mask, and range. In IPv4, prefixes from /0 through /30 set aside the first and last addresses for the network and broadcast. A /31 point-to-point link can use both addresses, and a /32 contains a single address. IPv6 has no broadcast address, and its count includes every address in the range. The calculation runs in your browser and never sends the address.

How to use it

  1. 1

    Enter an address with its prefix, such as 192.168.1.10/24 or 2001:db8::/48.

  2. 2

    Read the network address, mask, usable range, and counts in the summary and cards.

  3. 3

    Change the new prefix to see how the block splits into smaller subnets.

Frequently asked questions

What is the difference between a network and a host address?

The network address is the first address of the block, with all host bits cleared; a host address is one assigned to a device. In 192.168.1.10/24, the address 192.168.1.10 is a host inside the 192.168.1.0/24 network. The tool shows the network address and notes that your input was a host address.

Why does a /31 have two usable addresses?

Older rules set aside the first and last address of every block, but RFC 3021 allows both addresses of a /31 to be used on point-to-point links. This tool follows that rule. A /32 is a single host route: the one address is the host, and there is no separate broadcast address.

Why is there no broadcast address in IPv6?

IPv6 uses multicast and anycast instead of broadcast, so the last address of a block does not need to be reserved. The IPv6 count includes the entire range. In practice, the first address may be reserved for subnet-router anycast.

How are the large IPv6 numbers calculated?

With BigInt rather than ordinary floating-point numbers. A /64 holds about 1.84 times 10 to the 19th addresses and a /48 about 2.8 times 10 to the 14th; both are shown digit by digit without rounding. Splitting keeps the same precision, so the subnet list and the total count always agree.

Does this tell me whether an address is reachable on the internet?

No. The calculation is address arithmetic only. Labels such as "private network" or "documentation" come from IANA’s special-purpose range list and say nothing about real allocation, routing, or whether a path is open. Use network tools for reachability.