Subnet calculator - Calculate IPv4, CIDR, and subnet masks

Calculate a network range and subnet details from IPv4 and CIDR

  • IPv4 and CIDR
  • Calculate IP range
  • Calculate host count

Results

Enter an IPv4 address and CIDR to see subnet details.

About this tool

  • Calculate the network address, subnet mask, and IP address range from an IPv4 address and CIDR.
  • See the total number of addresses and usable host range, including the /0 to /32 boundaries. /31 is handled according to RFC 3021, and /32 is treated as a host route.
  • All calculations run in your browser. Your IP address and CIDR are not sent externally or stored.

How to use

  1. Enter an IPv4 address and CIDR

  2. Calculate the subnet

  3. Copy a result

Frequently asked questions

What is a subnet?
What does /24 mean in CIDR?
What is the difference between a subnet mask and CIDR?
What is a network address?
What is a broadcast address?
Why are there two fewer usable hosts than total addresses?
Why can both addresses in a /31 be used?
What is /32?
Does this tool support IPv6?
Is my IP address sent externally?
← Back to tools