Skip to calculators
calcmintly

IPv4 Subnet

Find a network, broadcast address and conventional host range.

Add to workspace

Your numbers

Local calculations. Results are estimates, not professional advice.

Network

—

For /31 point-to-point both addresses are shown as hosts; /32 has one address. Does not determine routability or provider-reserved addresses.

Formula

Use B = 2^(32−p) and N = floor(A/B)×B. p is the prefix length, A is the integer address, B is the address block size, and N is the network address.

Find a network, broadcast address and conventional host range.

Worked example

IPv4 address
192.168.1.10
Prefix length
24
Network
192.168.1.0/24
Subnet mask
255.255.255.0
Last address
192.168.1.255
Address count
256
Conventional usable hosts
254
First host
192.168.1.1
Last host
192.168.1.254

Scope and limitations

For /31 point-to-point both addresses are shown as hosts; /32 has one address. Does not determine routability or provider-reserved addresses.

Inputs are checked for missing values and allowed ranges. A result outside the finite numeric range is not displayed. Rounding affects display, while the calculation uses the model’s numeric precision.

Check your units and assumptions before relying on a result. Changing a label does not convert a currency or physical unit.

Formula version: 8cc3d254dbd8 · Example checked:

Methodology

Related tools