$subnet-calc 192.168.1.100 255.255.255.0

IP Subnet Calculator

IP Subnet Calculator. Enter an IP Address and Subnet Mask, then click Calculate in this IP subnet calculator to get the network, broadcast and usable hosts.

Input

Quick select subnet mask:

IP Subnet Details

Network Address
-
IP Address
-
Subnet Mask
-
CIDR Notation
-
Broadcast
-
Wildcard Mask
-
IP Class
-
First Host
-
Last Host
-
Total Addresses
-
Usable Hosts
-
IP Type
-

Binary Representation

IP Address
-
Subnet Mask
-
Network
-

Enter any IP address along with a subnet mask to calculate complete network details including the network address, broadcast address, first and last usable hosts, and available host range. Get instant results with CIDR notation, wildcard mask, and total address count for precise IPv4 subnet analysis.

An IP Subnet Calculator turns a bare IP address and subnet mask into the exact network address, broadcast address, and usable host range you'd otherwise work out by hand in binary. Enter an address along with a CIDR value or dotted subnet mask, and you'll see immediately how many devices fit inside that block, plus the network bits behind the math. Whether you're splitting a Class C address into smaller blocks or converting a slash number into decimal, this tool handles the entire calculation instantly for both IPv4 and IPv6 addressing.

What an IP Subnet Calculator Actually Calculates for You

A subnet, or subnetwork, is simply a smaller network carved out of a larger one. Every IP address is made up of two parts: the network portion, which identifies which subnet a device sits on, and the host portion, which identifies the device itself. A router reads only the network portion of the address to decide where a packet belongs — it never needs to inspect the individual device bits.

Feed an address and its mask into the calculator, and it returns everything downstream of that split: the network address (the first address in the block, identifying the subnet itself), the broadcast address (the last address, reserved for reaching every device on the block at once), the host address range in between, the subnet mask written in dot-decimal notation (like 255.255.255.0), the IP class the address falls under, if any, and the number of usable hosts the block can actually support.

Network Class and the Legacy A/B/C System

Before CIDR existed, every address belonged to a fixed network class determined by its first octet — Class A ran 1–126, Class B 128–191, and Class C 192–223 — each with its own default mask baked in. Classless Inter-Domain Routing replaced that rigid scheme, so a modern calculator can express any size instead of snapping to one of three fixed options.

Network ClassDefault MaskUsable Hosts
Class A255.0.0.016,777,214
Class B255.255.0.065,534
Class C255.255.255.0254

IP Address, Network Number, and Host Bits

Formally, an IP address is comprised of a network number and a host identifier — the rest field left over once the network portion is removed. IPv4 uses 32 bits total; how many belong to the network versus the device determines block size, following one fixed formula:

$$\text{Usable Hosts} = 2^{(32 - \text{prefix length})} - 2$$

The two subtracted addresses are the network and broadcast addresses themselves, which is why a /24 block yields 254 usable hosts rather than 256.

Step-by-Step: Using This IPv4 Subnet Calculator

  1. Enter the IP address you want to work with, in standard dotted format (e.g. 192.168.1.0)
  2. Choose a subnet mask, or type a raw CIDR value like /26
  3. Optionally set the number of blocks or devices you need, and let the tool solve the mask for you
  4. Review the returned results
  5. Repeat for each additional block you're carving out of the original address

Reading the Subnet Mask and Prefix Length

A mask like 255.255.255.192 and a slash of /26 describe the same boundary two different ways: 26 network bits, 6 device bits, 62 usable hosts. Mask bits are just another name for that same number, so once you're comfortable reading one, the other follows automatically.

CIDRNetwork MaskUsable Hosts
/24255.255.255.0254
/27255.255.255.22430
/28255.255.255.24014
/30255.255.255.2522

That range covers a single point-to-point link at one end and a full building's worth of addresses at the other. Along with the mask, the calculator also reports the subnet bits and subnet ID — the block's own address within a larger allocation — plus the maximum subnets a given size lets you carve out.

A Worked Example: Splitting One Network Into Four

Say you're handed 192.168.10.0/24 and told to split it evenly across four departments — sales, engineering, support, and finance — each needing room for roughly 50 people. Borrowing 2 extra positions from the low end turns that single /24 into four /26 blocks, each holding 62 assignable IPs: 192.168.10.0/26, 192.168.10.64/26, 192.168.10.128/26, and 192.168.10.192/26.

Writing that as a binary subnet mask makes the split easy to see: 11111111.11111111.11111111.11000000. The first 26 columns are 1s (the shared network prefix), and the remaining 6 are 0s, free to vary within each department's slice. A subnet bitmap lays this out visually — one row per block, shading the borrowed positions so you can spot at a glance which department owns which slice.

Document the hosts per subnet alongside the assignment sheet so whoever sets up new equipment later doesn't have to redo the arithmetic: 62 per department here, with room held in reserve if any team grows past that ceiling. That's the entire exercise a spreadsheet used to require, done in the time it takes to fill in one form.

Variable-Length Subnetting: Sizing Blocks to Fit

Not every department needs the same size block. Variable-length subnet masking (VLSM) lets you assign a large chunk to the group with 200 people and a much smaller one to a point-to-point link that only ever needs two addresses, instead of forcing every block to the same fixed size. Cloud providers apply the same idea automatically when you request a virtual private network — reserving a handful of small blocks for load balancers and gateways while leaving the bulk of the space for application servers.

This is also where planning ahead saves you a headache six months later: leave gaps between allocated blocks so a department that outgrows its original slice can expand into unused space next door, rather than forcing a disruptive renumbering project across the whole office. Print or bookmark the reference tables above once you've internalized the pattern, and you'll rarely need to reach for a calculator at all for routine work — but for anything time-sensitive, letting the tool handle the arithmetic remains the safer bet.

IPv6 Subnet Calculator Basics for 128-Bit Addressing

IPv6 subnetting follows the same logic as IPv4 but at a much larger scale: addresses are 128 bits, written in hexadecimal and separated by colons rather than dots. Rather than a subnet mask, IPv6 uses a slash number directly — commonly /64 for a single block, leaving 64 bits for device addressing alone.

$$\text{Total Addresses} = 2^{(128 - \text{prefix length})}$$

  • A /64 block contains far more addresses than the entire IPv4 space combined
  • Shorter values (like /48) are typically assigned to an entire site, not a single block
  • There's no equivalent of IPv4's broadcast address here — multicast handles that role instead

For this scenario, the calculator returns the full usable host IP range for a given size, along with the total number of /64 networks contained within a larger allocation — useful when a provider hands you a /48 or /56 and you need to know how many individual blocks you can actually stand up.

CIDR Notation and How a CIDR Calculator Reads It

CIDR notation is the standard shorthand for writing an address together with its routing prefix: an IP address, a slash, and a number of bits. 192.168.1.0/24 is a typical example — address on the left, size on the right. A dedicated CIDR calculator does nothing more mysterious than translating that slash notation into a full subnet mask and back again.

CIDR Notation and Routing Prefix Basics

A shorter value covers a larger block and sits higher up in a routing table; a longer one covers something smaller and more specific. Supernetting works in the opposite direction from subnetting — a supernet combines several adjacent blocks into a single, shorter routing prefix, which is how large ISPs keep their routing tables from growing unmanageably large.

Subnet Mask vs. Wildcard Mask Calculator Output

A subnet mask marks which bits belong to the network; the wildcard mask simply inverts it, flagging which bits are free to vary. Flip every bit of one and you get the other — routers use this inverted form in OSPF configuration and in an ACL (access control lists) entry that needs to match a whole span of addresses at once.

Getting the Boundaries Right Matters for Security, Not Just Math

Two fields deserve special attention because they're the ones people most often set wrong by hand: the last address in a block, and the count of usable hosts, which is always two less than the block's total size. Get either wrong and you create a real network security gap — unrelated devices end up sharing a broadcast domain, generating unnecessary network traffic and giving a compromised machine a wider blast radius than it should have.

Choosing the Right IP Calculator for Enterprise Networks

Network administrators and IT professionals reach for a calculator daily as a routine part of network administration — for troubleshooting connectivity, designing subnets for new VLANs, and simplifying the broader work of ip addressing and ip address management across a growing network. Whether you're new to computer networking, brushing up on TCP/IP fundamentals, or scaling cloud networking infrastructure across regions, getting comfortable with the arithmetic pays off quickly. The Internet Protocol gives every device on the internet a unique address, and a dedicated IP Subnet Calculator saves you from redoing the surrounding math in your head every time you provision a new one.

Not every job calls for the same tool. A quick one-off lookup might only need a free subnet calculator or a basic online subnet calculator, while planning address space for a growing office calls for something closer to an advanced subnet calculator or a dedicated network subnet calculator with saved history and export options — either way, a subnet calculator tool takes the guesswork out of the arithmetic. Some sites label the same functionality differently: you might see it called a subnetting calculator, a supernet calculator when it's aggregating blocks instead of splitting them, or an ip range calculator focused purely on the address range output.

Extra Output Fields: Hex ID, Binary ID, and In-addr.arpa

Beyond the core fields, a full-featured IP calculator surfaces a few extra representations of the same address that are worth recognizing even if you rarely need them:

  • Binary ID — the address as a raw string of 0s and 1s
  • Integer ID — the same address as a single decimal number
  • Hex ID — the address written as a hex IP address, prefixed with 0x
  • In-addr.arpa — the address in reverse octet order, used for a reverse DNS lookup entry
  • IPv4 mapped address — a 32-bit IPv4 address embedded inside a 128-bit IPv6 address
  • 6to4 prefix — a legacy transition scheme that tunnels IPv6 traffic across an IPv4-only network
  • Network interface — the physical or virtual port the address is bound to

None of these change the underlying math — they're just alternate representations of the same network number your calculator already computed. If your network relies on DHCP for dynamic addressing or DNS for name resolution, these same fields are what generate leases and reverse zone records behind the scenes.

Troubleshooting Common Subnetting and Supernetting Mistakes

Most of these mistakes come down to a handful of repeatable slip-ups rather than genuinely difficult math, and they tend to multiply once a team is juggling more than a handful of subnets spread across several sites or cloud regions rather than just one office network:

  • Forgetting to update the default gateway after resizing a block, leaving devices unable to reach anything off-block
  • Assigning the network or broadcast address to a device instead of leaving both reserved
  • Overlapping two blocks carved from the same parent network, which creates unpredictable routing behavior
  • Mixing up mask bits and device bits when converting between a subnet mask and a CIDR value by hand
  • Under-sizing a block for expected growth, forcing a disruptive re-numbering project later
  • Confusing an IPv6 size with an IPv4 subnet mask — they aren't interchangeable concepts

Running the numbers through a calculator instead of doing it manually removes nearly all of these — that's really all an IP Subnet Calculator does: turn address math you could technically do by hand into an instant, error-free lookup every time you need it. Keep a simple record of every block you hand out, even a plain spreadsheet listing which team or site owns which range, and the next person who inherits the network won't have to reverse-engineer your decisions from scratch.

Related Network Tools

Explore these related tools for subnet calculation and IP address management.

Additional networking calculators for IP address planning and network analysis.

About the author

Subash Geetha Krishnan

Tech Lead for Nimble Storage at HPE Services Storage Support

Subash Geetha Krishnan is a Tech Lead for Nimble Storage at HPE Services Storage Support, based in Singapore, with over 15 years of experience in enterprise storage solutions. He created SubnetCalculate so that accurate networking calculations are free and easy for everyone.

  • Content author: Subash Geetha Krishnan
  • Fact checked by: Subash Geetha Krishnan. Each calculator is built on industry-standard algorithms and tested against known results before it goes live.
  • Published Updated

Comments & Feedback

Share your experience or ask questions about this tool