Skip to content

IPv4 Subnet Calculator

Result

Calculated result 254 Based on the values entered.
↗ Math

IPv4 Subnet Calculator — free online calculator.

Formula

Usable Hosts = 2^(32−CIDR) − 2
  • IPv4 Subnet Calculator calculates its result from IP Octet 1, IP Octet 2, IP Octet 3, IP Octet 4, CIDR Prefix. It uses the formula Usable Hosts = 2^(32−CIDR) − 2. Change any input to recalculate the result instantly.
  • The main inputs are IP Octet 1, IP Octet 2, IP Octet 3, IP Octet 4, CIDR Prefix. Enter them in the units and format shown in the calculator.
  • Keep comparable quantities in compatible units whenever the formula combines or compares them.
  • Changing any input above recalculates the result with the same calculation engine used by this page.

Example: IPv4 Subnet

Inputs
  • IP Octet 1: 192
  • IP Octet 2: 168
  • IP Octet 3: 1
  • IP Octet 4: 0
  • CIDR Prefix: 24

Using IP Octet 1 = 192, IP Octet 2 = 168, IP Octet 3 = 1, IP Octet 4 = 0, CIDR Prefix = 24, the calculated result is 254.

Sample result: Calculating…

Frequently asked questions

What does the IPv4 Subnet calculate?

IPv4 Subnet Calculator — free online calculator.

Which values should I enter?

Enter IP Octet 1, IP Octet 2, IP Octet 3, IP Octet 4, CIDR Prefix using the units and format shown beside each field.

What formula does this calculator use?

The calculator uses the following relationship: Usable Hosts = 2^(32−CIDR) − 2.

Why might my result differ from another source?

Results can differ when another source uses different units, rounding rules, conventions or assumptions. Compare the inputs and definitions before comparing results.

Does the result update automatically?

Yes. Changing an input updates the result using the same calculation engine shown on this page.

Page information

Updated: October 7, 2026