1001Ferramentas
👥Calculators

IPv4 Subnet Host Count

Enter a CIDR prefix from 0 to 32 for total addresses and usable hosts, 2^(32−n) − 2 after network and broadcast, with /31 and /32 handled separately.

Hosts

IPv4 host count per subnet

To count the usable hosts in an IPv4 subnet, use 2^(32 − n) − 2, with n standing for the CIDR prefix length. You lose two addresses every time: the network address, where all host bits are 0, and the broadcast address, where they're all 1. Run the numbers and a /24 gives 256 − 2 = 254 hosts. A /23 gives 510, a /22 gives 1,022, and a /16 jumps to 65,534. At the small end, a /30 leaves you 2 addresses for point-to-point links, while a /31 also gives 2 thanks to RFC 3021, which skips the reservation entirely. The rules for subnetting come from RFC 950, and VLSM (Variable-Length Subnet Mask) is what lets you mix different prefix sizes inside one allocation.

Applications and context

This math shows up in enterprise network design, when ISPs hand out blocks to customers, when you size CIDR ranges for datacenters or Kubernetes pods, while planning a VPC on AWS/Azure/GCP, and across IP address management (IPAM) in general. The private ranges from RFC 191810.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 — leave more than enough room for just about any internal topology you'd build.

FAQ

Why subtract 2? The first address names the network itself, and the last one is the directed broadcast. Neither is available to hand to a host.

What is special about /31? On point-to-point links, RFC 3021 lets you run a /31 without setting aside the network and broadcast addresses, so you end up with exactly 2 usable addresses.

And /32? That's a single host route. You'll see it on loopbacks, on anycast endpoints, and in firewall rules that target one specific host.

Related Tools

🕳️

Overburden-Corrected SPT (N1)60 — Liao and Whitman

Corrects the SPT blow count already normalized to 60% energy for the effect of vertical effective stress, producing the (N1)60 required by liquefaction and relative density correlations. The overburden factor adopted is that of Liao and Whitman (1986), CN = square root of (100 ÷ vertical effective stress) with stress in kilopascal, capped at 1.7; the result is (N1)60 = N60 × CN. The correction exists because the same soil, at the same density, resists penetration more when it is deeper: without it, a loose sand at 20 metres would look denser than the same loose sand at 3 metres, and the liquefaction potential would be underestimated. The reference pressure of 100 kPa (one atmosphere) and the cap of 1.7 recommended by the 1997 NCEER report were adopted, because without a cap the correction blows up at shallow depths; part of the literature uses 95.76 kPa, which is 1 tsf, and a cap of 2.0, changing the result by a few percent. Enter the measured N60 and the vertical effective stress at the test depth.

🧮

Fabric Thread Count

Compute a woven fabric's thread density by adding the warp threads (lengthwise) and weft threads (widthwise) per centimeter. It is an indicator of construction and quality: higher density usually means a firmer, more durable and fuller fabric. It appears on spec sheets as 'threads/cm' or 'thread count'. Enter the warp and weft threads per cm.

🌐

IPv6 Subnet Calculator

Calculate how many hosts and subnets fit in an IPv6 prefix (/n). A tool for network administrators planning IPv6 addressing.

⏱️

Average Headway

Calculate the average headway (time interval between successive vehicles), h = 3600 ÷ q, dividing 3600 seconds by the flow rate q (vehicles/h). The result, in seconds, is the average time between two consecutive vehicles passing a point. Headway is the inverse of flow: the higher the traffic volume, the shorter the intervals. It is a central concept of traffic flow theory, used in signal design, capacity analysis and car-following models. The smallest safe headway defines the maximum capacity of a lane. Enter the flow rate.

GCD Calculator (Euclidean Algorithm)

Returns the greatest common divisor of two integers through repeated remainder division, the Euclidean algorithm. Signs are ignored and decimals truncated.

🐦

Minimum Bird Cage Size by Species

Pick canary, budgie, cockatiel, lovebird or parrot and read the smallest enclosure in cm, width x depth x height, from 45x30x40 up to 120x90x150.

The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.