Set up
Open IPv4 Subnet Calculator and choose the units or options for your calculation.
Everyday tools · Free online tool
IPv4 Subnet Calculator. Calculate ipv4 subnet with clear inputs and an explained result.

How it works
Example result: 192.168.1.0/24 This is the example supplied by the tool. Enter your own inputs in the application to calculate a result.
Open IPv4 Subnet Calculator and choose the units or options for your calculation.
Enter your values, using the labels and worked example to check the scale and units.
Read the result together with the method and limitations before using it.
IPv4 address: enter the value or list in the format shown in the form.
CIDR prefix length: choose 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32.
This example uses the form’s starting values; it is not your personal result.
IPv4 address: 192.168.1.42
CIDR prefix length: 24
Example result: 192.168.1.0/24
Subnet mask: 255.255.255.0
Last address: 192.168.1.255
Total addresses: 256
Usable hosts (conventional): 254
First usable: 192.168.1.1
/31 uses point-to-point convention; /32 is one address. No IPv6 support in this calculator.
Block size = 2^(32 − prefix). Network = floor(address / block size) × block size.
/31 uses point-to-point convention; /32 is one address. No IPv6 support in this calculator.
Questions answered
Clear information about what the tool does and where an extra check may be sensible.
Use the Open the free tool button on this page to go directly to IPv4 Subnet Calculator in AIT Quick Tools.
The screenshot shows the real tool with its example or starting values. Enter your own values in the application to obtain your result.
Ready when you are
No installation. Open the tool in your browser and get started.