IPv4 Subnet Calculator

Calculate detailed IPv4 subnet info — class, type, mask in multiple formats, and usable addresses

  1. Home
  2. /
  3. IPv4 Subnet Calculator

What Is an IPv4 Subnet Calculator?

An IPv4 subnet calculator computes detailed information about an IP address and its subnet, including network class (A, B, C, D, E), address type (private, public, loopback, link-local), subnet mask in decimal, binary, and hexadecimal formats, CIDR notation, network address, broadcast address, first and last usable host addresses, and the total number of usable hosts.

Network administrators, engineers, and students use subnet calculators to plan IP address allocations, design network topologies, troubleshoot connectivity issues, and understand how subnetting works. It also supports subnetting with a new prefix length to see how a network can be divided into smaller subnets.

How to Use This Tool

  1. Enter an IP address or CIDR — Type an IPv4 address with optional prefix length (e.g., 192.168.1.0/24). Use example buttons for quick testing.
  2. Select a new prefix (optional) — Choose a different prefix length to see how the network can be subnetted.
  3. Click Calculate — The tool computes and displays all subnet details.
  4. Review the results — Check IP class, address type, subnet mask in multiple formats, network and broadcast addresses, host range, and usable host count.
  5. Try different examples — Click example buttons to see calculations for common private ranges, public IPs, and special address blocks.

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation specifies an IP address and its subnet mask using a prefix length. For example, 192.168.1.0/24 means the first 24 bits are the network portion and the remaining 8 bits are for host addresses.

What is the difference between total hosts and usable hosts?

Total hosts are all addresses in the subnet (2^(32-prefix)). Usable hosts exclude the network address (all host bits zero) and broadcast address (all host bits one), which are reserved and cannot be assigned to devices.

How do I know if an IP is private or public?

The tool automatically classifies addresses. Private ranges include 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. Link-local (169.254.0.0/16) and loopback (127.0.0.0/8) are also identified.

What does subnetting with a new prefix do?

It shows how a network can be divided into smaller subnets. For example, a /24 network (256 addresses) can be subnetted into two /25 networks (128 addresses each) or four /26 networks (64 addresses each).

Is this tool free to use?

Yes. This tool is completely free with no usage limits or registration required. All calculations are performed locally in your browser.

Last updated: 9 Jul 2026