Converter Web ToolsConverter WebTools

Subnet Calculator (IPv4 / CIDR)

Subnet Calculator — get the answer instantly in your browser, free and private.

/
Enter any IPv4 address and a CIDR prefix (or pick a mask). Results update instantly.
Network address
Usable host range
Broadcast address
Subnet mask
Wildcard mask
CIDR notation
Total addresses
Usable hosts
IP class
Type
Network (binary)

About the subnet calculator

A subnet calculator works out the details of an IPv4 network from an IP address and a CIDR prefix (or subnet mask). It shows the network and broadcast addresses, the usable host range, the subnet and wildcard masks, the number of total and usable hosts, the IP class, whether the address is public or private, and the network in binary. It is an essential tool for network administrators and anyone studying networking.

How Subnet Calculator works

How to use the subnet calculator

  1. Enter an IPv4 address (for example 192.168.1.10).
  2. Choose a CIDR prefix from /0 to /32 — the matching subnet mask is shown beside it.
  3. All the subnet details update instantly below.

What the results mean

The network address is the first address in the block and the broadcast address is the last; the usable host range is everything in between. The subnet mask defines how many bits are the network portion, and the wildcard mask is its inverse (used in ACLs). Usable hosts equal total addresses minus the network and broadcast addresses.

CIDR in brief

CIDR notation like /24 means the first 24 bits identify the network, leaving 8 bits (256 addresses, 254 usable) for hosts. Smaller prefixes mean bigger networks: /16 has 65,536 addresses, /30 has just 4.

Common uses

  • Plan and size IP subnets
  • Find the network and broadcast address
  • Work out the usable host range
  • Convert between CIDR prefix and subnet mask
  • Count usable hosts in a subnet
  • Check if an IP is public or private
  • Study for networking exams (CCNA, etc.)
  • Build firewall and ACL rules with wildcard masks

Frequently asked questions

How do I calculate a subnet?
Enter an IPv4 address and a CIDR prefix; the network, broadcast, host range, masks and host counts are calculated instantly.
What is CIDR notation?
A shorthand like 192.168.1.0/24 where the number after the slash is how many leading bits are the network portion.
How many usable hosts are in a /24?
254 — a /24 has 256 addresses, minus the network and broadcast addresses.
What is the difference between subnet and wildcard mask?
The subnet mask marks the network bits (e.g. 255.255.255.0); the wildcard mask is its inverse (0.0.0.255), used in access-control lists.
What are /31 and /32 used for?
/32 is a single host; /31 is a 2-address point-to-point link (RFC 3021) with no separate network/broadcast.
Is my data uploaded?
No — all the maths runs in your browser.
Does it support IPv6?
This calculator is for IPv4. IPv6 uses a different addressing scheme.
How do I know if an IP is private?
Private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 — the tool labels these automatically.