Technology & IT

IPv4 Subnet Calculator

Calculate subnet mask, network address, broadcast address and host capacity for IPv4.

Free toolGlobal unitsInstant calculation

Calculator

Result

—
Formula: Subnet mask has the first prefix bits set to 1.

About this calculator

Calculate subnet mask, network address, broadcast address and host capacity for IPv4.

Enter valid values, then select Calculate. The calculation runs in your browser and does not require an account.

How to use this calculator

What to enter

Enter or select the following as requested: IPv4 address; Prefix length. Follow the units, valid ranges, examples, and options displayed beside each field.

What the result means

The output is the transformed value, generated snippet, lookup result, or technical measurement produced from the supplied input and selected options. Review the output before using it, and verify compatibility with the target system or format.

When to use it

Use this as a developer or technical utility for encoding, conversion, validation, calculation, or reference. Do not treat a successful transformation as proof that a system is secure or that generated code is production-ready.