Command Palette

Search for a command to run...

IP

IP Subnet Calculator

Calculate the network address, broadcast, usable host range, subnet mask, and host count for any IPv4 address and CIDR prefix.

Common prefixes
CIDRSubnet maskAddressesUsable hosts
/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
Category:web
Mode:Offline
Version:1.0.0
Access:Free

What is an IP subnet calculator?

An IP subnet calculator takes an IPv4 address and a CIDR prefix, such as 192.168.1.10/24, and works out every property of the network that address belongs to. It returns the network address, the broadcast address, the first and last usable host, the subnet mask in dotted-decimal form, the wildcard mask, and the number of total and usable addresses. Instead of doing binary arithmetic by hand, you paste one value and read the answer. The tool also accepts a dotted subnet mask in place of the prefix, so 192.168.1.10 255.255.255.0 gives the same result as /24.

Subnetting is the practice of splitting one IP address block into smaller networks. The CIDR prefix, the number after the slash, says how many bits of the address identify the network rather than the host. A /24 fixes the first 24 bits, leaving 8 bits for hosts, which is 256 addresses and 254 usable ones once the network and broadcast addresses are set aside. A smaller prefix such as /16 covers far more addresses; a larger one such as /30 leaves room for only two hosts, which is why point-to-point links use it. Getting the prefix wrong is a common source of connectivity bugs, and seeing the ranges spelled out makes the mistake obvious.

A worked example shows what this online IP subnet calculator returns. Type 192.168.10.77/26 and Subnet details fill in as you type: CIDR notation 192.168.10.64/26, network address 192.168.10.64, broadcast address 192.168.10.127, usable host range 192.168.10.65 - 192.168.10.126, subnet mask 255.255.255.192, wildcard mask 0.0.0.63, 64 total addresses and 62 usable hosts. Enter a bare address such as 10.20.30.40 with no prefix and the calculator assumes /24, so check the CIDR notation row before you copy anything.

Network engineers, system administrators, and developers reach for this constantly: planning an address scheme, writing a firewall or routing rule, sizing a cloud VPC subnet, or checking whether two hosts share a network. The calculator handles the edge cases correctly, treating a /31 as a two-host point-to-point link per RFC 3021 and a /32 as a single host. Everything runs client-side, so no address you enter is uploaded or logged, and the tool keeps working offline once the page has loaded. It is free, no signup.

How to use the IP subnet calculator?

1

Enter an address and prefix

Type an IPv4 address with a CIDR prefix, such as 10.0.0.0/8, in the IP address and prefix field, or click one of the sample subnets. An address with no prefix is treated as /24.

2

Or use a subnet mask

A dotted mask works too: enter 192.168.1.10 255.255.255.0 and the tool converts it to the matching prefix.

3

Read the results

Subnet details update as you type: the network and broadcast addresses, the usable host range, the mask, wildcard mask, and address counts, with a binary view of the address and mask below.

4

Copy what you need

Copy the CIDR notation, the host range, or the mask to drop into router configs, firewall rules, or documentation.

Key Features

Full network breakdown

Network address, broadcast address, first and last usable host, and the total and usable address counts in one view.

CIDR and dotted mask input

Accepts /24 style prefixes or dotted subnet masks like 255.255.255.0, and converts between the two.

Wildcard mask

Shows the inverse mask used in access control lists and OSPF area statements, not just the subnet mask.

Correct edge cases

Handles /31 as a two-host point-to-point link per RFC 3021 and /32 as a single host, where naive tools miscount.

Frequently Asked Questions

The CIDR prefix is the number after the slash, and it counts how many leading bits of the address identify the network. A /24 fixes the first 24 bits for the network and leaves 8 bits for hosts, which is 256 total addresses and 254 usable ones.

Comments

0 comments

0/2000 characters

No comments yet. Be the first to share your thoughts!

ip subnet calculatoronline ip subnet calculatorip subnet calculator onlineip subnet gateway calculatorcidr calculatorsubnet mask calculatoripv4 subnetnetwork address calculatorbroadcast addresscidr to subnet maskusable host range