Networking & DevOps6 min read•Updated 2026-10-21

Subnet & CIDR IP Calculator: Host Ranges, Subnet Masks & Wildcards

Calculate network addresses, broadcast IPs, usable host counts, and wildcard masks from CIDR notation (/24, /16, /8).

MX

MultiToolX Technical Team

Networking & Cloud Architecture

Key Takeaways

  • CIDR notation (e.g. 192.168.1.0/24) indicates the number of leading 1-bits in the subnet mask.
  • The usable host formula is 2^(32 - prefix) - 2 (subtracting the network and broadcast addresses).
  • A /24 subnet (255.255.255.0) provides 256 total IP addresses and 254 usable host addresses.
  • A /16 subnet provides 65,534 usable hosts; a /28 subnet provides 14 usable hosts.
Live Interactive Tool

Subnet & CIDR IP Calculator

Use this tool directly below without leaving the guide. 100% free & in-browser.

Open Fullscreen

1. How CIDR Subnetting Works

IPv4 addresses consist of 32 bits divided into four 8-bit octets. A subnet mask divides an IP address into two parts: the Network Prefix and the Host Identifier. - Prefix /24 = 255.255.255.0 = 256 total IPs (254 usable). - Prefix /28 = 255.255.255.240 = 16 total IPs (14 usable).

2. Worked Example: Deep Dive into a /24 Subnet (255.255.255.0)

A /24 subnet (such as 192.168.1.0/24 or 10.0.0.0/24) is the ubiquitous standard for home routers, small business offices, and cloud VPC private subnets. Here is how the binary math breaks down step-by-step: - Prefix Length: /24 means 24 contiguous binary 1-bits followed by 8 zero bits (11111111.11111111.11111111.00000000), which translates to the decimal subnet mask 255.255.255.0. - Total Address Capacity: With 8 host bits remaining, the total address space is 2^8 = 256 IP addresses. - Usable Host Pool: The first address (.0) is reserved as the Network Identifier, and the last address (.255) is reserved as the Subnet Broadcast Address. This leaves exactly 254 assignable host addresses (.1 through .254) for laptops, phones, servers, and gateway routers. - Why /24 is Standard: It perfectly balances containment and simplicity. It allows a single collision domain with enough capacity for 250+ connected devices without exhausting router memory or requiring complex inter-VLAN routing tables.

Frequently Asked Questions

Why do we subtract 2 from total IPs for usable hosts?

Because the first IP address is reserved for the Network Address, and the last IP address is reserved for the Broadcast Address.

Can I assign the .0 or .255 address to a workstation in a /24 network?

No. In IPv4 subnetting, the lowest address (.0 in /24) defines the network ID itself, and the highest address (.255 in /24) is the broadcast address that delivers packets to every host on that subnet.

Ready to use Subnet & CIDR IP Calculator?

Fast, 100% private, client-side processing. No account, no watermark, completely free.

Related Free Browser Tools