IPv4 Subnet Calculator

Calculate IPv4 subnet information, supporting subnet division and supernet merging.

Subnet Configuration

Enter IP address and subnet mask to calculate

Common Subnets

Click to apply common subnet configs

Class C Default
254 hosts
/24 - 255.255.255.0
Class B Default
65534 hosts
/16 - 255.255.0.0
Class A Default
16777214 hosts
/8 - 255.0.0.0
Large Subnet
126 hosts
/25 - 255.255.255.128
Medium Subnet
62 hosts
/26 - 255.255.255.192
Small Subnet
30 hosts
/27 - 255.255.255.224
Tiny Subnet
14 hosts
/28 - 255.255.255.240
Point-to-Point
6 hosts
/29 - 255.255.255.248
P2P Minimal
2 hosts
/30 - 255.255.255.252

Sample Networks

Click to use sample network address

192.168.1.0 /24
10.0.0.0 /8
172.16.0.0 /16
203.0.113.0 /24
192.0.2.0 /24

Network Classes

Class A: 1.0.0.0 - 126.255.255.255
Class B: 128.0.0.0 - 191.255.255.255
Class C: 192.0.0.0 - 223.255.255.255
Private: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16