Skip to content
Back to Blog
Technology

Subnetting Explained Visually + Free IPv4 Calculator

July 22, 2026 4 min read SciFunLab Team

Understand IP subnetting, CIDR notation, and subnet masks the visual way. Learn how the 32 bits split into network and host — then try a free interactive subnet calculator.

Subnetting is the topic that quietly defeats a lot of networking students — not because the maths is hard, but because it all happens in binary, out of sight. Once you can see the 32 bits of an IP address split into a network part and a host part, the /24, /26, and /30 rules stop being magic and start being obvious. This guide explains subnetting from the ground up, and pairs each idea with a free interactive subnet calculator you can experiment with as you read.

What an IP address really is

An IPv4 address like 192.168.1.10 looks like four separate numbers, but to a computer it is a single 32-bit binary number, split into four 8-bit chunks (octets) purely for human readability. Each octet ranges from 0 to 255 because 8 bits can represent 256 values.

Subnetting is the act of drawing a line through those 32 bits. Everything to the left of the line is the network portion — it identifies which network the address belongs to. Everything to the right is the host portion — it identifies a specific device on that network. The subnet calculator colour-codes these two halves so the boundary is impossible to miss.

CIDR notation: the number after the slash

Modern networking writes the boundary using CIDR (Classless Inter-Domain Routing) notation: 192.168.1.0/24. The /24 simply means the first 24 bits are the network portion. That leaves 32 − 24 = 8 bits for hosts.

  • A larger prefix (/26) gives more bits to the network and fewer to hosts → more subnets, each smaller.
  • A smaller prefix (/16) does the opposite → fewer, larger subnets.

Slide the prefix in the calculator from /8 up to /32 and watch the network/host line move one bit at a time. It is the fastest way to build an instinct for what a prefix actually does.

The subnet mask

The subnet mask is the same boundary written as a dotted-decimal number. A /24 becomes 255.255.255.0 — the 255s mark network bits (all 1s) and the 0 marks host bits (all 0s). Common masks worth memorising:

CIDR Subnet mask Usable hosts
/24 255.255.255.0 254
/25 255.255.255.128 126
/26 255.255.255.192 62
/27 255.255.255.224 30
/30 255.255.255.252 2

Network, broadcast, and usable range

For any block, three values matter:

  • Network address — the first address (all host bits 0). It names the subnet itself and cannot be assigned to a device.
  • Broadcast address — the last address (all host bits 1). It reaches every host on the subnet at once, and also cannot be assigned.
  • Usable host range — everything in between.

This is why a /24 gives 254 usable hosts, not 256: two addresses are reserved. Each extra network bit halves the usable count — a fact the calculator's live "usable hosts" readout makes concrete as you slide the prefix.

A worked example

Take 192.168.10.0/26:

  1. /26 means 26 network bits, 6 host bits.
  2. 6 host bits → 2⁶ = 64 addresses per subnet.
  3. Minus the network and broadcast addresses → 62 usable hosts.
  4. The subnets step in blocks of 64: .0, .64, .128, .192.

So 192.168.10.0/26 covers .0.63, with .1.62 usable and .63 as broadcast. Type this into the subnet calculator and every value is computed instantly, with the binary split shown in colour.

Public vs private addresses

Not every address is routable on the open internet. Three ranges are reserved for private networks behind NAT:

  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.0.0/16

These are what home routers and corporate LANs use. The calculator flags whether the address you enter is private and shows its historic class (A, B, or C) — useful context for the CCNA and CompTIA Network+ exams.

Where subnetting fits in the bigger picture

Subnetting is one layer of how the internet actually moves data. Once addresses make sense, the natural next questions are how packets find their way and how the layers stack up. SciFunLab has interactive labs for each:

  • OSI Model — how the seven layers hand data down and back up
  • DNS Resolution — how a name like scifunlab.com becomes an IP address
  • TCP Handshake — how two machines agree to talk before sending data
  • HTTP Request — what happens end-to-end when you load a page

Why the visual approach works

Subnetting questions on exams and in interviews reward fast recall: given an address and a prefix, state the network, broadcast, mask, and host count in seconds. That speed comes from having seen the bit boundary move enough times that you no longer convert to binary by hand — you just know where the line falls.

That is exactly what an interactive tool trains. Instead of grinding through conversion tables, you drag the prefix, read the result, and check your prediction. After a dozen goes, the /24 / /26 / /30 patterns are second nature.


Ready to practise? Open the free IP subnetting calculator — no signup, runs in your browser — and try predicting the network and broadcast address before you slide the prefix. Then explore the rest of the computer science and networking simulations to see how the whole stack fits together.

More Technology Articles