Home/Networking Tools/Subnet calculator

Subnet calculator

Subnet Calculator

Enter an IP address and prefix length to get the network, host range, and mask details instantly.

Waiting Mask Hosts
IP addressIPv4 only
Prefix length/0 to /32
CIDR notation (optional)IP/prefix

Start with any IPv4 address. Results update live as you type.

Quick guide

  • Use the prefix length to control how many hosts live inside the subnet.
  • Network and broadcast boundaries update automatically from the IP and prefix.
  • /31 and /32 are special cases for point-to-point and single-host links.

CIDR preview

Subnet summary

Network address

Network CIDR

Broadcast address

Input IP role

Host range

Usable range

Usable hosts

Host bits

Total addresses

Block size

Mask details

Prefix length

Subnet mask

Wildcard mask

Binary view

IP address

Subnet mask

Network address

Common masks

/24255.255.255.0
/16255.255.0.0
/8255.0.0.0
/30255.255.255.252
/32255.255.255.255

Notes for planners

/31 subnets are commonly used for point-to-point links and treat both addresses as usable.

/32 represents a single host route, so network and host address are the same.

For larger allocations, use the total address count to estimate capacity before adding reserved ranges.

How it works

Parses your IPv4 address and prefix, builds the subnet mask, and derives network, broadcast, usable range, and binary views entirely in the browser.

  • Usable hosts drop as the prefix grows (/32 is a single host, /31 is point-to-point).
  • IPv6 is not supported here; this tool focuses on IPv4 CIDR.

Quick examples

Home LAN
192.168.1.10/24
Usable hosts: 254 (192.168.1.1 – 192.168.1.254)
Point-to-point
10.0.0.0/31
Usable hosts: 2 (10.0.0.0 – 10.0.0.1)

Copy any value to clipboard with the buttons above each card.

Mini FAQ

Why are two addresses unusable on /24?

Network and broadcast addresses are reserved on prefixes up to /30.

When do /31s make sense?

Use /31 for point-to-point links where both addresses are endpoints.

Why is my CIDR not applied?

Ensure the format is IP/prefix (e.g. 203.0.113.5/27) and the prefix is 0–32.