Skip to content

Subnet Calculator

Enter an IPv4 address with a CIDR prefix or subnet mask to find its network, broadcast address, usable host range and address count. View the binary boundaries or split the network into equal-sized subnets.

Use an IP, IP/CIDR, or IP and dotted subnet mask.

Calculated network

192.168.1.128/26

Usable hosts

62

Total IPs

64

Usable host range

192.168.1.129 – 192.168.1.190

Subnet details

Entered IP

192.168.1.130

Network address

192.168.1.128

Broadcast address

192.168.1.191

Subnet mask

255.255.255.192

Wildcard mask

0.0.0.63

Entered IP type

Private (RFC 1918)

Legacy class

C

Binary breakdown

26 network bits highlighted; 6 host bits in grey.

Entered IP
Subnet mask
Network address
Upper boundary
Split this subnet

Divide 192.168.1.128/26 into equal-sized networks.

Subnets 4IPs each 16

192.168.1.128/28

192.168.1.129 – 192.168.1.142

192.168.1.144/28

192.168.1.145 – 192.168.1.158

192.168.1.160/28

192.168.1.161 – 192.168.1.174

192.168.1.176/28

192.168.1.177 – 192.168.1.190

How to use the Subnet Calculator

Enter an IPv4 address such as 192.168.1.130/26, or enter 192.168.1.130 and choose /26 from the prefix menu. You can also paste 192.168.1.130 255.255.255.192. If you enter an address without a suffix, the selected prefix is used. Results update as you edit the input.

You can enter an ordinary host address; it does not have to be the first address in the network. The calculator returns the CIDR block that contains it. In this example, 192.168.1.130/26 resolves to 192.168.1.128/26.

Understanding the subnet results

The calculated network is the starting address of the CIDR block, paired with its prefix. For ordinary IPv4 subnets, the upper boundary is the broadcast address. The addresses between those boundaries form the conventional usable host range.

A wildcard mask is the bitwise inverse of the subnet mask. It is commonly used in access control lists and some routing configurations. The table below explains each result rather than treating every address as interchangeable.

What each result means

What each result means
ResultMeaningTypical use
CIDR blockNormalized network address followed by its prefixRoutes, firewall rules, network documentation
Network addressFirst address in the calculated blockIdentifying a subnet
Broadcast / upper boundaryLast address in the block; a directed broadcast for ordinary /0–/30 subnetsFinding the top of an IPv4 range
Usable host rangeConventionally assignable addresses, with /31 and /32 exceptionsAddress planning and interface checks
Subnet maskLeading network bits set to oneNetwork interface settings and mask conversion
Wildcard maskBitwise inverse of the subnet maskACLs and wildcard-based network matching

Swipe horizontally to view the full table.

CIDR prefixes and subnet masks

An IPv4 address has 32 bits. A CIDR prefix such as /26 fixes the first 26 as network bits and leaves six host bits. That gives 2^6, or 64, total addresses. The matching subnet mask is 255.255.255.192; its wildcard mask is 0.0.0.63.

The last octet of 192.168.1.130 is 10000010 in binary. Applying the /26 mask (11000000) gives 10000000, or 128, as the network boundary. The binary breakdown in the calculator shows the same network/host-bit division for every octet.

Use the reference chart for common CIDR prefix lengths. The usable-address column applies conventional subnet rules, with separate interpretations for /31 point-to-point links and /32 host routes.

IPv4 CIDR and subnet mask chart

Usable values are generic IPv4 counts, not cloud-specific allocations. For /31, the two addresses are point-to-point endpoints; /32 represents one exact address.

IPv4 CIDR and subnet mask chart
PrefixSubnet maskTotal IPsUsable
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422 (point-to-point)
/32255.255.255.25511 (host route)

Swipe horizontally to view the full table.

Split an IPv4 network into smaller subnets

Open Split this subnet and choose a longer prefix than the calculated parent network. Splitting 192.168.1.128/26 into /28 blocks produces four subnets: 192.168.1.128/28, 192.168.1.144/28, 192.168.1.160/28 and 192.168.1.176/28. Each contains 16 addresses, conventionally 14 usable.

Every additional prefix bit doubles the number of equal-sized subnets and halves the addresses in each one. The splitter displays the resulting CIDR blocks and host ranges. For large divisions, browse the results a page at a time; it does not allocate different subnet sizes to different host requirements.

Why /31 and /32 are different

The familiar total-minus-two rule applies to conventional IPv4 subnets with prefixes from /0 through /30. A /31 contains two addresses; under RFC 3021, both may serve as endpoints on a point-to-point link, with no separate directed broadcast address. A /32 identifies one exact address, commonly used as a host route.

For these prefixes, the upper boundary shown by the calculator is not a normal broadcast address. A /0 covers the entire 32-bit IPv4 address space, but its mathematical host count should not be mistaken for the number of addresses available to an organization.

Conventional /30, point-to-point /31 and host /32

