Subnet Calculator

Calculate IPv4 CIDR subnets, network/broadcast addresses, usable host ranges, and wildcard masks.

Subnet Calculator

Calculate IPv4 CIDR subnets, network/broadcast addresses, usable host ranges, and wildcard masks.

How It Works

1
Enter Values & Parameters
Fill in your numbers, rates, or inputs into the calculation form.
2
Review Instant Calculations
Calculations update dynamically in your browser with instant client-side performance.
3
Inspect Breakdown & Summary
Review the detailed breakdown, comparison metrics, or financial summary.
Concept & Knowledge Hub

IPv4 Subnet Calculator: CIDR Prefix, Network & Host Range

Subnetting divides a larger IP network into smaller, efficient sub-networks. This improves network performance, compartmentalizes routing domains, and conserves IPv4 address space.

Core Architecture & Mathematical Formula

Network Address = IP & Subnet Mask Broadcast Address = Network Address | (~Subnet Mask) Total Hosts = 2^(32 - Prefix) Usable Hosts = 2^(32 - Prefix) - 2 (for prefixes ≤ 30)

1. Enter an IPv4 address (e.g. 192.168.1.50). 2. Select CIDR prefix length (e.g. /24) or choose a subnet mask from the preset dropdown. 3. View network address, broadcast address, first and last usable host IPs, total hosts, and wildcard mask.

Frequently Asked Questions (FAQ)

Why are 2 addresses subtracted from total hosts in a subnet?
The first address represents the network identifier, and the last address is reserved as the all-hosts broadcast address. Neither can be assigned to an individual host interface.
What is a wildcard mask?
A wildcard mask is the bitwise inverse of the subnet mask (~Mask). It is widely used in Cisco ACLs (Access Control Lists) and OSPF routing configurations.
What are private IPv4 address ranges?
Per RFC 1918, private ranges are 10.0.0.0/8 (Class A), 172.16.0.0/12 (Class B), and 192.168.0.0/16 (Class C), non-routable on the public internet.