IPv4 Subnet and CIDR Calculator
Calculate IPv4 network address, broadcast, usable host range, netmask, wildcard, binary mask, and RFC address type (RFC 1918, /31, CGNAT).
Input Parameters
Calculation Results
- IP Address
- 192.168.1.10
- CIDR Prefix
- 24 bits
- CIDR Notation
- 192.168.1.0/24
- Network Address
- 192.168.1.0
- Broadcast Address
- 192.168.1.255
- First Usable Host
- 192.168.1.1
- Last Usable Host
- 192.168.1.254
- Usable Hosts
- 254 Hosts
- Total IP Addresses
- 256 Addresses
- Subnet Mask
- 255.255.255.0
- Wildcard Mask
- 0.0.0.255
- Binary Mask
- 11111111.11111111.11111111.00000000
- Binary IP
- 11000000.10101000.00000001.00001010
- IP Address Type
- Private (RFC 1918)
- IP Class
- C
- Hexadecimal IP
- 0xC0A8010A
- Reverse DNS (in-addr.arpa)
- 1.168.192.in-addr.arpa
Network Reflex & Speed Drill
Standar SKKNI J.611000.004.01 • MTCNA • CCNA • LPIC-1Interactive speed drill testing your quick calculation reflexes on CIDR/VLSM subnetting, TIA-598-C fiber color codes, well-known ports, and Linux sysadmin commands without using external calculators.
🎯 Your Task: Answer each multiple-choice question as accurately and quickly as possible to benchmark your engineering instincts.
Isolate management, server, user, and IoT/CCTV traffic into dedicated 802.1Q VLANs.
CIDR Quick Reference Table (/0 to /32)
| CIDR | Netmask | Wildcard | Usable Hosts |
|---|---|---|---|
| /0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,294 |
| /1 | 128.0.0.0 | 127.255.255.255 | 2,147,483,646 |
| /2 | 192.0.0.0 | 63.255.255.255 | 1,073,741,822 |
| /3 | 224.0.0.0 | 31.255.255.255 | 536,870,910 |
| /4 | 240.0.0.0 | 15.255.255.255 | 268,435,454 |
| /5 | 248.0.0.0 | 7.255.255.255 | 134,217,726 |
| /6 | 252.0.0.0 | 3.255.255.255 | 67,108,862 |
| /7 | 254.0.0.0 | 1.255.255.255 | 33,554,430 |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,214 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,606 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,302 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,150 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,574 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,286 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,142 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,070 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 |
Visual Network Topology Generator (SVG / PNG)
Technical Accuracy Note: Calculation results are engineering estimates based on standard RFC/IEEE/ITU-T models. Actual field performance may vary due to protocol overhead, hardware specifications, and environmental factors.
How to Use This Tool
- Enter an IPv4 address in the input field using CIDR notation (e.g. 192.168.1.10/24), IP with netmask (192.168.1.10 255.255.255.0), IP with wildcard mask (192.168.1.10 0.0.0.255), or enter a bare IP and select a prefix length from /0 to /32.
- Review the instant calculation results including Network Address, Broadcast Address, First and Last Usable Host range, Usable Host Count, Netmask, Wildcard Mask, binary mask representation, and RFC address classification.
- Use the Copy buttons, export to Markdown or CSV, or expand the CIDR Quick Reference Table (/0 to /32) to compare adjacent subnet block sizes.
Worked Example: Office LAN /24 (192.168.1.10/24)
For input 192.168.1.10/24, a bitwise AND with netmask 255.255.255.0 produces network address 192.168.1.0 and broadcast address 192.168.1.255 (wildcard 0.0.0.255). Out of 256 total addresses (2^8), there are 254 usable host addresses ranging from 192.168.1.1 to 192.168.1.254 classified as Private (RFC 1918).
- IPv4 Address (or IP/CIDR, IP + Netmask, IP + Wildcard)
- 192.168.1.10
- CIDR Prefix (/0 – /32)
- 24 bits
- IP Address
- 192.168.1.10
- CIDR Prefix
- 24 bits
- CIDR Notation
- 192.168.1.0/24
- Network Address
- 192.168.1.0
- Broadcast Address
- 192.168.1.255
- First Usable Host
- 192.168.1.1
- Last Usable Host
- 192.168.1.254
- Usable Hosts
- 254 Hosts
- Total IP Addresses
- 256 Addresses
- Subnet Mask
- 255.255.255.0
- Wildcard Mask
- 0.0.0.255
- Binary Mask
- 11111111.11111111.11111111.00000000
- Binary IP
- 11000000.10101000.00000001.00001010
- IP Address Type
- Private (RFC 1918)
- IP Class
- C
- Hexadecimal IP
- 0xC0A8010A
- Reverse DNS (in-addr.arpa)
- 1.168.192.in-addr.arpa
Core Concept & Engineering Notes
How It Was Calculated (Formulas & Steps)
Mathematical Formulas
- Network Address = IP Address AND Subnet Mask
- Wildcard Mask = NOT (Subnet Mask)
- Broadcast Address = Network Address OR Wildcard Mask
- Total Addresses = 2^(32 − Prefix)
- Usable Hosts = 2^(32 − Prefix) − 2 (for /0 to /30), 2 addresses for /31 (RFC 3021), and 1 address for /32
Step-by-Step Calculation
- Input: 192.168.1.10/24 (Host bits = 32 − 24 = 8)
- Netmask: 255.255.255.0 (11111111.11111111.11111111.00000000), Wildcard: 0.0.0.255
- Network Address = 192.168.1.10 AND 255.255.255.0 = 192.168.1.0
- Broadcast Address = 192.168.1.0 OR 0.0.0.255 = 192.168.1.255
- Usable Hosts = 2^8 − 2 = 256 − 2 = 254 (192.168.1.1 – 192.168.1.254)
Frequently Asked Questions (FAQ)
Why does a /24 subnet have 254 usable hosts instead of 256?
A /24 subnet leaves 8 host bits, yielding 2^8 = 256 total addresses. However, the first address (e.g. 192.168.1.0) is reserved as the Network ID and the last address (192.168.1.255) is reserved as the Broadcast Address, leaving 254 assignable host addresses.
When should I use a /30 vs a /31 prefix for point-to-point router links?
A /30 prefix allocates 4 total addresses (2 usable hosts) and works with all legacy equipment. A /31 prefix (RFC 3021) saves 50% of IPv4 space by providing 2 usable point-to-point addresses with no broadcast address, and is supported by virtually all modern routers.
What is the difference between a Subnet Mask and a Wildcard Mask?
A subnet mask uses binary 1s to mark network bits and 0s for host bits (e.g. /24 = 255.255.255.0). A wildcard mask is the bitwise inverse (NOT) of the subnet mask (e.g. /24 = 0.0.0.255) and is commonly used in OSPF network statements and router ACLs.
What is the CGNAT 100.64.0.0/10 (RFC 6598) address range?
The 100.64.0.0/10 block (100.64.0.0 through 100.127.255.255) is reserved by IANA under RFC 6598 specifically for Carrier-Grade NAT (Shared Address Space) between service provider cores and customer premises equipment so it does not collide with customer RFC 1918 LANs.
Related Calculators
View All Network & Routing Tools →Split an IPv4 network into N equal subnets or allocate boundary-aligned VLSM blocks by required host count with CSV and Markdown export.
Expand and compress IPv6 addresses per RFC 5952, calculate network prefix boundaries, /64 SLAAC subnet counts, and child prefix blocks.
Calculate Limit-At (CIR), Max-Limit (MIR), Burst, PCQ, and FQ-CoDel for RouterOS v7 with automated configuration script generation.
Multi-WAN (2–5 ISP) proportional PCC load balancing and recursive failover configuration script generator for RouterOS v7.
Expose internal server/NVR ports to the public internet (DST-NAT) and eliminate local loopback timeouts using Hairpin NAT.
Prioritize WhatsApp calls, Zoom/Teams conferences, and gaming latency above bulk downloads using RouterOS v7 FQ-CoDel Queue Trees.
References & Notes
- RFC 1918 — Address Allocation for Private Internets
- RFC 3021 — Using 31-Bit Prefixes on IPv4 Point-to-Point Links
- RFC 6598 — IANA-Reserved IPv4 Prefix for Shared Address Space (CGNAT)
- RFC 4632 — Classless Inter-domain Routing (CIDR): The Internet Address Assignment and Aggregation Plan
Note: Results above are mathematical estimates based on standard formulas. Always verify against official vendor documentation and site conditions before production deployment.
🔗Related Scenarios & Companion Calculators
Browse All 30+ Scenarios →⚡ Ready-to-Use Scenario Presets:
Instant /32 CIDR reference: Subnet Mask is 255.255.255.255, Wildcard 0.0.0.0, Total IPs 1, and 1 Usable Hosts. Ideal for OSPF/BGP Router Loopback & Single Host Route.
Instant /30 CIDR reference: Subnet Mask is 255.255.255.252, Wildcard 0.0.0.3, Total IPs 4, and 2 Usable Hosts. Ideal for Point-to-Point Inter-Router WAN Link (2 Usable IPs).
Instant /29 CIDR reference: Subnet Mask is 255.255.255.248, Wildcard 0.0.0.7, Total IPs 8, and 6 Usable Hosts. Ideal for DMZ Public Server Sub-Block & BGP Peering (6 Hosts).
🛠️ Sibling Calculators in this Category:
Split an IPv4 network into N equal subnets or allocate boundary-aligned VLSM blocks by required host count with CSV and Markdown export.
Expand and compress IPv6 addresses per RFC 5952, calculate network prefix boundaries, /64 SLAAC subnet counts, and child prefix blocks.
Calculate Limit-At (CIR), Max-Limit (MIR), Burst, PCQ, and FQ-CoDel for RouterOS v7 with automated configuration script generation.
Multi-WAN (2–5 ISP) proportional PCC load balancing and recursive failover configuration script generator for RouterOS v7.
Engineering Sensitivity Analysis, Response Curve & Technical Citation
1. 1. 3-Point Engineering Sensitivity & Tolerance Envelope
Comparative evaluation across theoretical laboratory bounds (0% loss), current nominal operating point, and conservative field safety bounds (±15% thermal/aging derating).
| Evaluated Parameter | Ideal Theoretical Bound | Nominal Operating Point | Conservative Safety Bound (±15%) | Engineering Derating Rule |
|---|---|---|---|---|
| CIDR Prefix | 21.6 | 24 | 27.6 | Engineering Safety Margin (+15% Overhead) |
| Usable Hosts | 274 | 254 | 216 | Thermal & Aging Derating (-15% Worst-Case) |
| Total IP Addresses | 230 | 256 | 294 | Engineering Safety Margin (+15% Overhead) |
2. 2. Mathematical Function Curve & Operating Coordinate (x₀, y₀)
3. 3. Physical Constants & Normative Standard Clauses
DC Loop Resistance for 23 AWG Solid Copper Cat6
Clause 6.4.1 / Table 145-1 — Nominal 23 AWG solid copper loop resistance at 20°C is 14.0 Ω/100m (TIA maximum ceiling is 18.8 Ω/100m).
Single-Mode Optical Fiber Attenuation Coefficient at 1490 nm
Table 1 / Class B+ & C+ Optical Path — Typical G.652.D attenuation at 1490 nm downstream is 0.22–0.25 dB/km (1310 nm upstream: 0.35 dB/km).
Temperature Coefficient of Resistance for Copper
International Annealed Copper Standard — Used in thermal derating equation: R(T) = R_20 × [1 + 0.00393 × (T - 20)].
4. 4. Independent Technical & Academic Citation (IEEE / APA 7th / BibTeX / LaTeX)
Use the standard citation formats below to reference this computational methodology in engineering specifications, audit reports, or academic papers.
[IEEE] KalkuNet Engineering Team, "IPv4 Subnet and CIDR Calculator — Standard Engineering Computational Instrument," KalkuNet Technical Suite, 2026. [Online]. Available: https://kalkunet.com/en/tools/subnet-calculator. [Accessed: 2026-11-08].
[APA 7th] KalkuNet Engineering Team. (2026). IPv4 Subnet and CIDR Calculator (Production release 2026-11-08) [Engineering computational software]. KalkuNet. https://kalkunet.com/en/tools/subnet-calculator
@software{kalkunet_subnet_calculator_2026,
author = {{KalkuNet Engineering Team}},
title = {{IPv4 Subnet and CIDR Calculator --- KalkuNet Engineering Suite}},
year = {2026},
publisher = {KalkuNet.com},
url = {https://kalkunet.com/en/tools/subnet-calculator},
urldate = {2026-11-08}
}
% LaTeX Engineering Derivation — Generated via https://kalkunet.com/en/tools/subnet-calculator
\begin{equation}
\text{Model: } Network Address = IP Address AND Subnet Mask
\end{equation}
% Parameter Input Terukur: ip = 192.168.1.10, \; prefix = 24
% Hasil Evaluasi Numerik : ip = \mathbf{192.168.1.10}, \; prefix = \mathbf{24}, \; cidr = \mathbf{192.168.1.0/24}