Skip to main content
Toolbox
Developer

Subnet Calculator

Calculate IPv4 subnet masks, CIDR network & broadcast addresses, usable host IP ranges, wildcard masks, and VLSM subdivisions.

Quick Answer & Summary

Enter any IPv4 address and CIDR prefix (e.g., 192.168.1.1/24) to instantly calculate the Network Address, Broadcast Address, usable host range (192.168.1.1 – 192.168.1.254), Subnet Mask, Wildcard Mask, binary bitmasks, and VLSM subdivisions.

Subnet Usable Hosts Formula
Usable Hosts = 2^(32 - CIDR) - 2

For CIDR prefix /n, the host portion contains 32 - n bits. Subtracting the Network ID and Broadcast ID yields the assignable host count.

IPv4 & CIDR Configuration

Enter an IP and select the subnet prefix

Quick Presets:
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Usable Hosts
254
256 Total
Scope & Class
Class C
Private

Detailed Subnet Telemetry

192.168.1.1/24
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
First Usable IP192.168.1.1
Last Usable IP192.168.1.254
IP Scope / PurposePrivate (RFC 1918)
Hexadecimal Representation0xC0A80101
Integer / Decimal Value3,232,235,777
Usable Host Range192.168.1.1192.168.1.254

32-Bit Binary Representation

IP Address:192.168.1.1
11000000.10101000.00000001.00000001
Subnet Mask (/24):255.255.255.0
11111111.11111111.11111111.00000000
Network ID (IP & Mask):192.168.1.0
11000000.10101000.00000001.00000000

Subnet Division / VLSM Explorer

Subdivide 192.168.1.0/24 into smaller networks

#Subnet CIDRUsable Host RangeBroadcastHostsAction
1192.168.1.0/26192.168.1.1192.168.1.62192.168.1.6362
2192.168.1.64/26192.168.1.65192.168.1.126192.168.1.12762
3192.168.1.128/26192.168.1.129192.168.1.190192.168.1.19162
4192.168.1.192/26192.168.1.193192.168.1.254192.168.1.25562

Share This Tool

Help your team and fellow developers save time with free, private client-side utilities.

TB
Toolbox Editorial TeamVerified Authors

Systems & Security Engineers • Applied Cryptography & High-Performance Web Tools

Updated:
100% In-BrowserZero server storage
Standards AuditedRFC & ISO compliant
Peer ReviewedEditorial Policy
Documentation & Guide

How to Use Subnet Calculator

1

Enter IP Address

Type an IPv4 address (e.g. 192.168.1.1 or with prefix 10.0.0.1/24) into the IP input field.

2

Select Subnet Prefix (CIDR)

Choose a CIDR prefix (/1 to /32) from the dropdown or pick from common presets (Home LAN, AWS VPC, Point-to-Point, Docker).

3

Analyze Network Telemetry

View calculated Network Address, Broadcast Address, First and Last Usable Host IPs, Total and Usable Host counts, and 32-bit binary representations.

4

Explore Subnet Divisions

Use the VLSM explorer to divide your network into smaller subnets with custom prefixes and one-click navigation.

Pro Tips
Type CIDR directly in the IP field (e.g. 10.0.0.1/20) for instant calculation
Click any subdivision row in the VLSM explorer to navigate directly into that subnet

Practical Examples & Conversions

Input
192.168.1.50/24
Output
Network: 192.168.1.0 | Broadcast: 192.168.1.255 | Range: 192.168.1.1 – 192.168.1.254 | 254 Usable Hosts

Frequently Asked Questions (PAA)

Related Tools & Converters

Authoritative Standards & Citations

Calculations and algorithms on this page are implemented and verified in strict accordance with the following official technical specifications: