Skip to main content
eyunzhu

IPv4 subnet calculator

Calculate the network, broadcast, usable address range and host count from an IPv4 address with a CIDR prefix or subnet mask.

Processed in this browser. Nothing is uploaded or saved.

About this tool

Check address boundaries before planning or reviewing a network. This is a local calculation, not a lookup of geolocation or devices using the addresses.

How to use

Enter an address such as 192.168.1.100/24, or provide the address and a contiguous subnet mask separately. A prefix included in the address takes precedence. Results include the network, wildcard mask, broadcast and usable range.

Prefixes /0–/32 are supported. A /31 uses point-to-point semantics with two addresses; /32 represents one host. Neither lists a broadcast address. This does not look up geolocation or live network settings, and does not support IPv6.

Common questions

Why is there no broadcast address for /31 or /32?

The calculator treats /31 as a point-to-point link with two addresses and /32 as a single host. Ordinary subnets reserve network and broadcast addresses. Counts do not guarantee assignability.

What does 192.168.1.100/24 produce?

The network is 192.168.1.0, broadcast is 192.168.1.255 and ordinary host range is .1–.254: 254 host addresses. The calculator does not check which are already occupied.

Why is the separate mask field disabled?

A prefix written in the address takes precedence. Remove /24 to enter a separate mask such as 255.255.255.0. Masks must have contiguous one bits; 255.0.255.0 is invalid.

Comments

0
to join the discussion.
No comments yet.
Reply thread

Follow the complete conversation chronologically; each reply identifies the specific message it answers.