IPv4 Subnet Calculator

Calculate the network address, broadcast address, and usable host range for an IPv4 subnet.

Calculate

Enter your values below.

Result

Network address
0
Broadcast address
0
Usable host range
0
Usable hosts
0

Formula used

The subnet mask (derived from the prefix length) is applied to the IP to find the network address; the broadcast address is the last address in that range.

Example: 192.168.1.50/24 → network 192.168.1.0, broadcast 192.168.1.255, 254 usable hosts.

How to use this calculator

  1. Enter IP address, Subnet prefix length (/n).
  2. Press Calculate to see your result instantly.

Frequently asked questions

What is a subnet prefix (/24)?

It indicates how many leading bits of the 32-bit address are the network portion — /24 means a 255.255.255.0 mask.

What is the network address used for?

It identifies the subnet itself and can't be assigned to a host.

What is the broadcast address?

The highest address in the subnet, used to send data to every host on that subnet.

Why are 2 addresses subtracted from the host count?

The network and broadcast addresses are reserved and can't be assigned to individual devices.