Skip to main content

IPv4 Network Calculator

Use this calculator for fast subnetting checks, host-range lookups, and mask conversion without leaving the page.

Inputs

Enter your values

Use any host address inside the subnet you want to inspect.

Enter the prefix length from 0 to 32 so the subnet boundary is clear.

Input guide

These are the main values the calculator uses. Keep the units consistent and, where relevant, match the assumptions explained in the related guide.

Input

IPv4 address

Use any host address inside the subnet you want to inspect.

Input

CIDR prefix

Enter the prefix length from 0 to 32 so the subnet boundary is clear.

Formulae

Network address = IPv4 address AND subnet mask
Broadcast address = network address with all host bits set to 1

When to use this calculator

Use this page when you need to check subnet boundaries, host ranges, or mask details for an IPv4 address and prefix.

How to read the result

The main result is the network address. Supporting values show the broadcast address, the first and last usable hosts, and the usable host count.

Worked example

For 192.168.1.42/24, the network is 192.168.1.0 and the broadcast address is 192.168.1.255.

That makes the usable host range 192.168.1.1 to 192.168.1.254.

Assumptions and limits

This calculator covers IPv4 only. It does not validate routing design, reserved-address policy, DHCP scope planning, or broader network architecture decisions.

Common questions

Can I use this for IPv6?

No. This page is intentionally limited to IPv4 subnetting.

Why are first and last host addresses useful?

They show the usable range inside the subnet, which is often what you need when assigning devices or checking whether an address belongs to a network.

Related tools

Useful next calculators.