Quick overview
Use Subnet Calculator to run practical calculations quickly and make decisions with clear, easy-to-read results.
Free Online IPv4 Subnet Calculator & CCNA Subnetting Practice Tool
Calculate IPv4 network addresses, broadcast addresses, CIDR subnet masks, wildcard masks, and usable host ranges instantly. Built for network engineers and CCNA subnetting practice—runs 100% locally in your browser.
Have comments, suggestions, bug reports, or feature requests?
Help us improve Subnet Calculator with your ideas, bug reports, or UI enhancements. Protected by Cloudflare Turnstile verification to keep our feedback channel free from automated bots and crawlers.
How to Calculate IPv4 Subnets & Practice for CCNA
- 1
Enter Base IPv4 Address
Type any IPv4 host or network address (e.g., 192.168.1.1 or 10.0.0.0) into the IP input field.
- 2
Select CIDR Prefix (/0 to /32)
Choose the CIDR prefix length (such as /24, /26, or /30) from the dropdown selector.
- 3
Inspect Network, Broadcast, Mask & Host Range
Review the computed Network Address, Broadcast Address, Subnet Mask, ACL Wildcard Mask, First/Last Usable Host, and Total Usable Hosts.
- 4
Test Your Subnet in Web Packet Tracer
Copy the calculated gateway and host IPs and test them inside the BrainyTools Web Packet Tracer simulator to verify routing and ARP behavior.
What is the BrainyTools Subnet Tool?
The BrainyTools Subnet Calculator is a technical utility designed for the precise allocation of IP addresses within a network. Subnetting is critical for security and performance, and our tool provides the detailed metrics (CIDR, mask, host counts) needed to configure routers and switches correctly. Pair it with our Web Packet Tracer to practice configuring interfaces and static routes hands-on.
How to Calculate IP Subnets
- Enter IP Address: Type the base IPv4 address for your network.
- Choose Mask: Select the subnet mask or CIDR prefix.
- Analyze: Review the network address, first/last host, and broadcast.
- Implement: Use the data to configure your network infrastructure.
Frequently Asked Questions (Subnet Calculator)
How can I use this IPv4 Subnet Calculator for CCNA subnetting practice?▼
Pick a random IPv4 address and CIDR prefix (such as 172.16.45.19/21), calculate the Network ID, Broadcast IP, Subnet Mask, Wildcard Mask, and Usable Host Range on paper, and then enter the values above to verify your answers immediately. You can also test your subnet plan live in our Web Packet Tracer simulator.
How is the usable host count calculated for a CIDR subnet?▼
For standard IPv4 subnets (/0 through /30), the number of usable hosts is 2^(32 - CIDR) - 2, because 1 address is reserved for the Network ID and 1 address is reserved for the Broadcast Address. For example, a /24 subnet has 2^8 - 2 = 254 usable hosts, while a /30 point-to-point router link has 2 usable hosts.
What is the difference between a Subnet Mask and a Wildcard Mask?▼
A subnet mask uses binary 1s to identify the network portion of an IPv4 address (e.g., 255.255.255.0 for /24), whereas a wildcard mask is the inverted bitmask (0.0.0.255 for /24) used in Cisco IOS Access Control Lists (ACLs) and OSPF network statements to match specific host bits.
Related Guides & Articles
View All Articles →CCNA Subnetting Practice & Online Packet Tracer Lab Guide (No Download)
Master IPv4 CIDR subnet masks, usable host ranges, ARP MAC learning, and Cisco IOS static routing using a free browser-based Packet Tracer alternative and subnet calculator.
IPv4 Addressing, Binary Octet Math & CIDR Prefix Notation Explained for CCNA
Learn IPv4 32-bit binary math, CIDR prefix lengths (/8 to /30), bitwise AND network calculation, usable host formulas, RFC 1918 private ranges, and wildcard masks for the CCNA 200-301 exam.
FLSM vs. VLSM Subnetting: How to Design Multi-Subnet CCNA Network Topologies
Learn Fixed-Length Subnet Masking (FLSM) and Variable-Length Subnet Masking (VLSM, RFC 1878) to allocate non-overlapping IPv4 subnets for CCNA topologies without wasting addresses.
IPv4 Routing Fundamentals: Connected Routes, Static Routes & Longest-Prefix Match Explained
Learn how routers select the best path using Longest-Prefix Match, Administrative Distance (AD), routing metrics, and Cisco IOS show ip route codes (C, L, S, O, D).
Explore More Tools
Web Packet Tracer & Online Network Simulator (Packet Tracer Alternative Online)
Run a free Packet Tracer alternative online with no download or Cisco NetAcad login required. Place PCs, Layer-2 switches, and Layer-3 routers on an interactive canvas, practice CCNA Cisco IOS CLI commands, and watch ARP and ICMP packets animate hop-by-hop.
Free IP Address Lookup & Geolocation Visualizer
Find country, city, region, ISP, coordinates, and local timezone info for any IPv4 or IPv6 address. Zero server tracking, built on CORS-friendly secure requests with interactive OpenStreetMap visualizer.
Free Online Number Base Converter
Easily convert numbers between Binary, Decimal, Hexadecimal, and Octal bases. Our high-precision Base Converter is a vital tool for programmers, computer scientists, and students working with low-level data representation and hardware logic.
Free Online Data Size Converter
Convert between different units of data storage including Bytes, Kilobytes (KB), Megabytes (MB), Gigabytes (GB), and Terabytes (TB). Our converter uses the standard binary calculation (1024) for maximum technical accuracy.
WiFi QR Code Generator — Share WiFi Instantly
Generate a secure, scannable QR code for your WiFi network instantly. Allows guests, customers, and colleagues to connect automatically by scanning the code—no manual password typing required. 100% private and generated locally in your browser.
Free Online Visual BMI Calculator
Calculate your Body Mass Index (BMI) with our interactive visual tool. Use sliders to adjust height and weight, select your somatotype (Ectomorph, Mesomorph, Endomorph), and see a real-time visualization of your body profile.
Free Online Age Calculator
Calculate your exact age in years, months, and days instantly. Discover your Western and Chinese zodiac signs, along with your Chinese zodiac personality traits. Perfect for milestone planning or satisfying your curiosity with precise insights.
Free Online Professional Unit Converter
Our comprehensive Unit Converter provides instant transformations across length, weight, temperature, and more. Designed for engineers, students, and travelers, this tool ensures you always have the right measurements at your fingertips with scientific precision.
Free Online Percentage & Discount Calculator
Master your finances and data analysis with our versatile Percentage Calculator. Quickly calculate percentage increases, decreases, and specific values for discounts, tips, or statistical reporting with absolute ease.
Latest Articles
Address Resolution Protocol (ARP) Explained: Broadcast Requests, Unicast Replies & Gateway Resolution
Deep dive into IETF RFC 826 Address Resolution Protocol (ARP): how hosts resolve IPv4 addresses to MAC addresses on local vs. remote subnets, ARP cache tables, and why the first ping times out.
Cisco IOS CLI Modes, Command Hierarchy & Verification Cheat Sheet for CCNA (200-301)
Master Cisco IOS CLI navigation for the CCNA 200-301 exam: User EXEC, Privileged EXEC, Global Config, Interface Config, context-sensitive ? help, Tab completion, and essential show commands.
Ethernet LAN Switching: How Layer-2 Switches Learn MAC Addresses & Forward Frames
Learn how IEEE 802.3 Ethernet frames and Layer-2 switches operate—including dynamic source MAC learning, unknown unicast flooding, broadcast handling, and show mac address-table verification.
FLSM vs. VLSM Subnetting: How to Design Multi-Subnet CCNA Network Topologies
Learn Fixed-Length Subnet Masking (FLSM) and Variable-Length Subnet Masking (VLSM, RFC 1878) to allocate non-overlapping IPv4 subnets for CCNA topologies without wasting addresses.
ICMP, Ping & Traceroute Explained: How TTL Exceeded and Destination Unreachable Work
Learn how IETF RFC 792 ICMP powers ping and traceroute (tracert)—including Echo Request/Reply, Time Exceeded (TTL=0), Destination Unreachable, and Cisco IOS ping symbols (!, ., U).