AP Networking • Study Resource

Subnetting Calculator With Steps

Calculate an IPv4 subnet while seeing every step: prefix-to-mask conversion, block size, network boundary, broadcast address, usable host range, and host count.

Independent AP Networking resource • Updated 2026-10-01 • Built for students and teachers
AP Networking Premium: Add guided practice, answer explanations, artifact work, and structured review to the free study system.
Explore Premium Resources
Why steps

A step-by-step calculator makes the result explainable

The purpose of this page is not just to output a network and broadcast address. It is to show how those values follow from the prefix. If you can reproduce the steps on paper, a changed IP address becomes a routine calculation instead of a new puzzle.

Step 1

Convert the prefix to a mask

For example, /27 means 27 network bits. The first 24 fill three mask octets with 255. The remaining 3 network bits in the fourth octet are 11100000, decimal 224. The mask is therefore 255.255.255.224.

Step 2

Find the block size

The interesting octet is 224. Subtract from 256: 256 − 224 = 32. Every subnet boundary in that octet is a multiple of 32: 0, 32, 64, 96, 128, 160, 192, 224.

Step 3

Place the host inside one block

For host 192.168.50.173/27, the final octet 173 falls between the boundaries 160 and 192. The subnet therefore begins at 192.168.50.160.

Step 4

Find network, broadcast, and usable range

Network = 192.168.50.160. The next network starts at .192, so broadcast = .191. Traditional usable range = .161 through .190. Five host bits provide 32 total addresses and 30 traditional usable hosts.

Step 5

Use the result to predict host behavior

★ Addressing Practice • Subnetting Calculator With Steps

A five-minute warm-up for Subnetting Calculator With Steps

Tomorrow’s opening question can pick up where this page leaves off: have students explain where the addresses come from and what they would check when a device cannot connect. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource

A destination of 192.168.50.180 is inside the same /27, so the client treats it as local. A destination of 192.168.50.200 belongs to another /27 and is remote. The subnet math therefore predicts whether the default gateway is needed.

Second example

172.16.45.22/20

Addressing & Subnetting Lab • 120 Missions

Let students try Subnetting Calculator With Steps for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about Subnetting Calculator With Steps.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features

A /20 mask is 255.255.240.0. The interesting third octet has block size 16. Value 45 lies in the 32–47 interval. Network = 172.16.32.0, broadcast = 172.16.47.255, first host = 172.16.32.1, last host = 172.16.47.254.

Addressing Exam Practice • Subnetting Calculator With Steps

Check whether Subnetting Calculator With Steps has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs

This example shows why the method must work beyond the fourth octet.

Premium Routing Feedback

Spend less time marking explanations about Subnetting Calculator With Steps

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview
Use responsibly

A calculator checks subnet math, not the rest of the network

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach Subnetting Calculator With Steps as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples

If the subnet result is correct but communication still fails, move to the relevant layer: link state, VLAN, gateway, routing, DNS, security policy, or service availability. The calculator answers the address-boundary question only.

Use AP Networking Subnetting for the broader concept and Wrong Subnet Mask Symptoms for troubleshooting.