Subnet Calculator

This free subnet calculator turns any IPv4 address and CIDR prefix into a full network breakdown. Enter an address, pick a mask, and get the network, broadcast, host range, and more instantly.

It works as a CIDR calculator too. Switch the prefix from /0 to /32 and every result updates in real time, with copy buttons for each value. No sign-up, no limits.

IP Subnet Calculator

Enter an IPv4 address, then choose a CIDR prefix or subnet mask.

How to Use This Subnet Calculator

Get a full subnet breakdown in three quick steps.

  1. Type an IPv4 address, such as 192.168.1.10.
  2. Choose a CIDR prefix or subnet mask.
  3. Read the results and copy any value.

What Is a Subnet Calculator?

A subnet calculator works out the structure of an IP network from one address and a mask. Instead of doing binary math by hand, you get every address and range in seconds.

Network admins use it to plan address space, split networks, and avoid overlaps. Students use it to check subnetting homework. Anyone setting up a router can use it to understand their LAN.

What Is CIDR Notation?

CIDR notation writes a network as an address plus a slash and a number, like 192.168.1.0/24. The number is the prefix length: how many bits are fixed for the network part.

A larger prefix means a smaller network. A /24 leaves 8 host bits, giving 254 usable hosts. A /30 leaves 2 host bits, giving just 2. Use this CIDR calculator to see the numbers.

A few common prefixes show how CIDR notation maps to a subnet mask and host count. This table lists the ones you will meet most often on home and office networks.

CIDRSubnet maskUsable hostsTypical use
/24255.255.255.0254Standard home or office network
/25255.255.255.128126Half of a class C block
/26255.255.255.19262Small department or subnet
/27255.255.255.22430Small office or lab group
/28255.255.255.24014Tiny subnet or DMZ
/30255.255.255.2522Point-to-point router link

The usable host count is always two fewer than the total, because each subnet reserves a network and a broadcast address.

Subnet Mask and Wildcard Mask

The subnet mask marks which bits are the network. In 255.255.255.0, the first three groups are fixed and the last is free for hosts. The wildcard mask is simply its inverse.

Wildcard masks appear in firewall and access-list rules, where 0 means match and 255 means ignore. This subnet calculator shows both the mask and its wildcard, so you never convert by hand.

CIDR Notation Chart (/0 to /32)

This complete chart maps every CIDR prefix from /0 to /32 to its subnet mask, wildcard mask, total addresses, and usable hosts. It is a handy reference for any IP subnetting calculator task.

CIDRSubnet maskWildcard maskTotal addressesUsable hosts
/00.0.0.0255.255.255.2554,294,967,2964,294,967,294
/1128.0.0.0127.255.255.2552,147,483,6482,147,483,646
/2192.0.0.063.255.255.2551,073,741,8241,073,741,822
/3224.0.0.031.255.255.255536,870,912536,870,910
/4240.0.0.015.255.255.255268,435,456268,435,454
/5248.0.0.07.255.255.255134,217,728134,217,726
/6252.0.0.03.255.255.25567,108,86467,108,862
/7254.0.0.01.255.255.25533,554,43233,554,430
/8255.0.0.00.255.255.25516,777,21616,777,214
/9255.128.0.00.127.255.2558,388,6088,388,606
/10255.192.0.00.63.255.2554,194,3044,194,302
/11255.224.0.00.31.255.2552,097,1522,097,150
/12255.240.0.00.15.255.2551,048,5761,048,574
/13255.248.0.00.7.255.255524,288524,286
/14255.252.0.00.3.255.255262,144262,142
/15255.254.0.00.1.255.255131,072131,070
/16255.255.0.00.0.255.25565,53665,534
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011

Prefixes /31 and /32 are special: /31 gives two point-to-point hosts, and /32 identifies a single address.

Public, Private, and Special IP Ranges

Not every address is routable on the internet. Some blocks are reserved for private networks, loopback, and link-local use. The calculator labels each address so you know its type at a glance.

These reserved ranges show up constantly in subnetting work. Keep them in mind, because a private address behind a router is normal, while a public one is reachable across the internet.

RangeCIDRCommon useRoutable on internet
10.0.0.0/8Large private networksNo, private only
172.16.0.0/12Medium business networksNo, private only
192.168.0.0/16Home and office LAN addressesNo, private only
127.0.0.0/8Loopback to this deviceNo, local only
169.254.0.0/16Link-local when DHCP failsNo, single link

If the calculator labels your address as private, it lives behind a router and cannot be reached directly from the internet.

Worked Example: Subnetting 192.168.1.0/24

Say you have 192.168.1.0/24 and need four smaller subnets. Borrow two host bits to make /26 blocks. Each /26 then holds 62 usable hosts, which is plenty for a small team.

The four /26 subnets break down like this.

  • First subnet: 192.168.1.0 to 192.168.1.63.
  • Second subnet: 192.168.1.64 to 192.168.1.127.
  • Third subnet: 192.168.1.128 to 192.168.1.191.
  • Fourth subnet: 192.168.1.192 to 192.168.1.255.

Plug any of these into the calculator above to confirm the network, broadcast, and host range. It is the fastest way to check your subnetting before you configure a router.

Frequently Asked Questions

What is a subnet calculator used for?

It converts an IP address and subnet mask into the network address, broadcast address, usable host range, and host count. It saves you from doing binary subnetting math by hand.

Is this a CIDR calculator too?

Yes. Pick any prefix from /0 to /32 and it works as a CIDR calculator. It shows the CIDR notation, subnet mask, and wildcard mask for the block you enter.

How many usable hosts are in a /24?

A /24 has 256 total addresses and 254 usable hosts. The network keeps one address for itself and one for broadcast, leaving 254 for devices.

What is CIDR notation?

CIDR notation writes a network as an address and a prefix length, like 10.0.0.0/8. The prefix counts the network bits. This CIDR notation calculator turns that into full details.

Does it support IPv6?

This tool focuses on IPv4, which covers most home and office subnetting. IPv6 uses much larger prefixes and a different format, so it needs a separate calculator.

Is my data sent anywhere?

No. All subnetting math runs in your browser. Nothing you type is uploaded or stored, so you can use this IP subnetting calculator on private network plans safely.

Explore more free tools and guides on the site.

Bottom Line

This subnet calculator gives you the full picture of any IPv4 block in one place. Use it as a CIDR calculator, a subnetting checker, or a quick reference whenever you plan a network.

Was this guide helpful?