Skip to content
~/subnet-calculator
$

Subnet Calculator

Calculate network address, broadcast address, host range, and more from any IP address and subnet mask or CIDR prefix.

Mask: 255.255.255.0

Common Subnets

Network Address

192.168.1.0

Broadcast Address

192.168.1.255

CIDR Notation

192.168.1.0/24

First Usable Host

192.168.1.1

Last Usable Host

192.168.1.254

Usable Hosts

254

Total Hosts

256

Subnet Mask

255.255.255.0

Wildcard Mask

0.0.0.255

IP Class

Class C

IP Type

Private

Binary Representation

IP Address

11000000.10101000.00000001.00000000

Subnet Mask

11111111.11111111.11111111.00000000

Visual Subnet Mask

Network bits Host bits

11111111111111111111111100000000
24 network bits8 host bits

Common Subnet Reference

CIDRSubnet MaskAddressesUsable
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/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
/32255.255.255.25511

What Is Subnetting?

Subnetting divides a larger IP network into smaller, more manageable segments. Each subnet has its own network address, broadcast address, and usable host range, which helps optimize routing and improve security.

How This Calculator Works

Enter any IPv4 address with a subnet mask or CIDR prefix and instantly see the network address, broadcast address, first and last usable hosts, wildcard mask, and total host count. Common subnet presets are included for quick reference.

When You Need It

Use this tool when planning VPC layouts, configuring firewall rules, or troubleshooting connectivity issues. It is especially handy for verifying that two hosts are on the same subnet before setting up peering or routing.