Free IP Subnet Calculator (IPv4 CIDR)

Free IPv4 subnet calculator: enter an IP and CIDR or mask to get network, broadcast, usable host range, wildcard, binary view and a list of smaller subnets.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow Subnetting Works: CIDR, Subnet Masks and Usable Host Ranges →

About the IP Subnet Calculator tool

Planning a network, writing firewall rules or configuring a cloud VPC all start with the same questions: which addresses belong to this subnet, which one is the gateway, and how many hosts fit? Working that out by hand means converting to binary and masking bits, which is slow and easy to get wrong under pressure.

This IPv4 subnet calculator does the arithmetic instantly. Type an address with CIDR notation such as 10.20.0.0/22, or pick a subnet mask from the list, and it returns the network address, broadcast address, first and last usable host, number of usable hosts, subnet mask, wildcard mask, IP class and whether the address is private, public, loopback, CGNAT or reserved. A binary view shows exactly where the network bits end.

Need to divide a block? Choose a longer prefix under “Split this network into” and the tool lists every resulting subnet with its usable range and broadcast address, ready to copy into documentation or infrastructure code. Everything is calculated in your browser.

How to use IP Subnet Calculator

  1. Type an IP address with a prefix, such as 192.168.1.10/24, into “IP address or CIDR”.
  2. Or enter a plain IP and choose a mask from the “Subnet mask” list.
  3. Read the network, broadcast, host range, host count and wildcard in the results table.
  4. Check the “Binary view” to see the network and host bits.
  5. Pick a prefix under “Split this network into” to list subnets, then click “Copy list”.

Features

Full subnet breakdown

Network, broadcast, first and last host, usable and total addresses, mask, wildcard and reverse DNS zone.

Mask or CIDR input

Accepts 10.0.0.1/8, 10.0.0.1/255.0.0.0 or an IP plus a mask chosen from a list.

Address type detection

Identifies RFC 1918 private, loopback, link-local, CGNAT, multicast, documentation and public ranges.

Subnet splitter

Divide a network into smaller equal subnets and list up to 256 of them with ranges.

Correct /31 and /32 handling

Point-to-point /31 links and single-host /32 routes are handled per RFC 3021 rather than showing negative hosts.

When to use it

  • Carve a /16 VPC into /24 subnets for AWS, Azure or Google Cloud.
  • Find the valid host range to assign static IPs on an office LAN.
  • Write a firewall or security group rule with the right wildcard mask.
  • Check whether an IP in a log belongs to a private or public range.
  • Study for CCNA or Network+ subnetting questions.

Frequently asked questions

How many usable hosts are in a /24?

A /24 has 256 addresses. The first is the network address and the last is the broadcast, leaving 254 usable host addresses.

What is a wildcard mask?

It is the inverse of the subnet mask, with 0 bits where the address must match and 1 bits where it may vary. Cisco ACLs and OSPF use it; 255.255.255.0 becomes 0.0.0.255.

Which IP ranges are private?

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks. 100.64.0.0/10 is shared address space used by carrier-grade NAT.

Why does a /31 have two usable addresses?

RFC 3021 lets point-to-point links use both addresses of a /31, since no broadcast address is needed between two routers.

Does this calculator support IPv6?

No, it handles IPv4 only. IPv6 subnetting uses 128-bit addresses and different conventions such as /64 LAN subnets.

Related tools