Everyday calculators · AIT Quick Tools
IPv4 Subnet Calculator
IPv4 Subnet Calculator. Calculate ipv4 subnet with clear inputs and an explained result.
Using IPv4 Subnet
IPv4 Subnet Calculator. Calculate ipv4 subnet with clear inputs and an explained result.
What to enter
- 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.
Worked example
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.
Method and limitations
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.
Are my inputs uploaded?
These calculations run in your browser. This calculator does not send its form values to a calculation server. Copying or printing a result shares only what you choose to share.
Can I save a result?
Use Copy result for text, or Print / Save PDF for a formatted report containing your inputs, result and any available chart. Keep the assumptions with the result.