IP subnet calculator

IP subnet calculator (with binary visualization and subnet allocation)

Use this IP subnet calculator to quickly determine the subnet mask, wildcard mask, network address, broadcast address, and usable host range for an IPv4 subnet.

Enter any IPv4 address that belongs to the subnet, choose the desired CIDR prefix, and the calculator will generate the full subnet information.

Ready
255.255.255.0
Network address
Broadcast
Usable hosts
Class / type
IP address
Network address
Broadcast
Subnet mask
Wildcard mask
First usable host
Last usable host
Total addresses
Usable hosts
CIDR notation

Binary visualization

Subnet allocation

Subnets 2
Hosts / subnet 126
New prefix /25
# Subnet First host Last host Broadcast Hosts

How to use the subnet calculator

Using the calculator is straightforward:

  1. Enter any IPv4 address that belongs to the subnet you want to analyze.
  2. Select the CIDR prefix (for example /24, /27, /30).
  3. Click Calculate.
  4. Review the results including the network address, broadcast address, and host range.

You can use the copy button next to each field to quickly reuse values in firewall rules, configuration files, or documentation.

Example subnet calculations

Example 1 — common office subnet

Input

IP address: 192.168.1.10
CIDR prefix: /24

Result

Network address: 192.168.1.0
Broadcast address: 192.168.1.255
Usable hosts: 254

Example 2 — smaller subnet

Input

IP address: 10.10.20.14
CIDR prefix: /27

Result

Network address: 10.10.20.0
Broadcast address: 10.10.20.31
Usable hosts: 30

Example 3 — point-to-point subnet

Input

IP address: 172.16.50.2
CIDR prefix: /30

Result

Network address: 172.16.50.0
Broadcast address: 172.16.50.3
Usable hosts: 2

Learn more about subnetting

Subnetting is the process of dividing a larger IPv4 network into smaller logical networks called subnets.

Each subnet has its own network address, broadcast address, and usable host range. This allows administrators to segment infrastructure, reduce broadcast traffic, and manage IP space more efficiently.

For example, instead of keeping all devices in a single 192.168.1.0/24 network, you might divide it into multiple /26 or /27 subnets for different departments or services.

Other tools

You may also find these tools useful:

Related guides

Helpful networking references:

  • Private IPv4 address ranges explained
  • How CIDR notation works
  • Subnetting explained for system administrators

Cheat Sheets

Usefull cheat sheets:

  • Subnet mask cheat sheet