SUBNET CALCULATOR

Subnet calculator, CIDR maths, instantly.

Enter an IPv4 address and CIDR prefix to get the network address, broadcast address, host count and subnet mask. Runs locally in your browser.

Input

Presets:

Results

Network address
192.168.1.0
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Usable hosts
254
Total addresses
256
First usable
192.168.1.1
Last usable
192.168.1.254

Quick reference

CIDRSubnet maskUsable hosts
/30255.255.255.2522
/29255.255.255.2486
/28255.255.255.24014
/27255.255.255.22430
/26255.255.255.19262
/25255.255.255.128126
/24255.255.255.0254

Everything runs locally in your browser

What can this tool do?

Enter any IPv4 address and CIDR prefix length to instantly get that subnet network address, broadcast address, subnet mask and wildcard mask, total addresses and usable host count (network and broadcast addresses subtracted), plus the first and last usable host IPs. The reference table lists common /24 to /30 divisions for quick checking. Useful for exam prep, network planning and troubleshooting — everything runs locally.

FAQ

Why is the usable host count lower than the total?

Each IPv4 subnet reserves two addresses: the network address and the broadcast address. So usable hosts equal total minus two — except /31 and /32, which are point-to-point and host routes and do not subtract.

What does the number after the slash mean?

It is the network prefix length, i.e. how many leading bits belong to the network. A /24 gives subnet mask 255.255.255.0.

Further reading

觉得好用?Found it useful?