IPv4 Subnet Calculator

Calculating CIDR and determining the correct subnets within a /16 or /19 can be challenging and error-prone when done manually. The process is time-consuming and tedious, with plenty of room for mistakes.

How to Use Our IP Subnet Calculator

  1. Enter your IPv4 address block in the top-left field of the table.
  2. Adjust one of the following fields to customize the breakdown (the rest will update automatically); 1. Subnet Mask, 2. Total IPv4 Addresses, 3. Number of Subnets
  3. Let the calculator do the work—it will generate the correct subnet breakdown based on your input.
  4. Scroll down to view all results. For a /16 subnet, you’ll see 256 Subnet IDs.

What is an IPv4 Subnet?

An IPv4 subnet is a smaller division of a network, created by applying a subnet mask to split an IP address range into multiple segments. This improves efficiency, security, and performance by reducing broadcast traffic and organizing devices into logical groups. For example, a Class C network (192.168.1.0/24) has a default subnet mask of 255.255.255.0, allowing for 254 usable host addresses. Subnetting can further divide this into smaller networks with fewer hosts.

Subnetting is essential for managing IP allocation, optimizing routing, and securing networks by isolating different areas. CIDR (Classless Inter-Domain Routing) replaces traditional class-based addressing, allowing flexible subnetting with variable-length subnet masks (VLSM). This ensures efficient use of IP addresses in LANs, WANs, and cloud networks.

IPv4 Address Classes

Each class is determined by the first few bits of the IP address and is used for specific purposes.

Class A Subnets

A Class A subnet, or /8, is the 256 Ipv4 blocks in the first octet. Ex. 79.xxx.xxx.0/8

IPv4 Block SizeTotal # of IP’s
/816,777,216
/98,388,608
/104,194,304
/112,097,152
/121,048,576
/13524,288
/14262,144
/15131,072

Class B Subnets

A Class B subnet, or /16, is the 256 blocks in the second octet. Ex. xxx.79.xxx.0/16

IPv4 Block SizeTotal # of IP’s
/1665,536
/1732,768
/1816,384
/198,192
/204,096
/212,046
/221,022
/23510

Class C Subnets

A Class C subnet, a /24, is the 256 blocks in the third octet. Ex. xxx.xxx.79.0/16

IPv4 Block SizeTotal # of IP’s
/24256
/25128
/2664
/2732
/2816
/298
/304
/312

Thinking about Buying or Selling IPs? Visit our Marketplace

ARIN

198.xx.xx.x/22 🇨🇦

Transfer to: ARIN, APNIC, RIPE

Total IPs:
1,024

Price/IP:
$XX,XX

Price: $XX,XXX

Status: Available

APNIC

112.xxx.xxx.x/17 🇦🇺

Transfer to: ARIN, APNIC, RIPE

Total IPs:
32,768

Price/IP:
$XX,XX

Price: $XX,XXX

Status: Available

Ripe NCC

46.xxx.xx.x/21 🇬🇧

Transfer to: ARIN, APNIC, RIPE

Total IPs:
512

Price/IP: $XX,XX

Price: $XX,XXX

Status: Available