<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: QLeap Ventures</title>
    <description>The latest articles on DEV Community by QLeap Ventures (@qleapventures).</description>
    <link>https://dev.to/qleapventures</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4201208%2F0ffb1b95-9177-4bde-8e47-5c2cf7c37959.png</url>
      <title>DEV Community: QLeap Ventures</title>
      <link>https://dev.to/qleapventures</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/qleapventures"/>
    <language>en</language>
    <item>
      <title>How to Calculate Subnets in Your Head Without Binary Math</title>
      <dc:creator>QLeap Ventures</dc:creator>
      <pubDate>Sun, 25 Oct 2026 15:00:00 +0000</pubDate>
      <link>https://dev.to/qleapventures/how-to-calculate-subnets-in-your-head-without-binary-math-l9g</link>
      <guid>https://dev.to/qleapventures/how-to-calculate-subnets-in-your-head-without-binary-math-l9g</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5pevusjr8zw41n6n3sb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5pevusjr8zw41n6n3sb.png" alt="Screenshot of the Active IT Prep subnetting calculator displaying Network ID, usable host range, broadcast ID, subnet mask, and Magic Number breakdown for 192.168.30.22/30" width="800" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Want to check your work as you read? The free calculator at &lt;a href="https://activeitprep.com/subnet" rel="noopener noreferrer"&gt;activeitprep.com/subnet&lt;/a&gt; shows each step below.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Subnetting has a reputation for being painful, mostly because most guides start by converting everything to binary. You can skip that. Once you know the Magic Number method, you can find a subnet's network ID, broadcast address, and usable range with simple decimal math. I used it to pass Network+, and it's what I teach.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Three Steps
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find the interesting octet.&lt;/strong&gt; This is the octet where the mask is neither 255 nor 0. For &lt;code&gt;/25&lt;/code&gt; it's the 4th octet, for &lt;code&gt;/20&lt;/code&gt; it's the 3rd, for &lt;code&gt;/12&lt;/code&gt; it's the 2nd.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Find the block size.&lt;/strong&gt; Block size is 256 minus the mask value in that octet. Another way to see it: halve 256 once for every bit borrowed in that octet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count up by the block size.&lt;/strong&gt; Start at 0 and count up until you pass the address's value in that octet. The multiple at or below it is the network ID. The broadcast is one less than the next multiple. The usable hosts are everything between.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Example 1: &lt;code&gt;192.168.14.77/27&lt;/code&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/27&lt;/code&gt; borrows 3 bits in the 4th octet (&lt;code&gt;27 - 24 = 3&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Halve 256 three times: &lt;code&gt;256 / 2 / 2 / 2 = 32&lt;/code&gt;, so the block size is &lt;strong&gt;32&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Mask: &lt;code&gt;256 - 32 = 224&lt;/code&gt;, so &lt;code&gt;255.255.255.224&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Count by 32: &lt;code&gt;0, 32, 64, 96&lt;/code&gt;. The value &lt;code&gt;77&lt;/code&gt; sits in the &lt;strong&gt;64&lt;/strong&gt; block&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network ID:&lt;/strong&gt; &lt;code&gt;192.168.14.64&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Next block starts at &lt;code&gt;96&lt;/code&gt;, so the &lt;strong&gt;Broadcast&lt;/strong&gt; is &lt;code&gt;192.168.14.95&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Usable range:&lt;/strong&gt; &lt;code&gt;192.168.14.65&lt;/code&gt; to &lt;code&gt;192.168.14.94&lt;/code&gt; (30 hosts)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Example 2: When the interesting octet isn't the last one
&lt;/h2&gt;

&lt;p&gt;Take &lt;code&gt;10.45.130.9/20&lt;/code&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/20&lt;/code&gt; borrows 4 bits in the 3rd octet (&lt;code&gt;20 - 16 = 4&lt;/code&gt;), so the interesting octet is the third&lt;/li&gt;
&lt;li&gt;Block size: &lt;code&gt;256 / 2 / 2 / 2 / 2 = 16&lt;/code&gt;, mask &lt;code&gt;255.255.240.0&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Count by 16 in the 3rd octet: &lt;code&gt;..., 112, 128, 144&lt;/code&gt;. The value &lt;code&gt;130&lt;/code&gt; sits in the &lt;strong&gt;128&lt;/strong&gt; block&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network ID:&lt;/strong&gt; &lt;code&gt;10.45.128.0&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Next block starts at &lt;code&gt;144&lt;/code&gt;, so the &lt;strong&gt;Broadcast&lt;/strong&gt; is &lt;code&gt;10.45.143.255&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Usable range:&lt;/strong&gt; &lt;code&gt;10.45.128.1&lt;/code&gt; to &lt;code&gt;10.45.143.254&lt;/code&gt; (4,094 hosts)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Everything after the interesting octet is &lt;code&gt;0&lt;/code&gt; for the network and &lt;code&gt;255&lt;/code&gt; for the broadcast.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Reference Table
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CIDR&lt;/th&gt;
&lt;th&gt;Mask (Last Octet)&lt;/th&gt;
&lt;th&gt;Block Size&lt;/th&gt;
&lt;th&gt;Usable Hosts&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;/25&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;128&lt;/td&gt;
&lt;td&gt;128&lt;/td&gt;
&lt;td&gt;126&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;/26&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;192&lt;/td&gt;
&lt;td&gt;64&lt;/td&gt;
&lt;td&gt;62&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;/27&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;224&lt;/td&gt;
&lt;td&gt;32&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;/28&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;240&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;/29&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;248&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;/30&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;252&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Usable hosts is always total addresses minus 2, because the first address is the network ID and the last is the broadcast. Two special cases: &lt;code&gt;/31&lt;/code&gt; (point-to-point links, RFC 3021) has no network or broadcast address, and &lt;code&gt;/32&lt;/code&gt; is a single host.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practice Problems
&lt;/h2&gt;

&lt;p&gt;Try these on paper:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;code&gt;172.16.50.200/26&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;192.168.1.100/28&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;10.20.77.5/21&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Click to view answers&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Network:&lt;/strong&gt; &lt;code&gt;172.16.50.192&lt;/code&gt; | &lt;strong&gt;Broadcast:&lt;/strong&gt; &lt;code&gt;172.16.50.255&lt;/code&gt; | &lt;strong&gt;Usable:&lt;/strong&gt; &lt;code&gt;.193&lt;/code&gt; to &lt;code&gt;.254&lt;/code&gt; (62 hosts)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network:&lt;/strong&gt; &lt;code&gt;192.168.1.96&lt;/code&gt; | &lt;strong&gt;Broadcast:&lt;/strong&gt; &lt;code&gt;192.168.1.111&lt;/code&gt; | &lt;strong&gt;Usable:&lt;/strong&gt; &lt;code&gt;.97&lt;/code&gt; to &lt;code&gt;.110&lt;/code&gt; (14 hosts)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network:&lt;/strong&gt; &lt;code&gt;10.20.72.0&lt;/code&gt; | &lt;strong&gt;Broadcast:&lt;/strong&gt; &lt;code&gt;10.20.79.255&lt;/code&gt; | &lt;strong&gt;Usable:&lt;/strong&gt; &lt;code&gt;10.20.72.1&lt;/code&gt; to &lt;code&gt;10.20.79.254&lt;/code&gt; (2,046 hosts)&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  Test Your Subnetting Speed
&lt;/h3&gt;

&lt;p&gt;If you want more reps, there are 20 graded practice problems in the free subnet calculator at &lt;a href="https://activeitprep.com/subnet" rel="noopener noreferrer"&gt;activeitprep.com/subnet&lt;/a&gt;. It breaks down every calculation step-by-step with no signup or ads required.&lt;/p&gt;

&lt;p&gt;Looking to go beyond standard multiple choice? Test your hands-on Network+ skills on live virtual console configurations at &lt;a href="https://activeitprep.com/networking-simulator" rel="noopener noreferrer"&gt;activeitprep.com/networking-simulator&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>comptia</category>
    </item>
  </channel>
</rss>
