Skip to content

JA Technology Solutions

Subnet Calculator

Calculate network ranges, masks, host counts, and CIDR notation for IPv4 subnets.

Subnet Calculator

Calculate network address, broadcast address, host range, subnet mask, and CIDR notation. Supports both CIDR notation (192.168.1.0/24) and dotted subnet masks (192.168.1.0 255.255.255.0). For IPv6, see the IPv6 Subnet Calculator.
Learn more ↓

Loading interactive explorer...

What a Subnet Actually Is

A subnet is a contiguous range of IP addresses that share a common prefix. The network prefix identifies the subnet and the remaining host bits identify individual devices within it. In CIDR notation, 192.168.1.0/24 means “the first 24 bits are network, the last 8 are host,” which gives you 256 total addresses (0 through 255), of which the first is the network address and the last is the broadcast address — leaving 254 usable host addresses for actual devices. Change the prefix length and the math changes: /25 gives you 126 usable hosts, /30 gives you 2 (the typical point-to-point link), and /32 gives you exactly one address (a host route). This tool takes any IPv4 CIDR or dotted-mask input and calculates all of that instantly.

Why Subnet Math Still Matters

Even in a world of cloud networking, DHCP, and automated IPAM tools, subnet math shows up constantly: designing VPC address spaces that will not overlap with existing on-prem ranges, carving a /16 into /24s for different environments, writing firewall rules or route-map filters, planning an IPv6 migration that preserves IPv4 subnet boundaries, figuring out whether two hosts are on the same broadcast domain, and troubleshooting mysterious connectivity issues where the subnet mask is wrong by a single bit. Getting the math right in your head is a skill; getting it right in a calculator is always available.

Where Subnet Math Fits Into My Work

Subnet math comes up constantly inside the integration, custom development, and custom reporting engagements I take on — building API-driven automation against enterprise network and security platforms, writing application code that respects existing network boundaries, or producing operational reports that roll up network inventory for business stakeholders. The boundary between “networking” and “application systems” is where a lot of the interesting problems live. For IPv6 see the IPv6 Subnet Calculator; for range aggregation see the CIDR Range & Overlap Tool. Learn about integration services or get in touch to discuss a project where network details and application work overlap.

All tools run entirely in your browser. Your data never leaves your machine. Need help? Ask James.