Network
IP Subnet Calculator
Calculates the network address, broadcast address, usable host range, subnet mask and host count from an IPv4 address and CIDR prefix. All calculations run locally in the browser.
Calculate IPv4 network
Enter an IPv4 address and a CIDR prefix. Optionally export the result as text, Markdown or CSV.
Overview
Output
Subnet table
| Property | Value | Note |
|---|
Next subnets
| No. | Network address | Broadcast | Host range |
|---|
Notes
The calculator works with IPv4 addresses and CIDR prefixes from /0 to /32. /31 and /32 are special cases: /31 is often used for point-to-point links, while /32 describes a single address.
Understanding CIDR
An input such as 192.168.1.25/24 combines an IPv4 address with the length of the network part. /24 means that 24 bits belong to the network and 8 bits to the block's host part. A longer prefix creates smaller networks; a shorter prefix creates larger networks.
- Network address: first address in the block, with host bits set to 0.
- Broadcast: last address in the block, with host bits set to 1.
- First/last host: the usual usable range between network and broadcast.
- Host count: the total number of addresses and, for normal networks, the number remaining after network and broadcast addresses.
Examples to verify
192.168.1.25/24→ network192.168.1.0, mask255.255.255.0, broadcast192.168.1.255, hosts192.168.1.1–192.168.1.254, 256 addresses / 254 usable hosts.10.10.8.0/21→ mask255.255.248.0, network10.10.8.0, broadcast10.10.15.255, hosts10.10.8.1–10.10.15.254, 2,048 addresses / 2,046 usable hosts.198.51.100.0/31→ both.0and.1are treated as endpoint addresses on the point-to-point link; the calculator shows 2 hosts.203.0.113.7/32→ network, broadcast, first host, and last host are the same address; the block contains exactly 1 address.
The /31 interpretation applies in the appropriate point-to-point context. RFC 3021 describes using both addresses of such a link as endpoints. A /32 is one address, often used for a host or route entry.
Calculator limits
The tool validates and calculates IPv4 blocks from /0 through /32. It does not process IPv6; an IPv6 prefix such as /64 is outside this calculator's scope.
The result is an arithmetic classification. It does not prove route reachability, device responses, or a matching firewall, VLAN, DHCP, or cloud configuration. The labels private, public, loopback, link-local, multicast, reserved, or documentation are broad address classifications, not statements about a specific environment.
Test valid and invalid input as well as /24, /20, /31, and /32. Also check next subnets, text/Markdown/CSV export, and both language versions.
Further reading: RFC 3021 and RFC 4632 on CIDR.