IPv4 Subnet Calculator
Divide an IPv4 network into multiple subnets by specifying the desired number of subnets or hosts per subnet, with a full breakdown table.
Parameters
Summary Output
Schedule Breakdown
How to Use
Enter the base network IP and its current CIDR prefix. Choose whether you want to divide by number of subnets or by hosts per subnet, then enter the desired count. The calculator determines the required new subnet mask and generates a detailed breakdown table.
Example Calculation
Dividing 192.168.1.0/24 into 4 subnets: New mask = /26 (255.255.255.192), each subnet has 62 usable hosts. Subnets: .0/26, .64/26, .128/26, .192/26.
Formula
By Subnet Count:\n New prefix = Base prefix + ceil(log₂(desired subnets))\n\nBy Host Count:\n Host bits = ceil(log₂(desired hosts + 2))\n New prefix = 32 − Host bits\n\nUsable Hosts per Subnet = 2^(32 − new prefix) − 2\nMax Subnets = 2^(new prefix − base prefix)
Frequently Asked Questions
Common questions and answers about the IPv4 Subnet Calculator.
