Skip to content
CalculatorBuddy

IP Subnet Calculator

Calculate IPv4 and IPv6 networks, ranges, masks, host counts, identifiers, and address representations from an IP address and prefix.

IPv4 Subnet Calculator

ExampleSample values — edit any field to see your result.

Network class

Results update as you type.

Inspect IPv4 or IPv6 networks from an address and CIDR prefix. The results include address boundaries and the detailed representations commonly needed for routing, firewall, DNS, and network-planning work.

Formula

network = IP AND subnet mask

broadcast = network OR wildcard mask

IPv4 total addresses are 2^(32 − prefix). IPv6 total addresses are 2^(128 − prefix).

Examples

43.241.146.32/24

The network is 43.241.146.0, broadcast is 43.241.146.255, and the conventional usable range is 43.241.146.1–254: 254 usable hosts.

IPv6 documentation address /64

2001:db8:85a3::8a2e:370:7334/64 belongs to 2001:0db8:85a3:0000:: and contains 2⁶⁴ addresses.
Calculator results describe address math. Confirm allocation, reserved ranges, and point-to-point behavior against the standards and your network platform.

Frequently asked questions

What does a CIDR prefix mean?
The number after the slash is the count of leading network bits. IPv4 /24 leaves 8 host bits and contains 256 total addresses.
Why are two IPv4 addresses normally unusable?
Traditional IPv4 subnets reserve the first address as the network address and the last as the broadcast address. Point-to-point /31 and host /32 networks follow special rules, and this calculator matches calculator.net by reporting zero conventional usable hosts.
How many addresses are in an IPv6 /64?
It contains 2 to the power of 64 addresses, or 18,446,744,073,709,551,616.
What is a wildcard mask?
It is the bitwise inverse of an IPv4 subnet mask and is commonly used in routing and access-control rules.

Related calculators