>Fafa Dev Tools

IPv4 Subnet Calculator

Calculate IPv4 subnet information from CIDR notation. Free online subnet calculator showing network address, broadcast, usable hosts, and mask.

What is IPv4 Subnet Calculator?

An IPv4 subnet calculator takes a CIDR notation (like 192.168.1.0/24) and calculates all subnet properties: network address, broadcast address, subnet mask, usable host range, and total hosts. This is essential for network planning, firewall configuration, and understanding IP address allocation.

How to Use

  1. Enter an IP address with CIDR notation (e.g., 192.168.1.0/24)
  2. Click Calculate or press Enter
  3. Results show: network address, broadcast, subnet mask, host range, and more
  4. IP class and type (Public/Private) are detected automatically

Examples

Class C /24 subnet

Input192.168.1.100/24
OutputNetwork: 192.168.1.0 | Broadcast: 192.168.1.255 | Usable: 192.168.1.1 - 192.168.1.254 (254 hosts)

Small /28 subnet

Input10.0.0.0/28
OutputNetwork: 10.0.0.0 | Broadcast: 10.0.0.15 | Usable: 10.0.0.1 - 10.0.0.14 (14 hosts)

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation specifies a subnet using an IP address followed by / and the number of network bits. For example, /24 means the first 24 bits are the network portion, leaving 8 bits for hosts (256 addresses).

What's the difference between total and usable hosts?

Total hosts includes all addresses in the subnet. Usable hosts excludes the network address (first) and broadcast address (last). For a /24 subnet: 256 total - 2 = 254 usable.

What are private IP ranges?

10.0.0.0/8 (Class A), 172.16.0.0/12 (Class B), and 192.168.0.0/16 (Class C). These addresses are not routable on the public internet and are used for internal networks.