DevMate
Back to Toolverse

Network

IPv4 Subnet Calculator

Calculate a network, mask, range, and host-count convention from an IPv4 address and CIDR prefix.

Local processing
Loading tool workspace...

About this tool

When to use it

Calculate a network, mask, range, and host-count convention from an IPv4 address and CIDR prefix.

How to use it

Enter a dotted IPv4 address and a prefix from 0 to 32, then calculate. Compare network and host boundaries with your routing plan before copying or downloading the report.

Guide updated . Examples checked against this implementation.

Worked examples

A conventional /24 network

Input

192.168.1.10 with prefix 24

Expected output

Network: 192.168.1.0; Broadcast: 192.168.1.255; Mask: 255.255.255.0; Usable hosts: 254

The normal host range is .1 through .254. The entered address identifies the subnet even though it is not the network address.

Errors and unsupported input

Prefix 33 or octet 256

Use a prefix from 0–32 and four decimal octets from 0–255. IPv6 needs a separate addressing model.

Continue this workflow

Questions

Frequently asked questions

Are all displayed host addresses available?

No. The range is mathematical. Existing assignments and network policy determine which addresses can actually be used.