IP Subnet Calculator

Find the network, broadcast and address counts for an IPv4 subnet.

Reset

What is this calculator?

Find the network, broadcast and address counts for an IPv4 subnet.

What can you use it for?

Use it for practical planning, conversions, measurement or checking the result described here. Find the network, broadcast and address counts for an IPv4 subnet.

How to use it

  1. Enter ipv4 address.
  2. Enter cidr prefix length.
  3. Select Calculate (or Generate for random tools).
  4. Read the answer and any additional results below the form. Check the units and the limits of the method.

Formula and method

Network = address AND subnet mask
Broadcast = network OR inverted mask

The CIDR prefix determines the number of host bits. /31 and /32 have special address-count semantics.

Worked example

IPv4 address: 192.168.1.10, CIDR prefix length: 24. The result is 192.168.1.0/24 (network).

Assumptions and limits

IPv4 only. /31 uses point-to-point semantics and /32 is a single address.

Frequently asked questions

What inputs does the IP Subnet Calculator need?

Use ipv4 address, cidr prefix length. Read the answer and any additional results below the form. Check the units and the limits of the method.

What assumptions apply to the IP Subnet Calculator?

IPv4 only. /31 uses point-to-point semantics and /32 is a single address.

A little help with the numbers

Smart input · AI explanations when connected