Conventional /30, point-to-point /31 and host /32
PrefixTotal addressesInterpretation
/304Two conventional usable hosts, plus network and broadcast addresses
/312Both addresses can be endpoints on an RFC 3021 point-to-point link
/321One host address; no separate directed broadcast

Swipe horizontally to view the full table.

Private and special-use IPv4 addresses

RFC 1918 defines private space as 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Other special-use space includes 100.64.0.0/10 for shared carrier-grade NAT addressing, 127.0.0.0/8 for loopback and 169.254.0.0/16 for link-local communication. Documentation addresses such as 192.0.2.0/24 are also not ordinary public destinations.

The Entered IP type result classifies the address you supplied, not necessarily every address within the calculated subnet. A Public unicast label means the address is outside the broad special-use ranges recognized by this calculator; it does not verify current allocation, BGP routing or reachability. The legacy class is shown for reference only and does not determine a CIDR boundary.

Planning a subnet for real networks

Use the calculated host count to check whether a proposed block has enough space for devices, network interfaces and future growth. A /27, for example, has 32 total addresses and 30 conventional usable host addresses; a /28 has 16 total and 14 usable.

These are protocol-level counts. AWS, Azure and other managed platforms may reserve additional IP addresses for their own infrastructure. This calculator does not apply provider-specific reservations, test connectivity or create device configurations. Confirm the address requirements of the environment where the subnet will be deployed.

IPv4 subnet formulas

For a prefix p, IPv4 has 32 − p host bits. The conventional usable-address formula excludes the network and directed-broadcast boundaries; /31 and /32 use different interpretations.

Formula variables

CIDR prefix length, from 0 to 32
Host bit count
Total addresses in the network block
Entered IPv4 address as a 32-bit integer
Subnet mask as a 32-bit integer
Network address as a 32-bit integer
Highest address in the network block
Conventional usable-address count
Host bits
Total addresses
Network address
Upper boundary
Conventional usable addresses

Examples

Find the /26 network containing a host

1

Input

192.168.1.130/26

Show result

Result

Network: 192.168.1.128/26; mask: 255.255.255.192; broadcast: 192.168.1.191; usable hosts: 192.168.1.129–192.168.1.190 (62).

The entered address is inside the block, but not its starting address.

Convert a dotted mask to CIDR

2

Input

10.10.9.200 255.255.254.0

Show result

Result

Network: 10.10.8.0/23; broadcast: 10.10.9.255; host range: 10.10.8.1–10.10.9.254 (510).

A /23 block spans two adjacent /24-sized ranges.

Split a /26 network into four /28 subnets

3

Input

192.168.1.128/26; Split this subnet → /28

Show result

Result

192.168.1.128/28, 192.168.1.144/28, 192.168.1.160/28, 192.168.1.176/28.

Each child contains 16 total addresses, with 14 conventionally usable hosts.

Check /31 point-to-point endpoints

4

Input

192.0.2.10/31

Show result

Result

Network block: 192.0.2.10/31; endpoints: 192.0.2.10 and 192.0.2.11; no separate directed broadcast.

The addresses are within a documentation range; their use here is an example of RFC 3021 arithmetic.

Frequently Asked Questions

Can I enter a host IP instead of the network address?

Yes. Enter any address in the block with a valid prefix or mask. For example, 192.168.1.130/26 resolves to the network 192.168.1.128/26.

Can I use a subnet mask instead of CIDR notation?

Yes. Enter an address followed by a contiguous dotted mask, such as 192.168.1.130 255.255.255.192. This corresponds to /26. Noncontiguous masks are rejected.

How many usable IP addresses are in a /24?

A /24 contains 256 addresses. Under conventional IPv4 rules, the network and broadcast addresses are not assigned to hosts, leaving 254 usable addresses.

How do I split a /24 into four /26 networks?

Enter 192.168.1.0/24, open Split this subnet and select /26. The resulting networks start at 192.168.1.0, 192.168.1.64, 192.168.1.128 and 192.168.1.192.

Does splitting the subnet create a VLSM plan?

No. It creates equal-sized child subnets with one chosen prefix. It does not assign different prefixes according to the number of hosts required by each group.

Why does a /31 show two usable addresses?

RFC 3021 allows both addresses in a /31 to be used as endpoints on point-to-point links. The usual network-and-broadcast reservation does not apply in that context.

What is a /32 used for?

A /32 identifies one IPv4 address. It is useful for host routes, loopback routing and exact-address matching; it is not a conventional multi-host subnet.

Will the usable host count match AWS or Azure?

Not necessarily. Cloud providers reserve additional addresses and impose their own network-size rules. The calculator shows generic IPv4 capacity; confirm provider-specific limits before deployment.

Does this calculator support IPv6?

No. It calculates 32-bit IPv4 networks only. IPv6 uses 128-bit addresses and does not use IPv4-style broadcast addressing.

Does the calculator check who owns an IP address?

No. Address classification is based on recognized ranges. It does not perform WHOIS, routing, connectivity or IP ownership lookups.