# IP Subnet Calculator

- Link: https://bestwebdeveloper.org/tools/ip-subnet-calculator/
- Published: 2026-10-15T17:47:24+00:00
- Author: Best Web Developer

## What the IP Subnet Calculator does

An IPv4 subnet is defined by an address and a prefix length such as /24. The prefix
sets how many bits identify the network; the rest identify hosts. This calculator
works out the network and broadcast addresses, the usable host range and the masks.

## Formula

 * Block size = 2^(32 − prefix)
 * Network = address rounded down to a multiple of the block size
 * Broadcast = network + block size − 1
 * Usable hosts = block size − 2 (except /31 and /32)

## Worked example

Using the starting values in the calculator above:

  |  Input |  Value |  
   |  IPv4 address |  192.168.10.37 |  
 |  Prefix length |  /24 |

  |  Result |  Value |  
   |  Network address |  192.168.10.0/24 |  
 |  Usable hosts |  254 |  
 |  First usable host |  192.168.10.1 |  
 |  Last usable host |  192.168.10.254 |  
 |  Broadcast address |  192.168.10.255 |  
 |  Subnet mask |  255.255.255.0 |  
 |  Wildcard mask |  0.0.0.255 |  
 |  Total addresses |  256 |

## How to read the result

A /31 is a special case used for point-to-point links, where both addresses are 
usable. A /32 identifies a single host.

The wildcard mask is the inverse of the subnet mask and is used in router access
lists and some firewall rules.

## Related calculators

 * [Data Transfer Speed Calculator](https://bestwebdeveloper.org/tools/data-transfer-speed-calculator/):
   Calculate how long a file or backup takes to transfer at a given connection speed,
   allowing for protocol overhead.
 * [IT Ticket Backlog Burn-down Calculator](https://bestwebdeveloper.org/tools/it-ticketing-backlog-burn-down-calculator/):
   Calculate how long it takes to clear a support ticket backlog and the closure
   rate or staff needed to hit a deadline.
 * [Penetration Testing Cost Estimator](https://bestwebdeveloper.org/tools/penetration-testing-cost-estimator/):
   Estimate penetration test effort and cost from applications, IP ranges, internal
   testing, reporting and retesting.
 * [Data Breach Cost Estimator](https://bestwebdeveloper.org/tools/data-breach-cost-estimator/):
   Estimate the cost of a data breach from records exposed and response costs, plus
   the annualised expected loss.

Browse every calculator in [SaaS and Technology Calculators](https://bestwebdeveloper.org/tool-category/saas-tech-calculators/),
or talk to us about [web and SaaS development](https://bestwebdeveloper.org/services/web-development/).
