Subnet Calculator

Subnet Calculator (IPv4 CIDR)

Enter an IPv4 address and a prefix length (CIDR such as /24) or a subnet mask (such as 255.255.255.0). The network address, broadcast address, usable host range, number of hosts, wildcard mask and binary representation are calculated instantly. A table of all subnet masks from /0 to /32 is included below.

You can also enter 192.168.1.10/24

Or type a mask or wildcard mask

Results

Binary view

Yellow bits are the network part; the rest is the host part.

Subnet mask and CIDR table

Select a row to use that prefix length.

CIDRSubnet maskWildcardAddressesUsable hosts
  • For /31 networks both addresses are counted as usable (point-to-point links, RFC 3021); for /32 the single address is the host.
  • Address types follow the IANA special-purpose address registry. IPv6 is not supported.
  • Calculation happens on this page only; nothing you enter is sent anywhere.

About this tool

Enter an IPv4 address with a CIDR prefix (such as /24) or a subnet mask (such as 255.255.255.0) to calculate the network address, broadcast address, usable host range and count, wildcard mask, binary view and address type (private, public and more). A full subnet mask and CIDR table from /0 to /32 is included; select a row to calculate with it. All calculation runs in your browser.

How to use

  1. Enter an IPv4 address such as 192.168.1.10 in IP address, or type 192.168.1.10/24 in one go.
  2. Choose the prefix in CIDR / subnet mask, or type a subnet mask or wildcard mask.
  3. Results show the network and broadcast addresses, usable range, host count and more.
  4. Check the network and host bits in the binary view, and use Copy to copy all results.

Useful for

  • Checking the usable IP range when configuring a router or office network
  • Planning server or cloud (VPC) subnets
  • Writing CIDR ranges or wildcard masks for firewall and ACL rules
  • Practicing subnetting for networking exams such as CCNA

FAQ

How does CIDR relate to a subnet mask?

/24 means the first 24 of 32 bits are the network part, the same as the mask 255.255.255.0. The table on this page lists every prefix from /0 to /32.

Why are there two fewer usable hosts?

The first address is the network address and the last is the broadcast address, so they are not assigned to devices (except for /31 and /32).

What is a wildcard mask?

It is the inverse of the subnet mask (0.0.0.255 for 255.255.255.0), used in Cisco access lists and OSPF. You can type a wildcard mask into this calculator.

Does it support IPv6?

No, this calculator is for IPv4 only.

Need help with your office network or servers?

We set up servers, domains, DNS and access restrictions for business websites and internal systems.

Contact us
Contact