Everyday calculators

IPv4 Subnet Calculator

IPv4 address · CIDR prefix length

IPv4 Subnet Calculator

Network address—
Subnet mask—
Usable address range—
Usable addresses—
Broadcast address—
Next subnet—

A /31 is treated as a point-to-point link, and a /32 as a single host address. RFC 3021

How the calculation works

Method

IPv4 address and prefix length determine network and address range. A prefix with n network bits leaves 32 − n bits for the subnet addresses.

Worked example

192,168,110 with the prefix /24 belongs to the network 19,216,810/24. The block includes 256 addresses from 19,216,810 to 1,921,681,255.

Understanding the result

In common subnets, the network and broadcast addresses are reserved. Special uses apply to /31 and /32, which are taken into account separately when calculating the number of hosts.