Home

IP Subnet Calculator

Calculates an IPv4 network address, broadcast address and host count from an IPv4 address and CIDR prefix.

How it works

IPv4 subnet details

Formula and assumptions

The CIDR prefix determines the network mask. For /31 and /32 networks, usable-host conventions differ from traditional subnets; interpret the displayed host count according to the network use case.

Example

Use the sample values, calculate, and change one input at a time.

Frequently asked questions

Are results exact? Results depend on the assumptions and inputs above.

Can I use this for professional decisions? Verify critical results independently.

Related calculators

Browse all calculators

Frequently asked questions

Does this support IPv6?

No. This calculator is for IPv4 addresses and CIDR prefixes only.

What should I check before relying on the result?

Confirm the input units and assumptions described above; independently verify safety-critical, medical, financial or professional decisions.