📝 Blog

How to Use a Subnet Calculator — IPv4 and IPv6 Complete Guide

January 2025  ·  6 min read
← Back to Blog

A subnet calculator takes the manual arithmetic out of network planning. Instead of converting between binary and decimal by hand to find network addresses, broadcast addresses, and host ranges, you enter an IP address and prefix length and get all the information instantly. This guide explains how to use a subnet calculator effectively and what all the output fields mean.

What Does a Subnet Calculator Do?

A subnet calculator computes all the key properties of an IP subnet from a CIDR notation input. Given 192.168.10.0/24, it tells you:

How to Use the DataConvertProTools Subnet Calculator

  1. Go to DataConvertProTools and click the Subnet Calc tab
  2. Select IPv4 or IPv6
  3. Enter your IP address with CIDR notation: 10.0.1.0/24
  4. Or enter an IP address with a subnet mask: 10.0.1.0 255.255.255.0
  5. Click Calculate (or press Enter)
  6. Copy any result field with the ⧉ copy button

The calculator runs entirely in your browser — no server request is made. Results appear instantly.

Understanding the Output Fields

Network Address

The network address is the subnet identifier — the first address in the range, with all host bits set to zero. It cannot be assigned to a host. For 192.168.1.100/24, the network address is 192.168.1.0.

Broadcast Address

The broadcast address is the last address in the subnet, with all host bits set to one. Packets sent to this address are delivered to all hosts on the subnet. For /24, the broadcast is the .255 address. It cannot be assigned to a host.

Subnet Mask vs Wildcard Mask

The subnet mask marks the network bits as 1s and host bits as 0s. The wildcard mask is the bitwise inverse — used in access control lists (ACLs) and routing protocols:

Subnet mask:   255.255.255.0   (0s are host bits)
Wildcard mask:   0.0.0.255   (1s are host bits)

Usable Hosts

Total addresses minus 2 (network and broadcast). For /24: 256 − 2 = 254 usable hosts. For /30: 4 − 2 = 2 usable hosts (point-to-point links).

Practical Subnetting for Cloud Infrastructure

AWS VPC Design

A well-designed AWS VPC typically uses a /16 CIDR (65,534 addresses) divided into smaller subnets per tier and availability zone:

VPC: 10.0.0.0/16

Public subnets (one per AZ):
  10.0.0.0/24    - us-east-1a (254 hosts)
  10.0.1.0/24    - us-east-1b
  10.0.2.0/24    - us-east-1c

Private (app) subnets:
  10.0.10.0/24   - us-east-1a
  10.0.11.0/24   - us-east-1b

Private (database) subnets:
  10.0.20.0/24   - us-east-1a
  10.0.21.0/24   - us-east-1b

Avoid Overlapping CIDRs

If you plan to peer VPCs or connect to on-premises networks via VPN or Direct Connect, ensure CIDR ranges do not overlap. Use the subnet calculator to verify ranges before provisioning.

IPv6 Subnet Calculator

IPv6 subnetting follows the same prefix-length principles but with 128-bit addresses. The IPv6 subnet calculator on DataConvertProTools provides:

Quick Reference: Common Subnet Sizes

/8   → 16,777,214 hosts — entire Class A block
/16  → 65,534 hosts    — large corporate or VPC
/20  → 4,094 hosts     — medium VPC subnet
/24  → 254 hosts       — standard office or cloud subnet
/26  → 62 hosts        — service tier subnet
/28  → 14 hosts        — small infrastructure subnet
/30  → 2 hosts         — point-to-point link
/32  → 1 address       — host route, loopback

Security Groups and Subnet CIDRs

In cloud environments, security group and firewall rules reference CIDRs to control traffic. Understanding subnet notation is essential for writing correct rules. A few examples from AWS security groups:

# Allow SSH from a specific office subnet only
Inbound: TCP port 22, source 203.0.113.0/24

# Allow all internal VPC traffic
Inbound: All traffic, source 10.0.0.0/16

# Allow HTTPS from the internet
Inbound: TCP port 443, source 0.0.0.0/0 (IPv4) and ::/0 (IPv6)

# Restrict database access to app subnet only
Inbound: TCP port 5432, source 10.0.10.0/24

The principle of least privilege applies to network access: restrict rules to the smallest necessary CIDR range. Use the subnet calculator to verify you are specifying the correct network range before applying firewall rules — an overly broad CIDR in a security group rule is a common security misconfiguration.

Calculate any subnet instantly: DataConvertProTools IPv4 & IPv6 Subnet Calculator — network address, broadcast, host range, binary representation, and subnetting chart. Free, private, no signup.