IPv4 Subnet Calculator

Calculate network, broadcast, subnet mask, and host range from an IPv4 address and CIDR prefix.

Subnet input

Enter one IPv4 address and a CIDR prefix. Results update locally in your browser.

Use dotted decimal notation with four octets from 0 to 255.

Choose a prefix length from 0 to 32, such as 24 for a /24 network.

Subnet details

Enter an IPv4 address and CIDR prefix to see the subnet details.

Enter an IPv4 address and CIDR prefix to see the subnet details.

When to use IPv4 Subnet Calculator

Common ways to use IPv4 Subnet Calculator:

  • Plan a new subnet

    Check the network, broadcast, and host range before assigning addresses.

  • Validate CIDR notation

    Confirm that an IP and prefix combination produces the expected boundaries.

  • Troubleshoot routing

    Compare calculated ranges with firewall, VPN, or router configuration.

  • Share clean details

    Copy formatted subnet facts into tickets, runbooks, or chat.

  • Learn subnetting on mobile

    Practice IPv4 subnet math on phone or tablet with a responsive layout.

FAQ

How do I use this app?

Enter an IPv4 address, choose a CIDR prefix from 0 to 32, and review the calculated subnet details. Use Reset to start over.

Is this app free to use?

Yes. The IPv4 Subnet Calculator is free to use and does not require an account.

What happens to my input data?

Your input stays in the browser. The calculator does not store subnet data or send it to a server.

Why am I getting an error or unexpected output?

Most errors come from malformed IPv4 addresses or CIDR prefixes outside 0 to 32. Check each octet and try again.

Where can I find instructions and troubleshooting tips?

Open the Help panel for subnet input rules, edge-case notes, and keyboard-friendly guidance.