Tech & Dev

Subnet Calculator

Calculate network addresses, subnet masks, and IP ranges

Calculator

/24
/0/8/16/24/32

Quick Select CIDR

Subnet Information
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
First Usable IP
192.168.1.1
Last Usable IP
192.168.1.254
Total Addresses
256
Usable Hosts
254
IP Class
Class C
IP Type
Private (Class C)

Binary Representation

11000000.10101000.00000001.00000000
11111111.11111111.11111111.00000000

CIDR Reference

CIDRMaskHostsDescription
/8255.0.0.016,777,214Class A default
/16255.255.0.065,534Class B default
/24255.255.255.0254Class C default
/25255.255.255.128126Half Class C
/26255.255.255.1926264 addresses
/27255.255.255.2243032 addresses
/28255.255.255.2401416 addresses
/29255.255.255.24868 addresses
/30255.255.255.2522Point-to-point
/31255.255.255.2542Point-to-point (RFC 3021)
/32255.255.255.2551Single host

Subnet Basics

  • CIDR: Classless Inter-Domain Routing notation (e.g., /24)
  • Network Address: First address in the subnet (identifies the network)
  • Broadcast Address: Last address (sends to all hosts in subnet)
  • Usable Hosts: Total addresses minus network and broadcast
  • Wildcard Mask: Inverse of subnet mask (used in ACLs)

How to Use

Calculate subnet information

1

Enter IP address

Input an IP address (e.g., 192.168.1.100)

2

Enter subnet mask

Enter CIDR notation (/24) or subnet mask

3

View results

See network address, broadcast, and host range

4

Analyze binary

View binary representation and wildcard mask

Frequently Asked Questions

A subnet mask determines which part of an IP address is the network portion and which is the host portion. Common masks: /24 (255.255.255.0) allows 254 hosts, /16 (255.255.0.0) allows 65,534 hosts.

Hosts = 2^(32-CIDR) - 2. For /24: 2^8 - 2 = 254 usable hosts. We subtract 2 for network address and broadcast address. /25 = 126 hosts, /26 = 62 hosts, /27 = 30 hosts, /28 = 14 hosts.

CIDR (Classless Inter-Domain Routing) notation shows network size as IP/prefix. The prefix is the number of network bits. 192.168.1.0/24 means 24 network bits and 8 host bits (256 addresses, 254 usable).

Network address is the first IP in a subnet (all host bits = 0) and identifies the network. Broadcast address is the last IP (all host bits = 1) and reaches all hosts. Neither can be assigned to devices.

Tech & Dev

Developer tools for JSON, encoding, and regex

View all tools