IPv4 Network Tool

Subnet Calculator

Calculate IPv4 network details instantly from an address and CIDR prefix: network, broadcast, subnet mask, wildcard mask, usable range, address counts, binary view, and smaller subnet splits.

Calculate an IPv4 subnet

Enter an IPv4 address. You can include the prefix directly, such as 192.168.1.10/24, or choose it separately.

VALID IPv4 SUBNET—
Network address—
Broadcast address—
Subnet mask—
Wildcard mask—
First usable—
Last usable—
Total addresses—
Usable addresses—
Host bits—
Address position—
IP class—
Private range—

Binary view

IP—
Mask—
Network—

Split this network into smaller subnets

Choose a longer prefix. The tool will show the subnet count and a preview of the resulting networks.

Preview is limited to the first 16 subnets for very large splits.
#NetworkFirst usableLast usableBroadcast

What is a subnet calculator?

A subnet calculator converts an IPv4 address and CIDR prefix into the key values used to plan and troubleshoot networks. It determines the network boundary, address range, broadcast address, mask, wildcard mask, and number of addresses in the subnet.

Understanding CIDR prefixes

CIDR prefixes range from /0 to /32. A /24 uses 24 network bits and leaves 8 host bits, which creates 256 total IPv4 addresses. A /30 leaves 2 host bits and creates 4 total addresses.

Special cases: /31 and /32

A /31 contains two addresses and is commonly used on point-to-point links under RFC 3021, where both addresses can be used as endpoints. A /32 identifies one exact IPv4 address rather than a multi-address subnet.

Subnet mask vs wildcard mask

The subnet mask has 1 bits for the network portion and 0 bits for the host portion. The wildcard mask is its inverse. Wildcard masks are commonly seen in routing, access-control, and network configuration syntax.

Subnet Calculator FAQ

What does /24 mean?

A /24 prefix means the first 24 bits identify the network. Its subnet mask is 255.255.255.0, leaving 8 bits for addresses inside that network.

How many usable addresses are in a /24?

A traditional /24 contains 256 total IPv4 addresses. After excluding the network and broadcast addresses, 254 are available for ordinary host assignment.

Why does /31 show two usable addresses?

/31 networks are commonly used for point-to-point links. RFC 3021 allows both addresses to be used as endpoints, so this calculator treats both as usable.

Does this calculator support IPv6?

This page is intentionally focused on IPv4 subnetting. IPv6 uses different addressing and subnet-planning conventions and is better handled with a dedicated IPv6 calculator.