ip address calculator

IPv4 Subnet Calculator

Quickly calculate network details from an IPv4 address and CIDR prefix.

Enter a standard IPv4 address (0.0.0.0 to 255.255.255.255).
Valid range: 0 to 32. Leave blank if you include /prefix in the IP field.

If you work with home networks, cloud servers, firewalls, or enterprise routing, an IP address calculator can save time and prevent costly mistakes. Instead of manually converting subnet masks or counting host ranges, you can calculate subnet information instantly and with confidence.

What this IP address calculator does

This tool takes an IPv4 address plus a CIDR prefix (such as /24) and returns the core subnet values you usually need for planning or troubleshooting:

  • Subnet mask in dotted decimal (e.g., 255.255.255.0)
  • Wildcard mask (useful for ACLs and network policy rules)
  • Network address
  • Broadcast address
  • First and last usable host addresses
  • Total addresses and usable host count
  • Binary representation for IP, mask, and network
  • IP class and scope hints (private/public/special-use)

How to use the calculator

1) Enter the IPv4 address

Type an address like 10.0.12.34. You can also include CIDR directly, such as 10.0.12.34/20.

2) Enter the prefix length

If you didn’t include CIDR in the first field, enter it separately (0–32). For example:

  • /24 for typical small LAN segments
  • /30 for traditional point-to-point links
  • /32 for a single-host route

3) Click “Calculate”

You’ll immediately get all core subnet math values and an interpretation of what your input means operationally.

Tip: If your result says the entered IP is the network address or broadcast address, that IP usually should not be assigned to a host in normal subnet configurations.

Key subnetting terms in plain English

Network address

The first address in the subnet; identifies the subnet itself.

Broadcast address

The last address in the subnet; used to reach all devices in that subnet (except in special cases like /31 usage).

Usable host range

The addresses typically assignable to devices. In many networks, this excludes network and broadcast.

CIDR prefix

The number after the slash (e.g., /27). It shows how many bits are used for the network portion.

Subnet mask

A dotted decimal format of the same CIDR idea (e.g., /24 = 255.255.255.0).

Common CIDR blocks and host capacities

  • /24 → 256 total addresses, 254 usable hosts
  • /25 → 128 total, 126 usable
  • /26 → 64 total, 62 usable
  • /27 → 32 total, 30 usable
  • /28 → 16 total, 14 usable
  • /29 → 8 total, 6 usable
  • /30 → 4 total, 2 usable
  • /31 → 2 total, typically both usable for point-to-point links
  • /32 → 1 total, host route only

Practical examples

Example A: Home network

192.168.1.55/24 belongs to a network with:

  • Network: 192.168.1.0
  • Broadcast: 192.168.1.255
  • Usable range: 192.168.1.1 to 192.168.1.254

Example B: Splitting a /24 into /26 subnets

Each /26 gives 64 addresses (62 usable), creating four equal subnets for better segmentation and security boundaries.

Example C: WAN links with /31

A /31 subnet contains exactly two addresses and is widely used for point-to-point interfaces where a broadcast address is not needed.

Frequent mistakes and how to avoid them

  • Assigning the network address to a host
  • Assigning the broadcast address to a host
  • Confusing /16 with 255.255.0.0 (always verify mask conversion)
  • Using a subnet too small for current and future hosts
  • Ignoring private vs public IP boundaries in design plans

Final thoughts

Good IP planning improves reliability, security, and scalability. Use this calculator whenever you need quick subnet math for network engineering, system administration, cloud architecture, lab practice, or exam preparation. It turns binary-heavy tasks into simple, accurate results in seconds.

🔗 Related Calculators

🔗 Related Calculators