Subnet Calculator (IPv4 CIDR)

Type an IPv4 address with its prefix, such as 192.168.1.130/26, or with a netmask like 255.255.255.192. You get the network and broadcast addresses, the usable host range, the number of hosts, the subnet and wildcard masks in dotted and binary form, and whether the address is private, public or reserved. Switch modes to split a network, turn a range into CIDR blocks, work with IPv6 or convert address formats.

Calculator

For example 192.168.1.130/26, 10.0.0.5 255.255.255.0, or a bare address for /32.

Network (CIDR)192.168.1.128/26
Network address192.168.1.128
Broadcast address192.168.1.191
First usable host192.168.1.129
Last usable host192.168.1.190
Usable hosts62
Total addresses64
Subnet mask255.255.255.192
Wildcard mask0.0.0.63
Mask in binary11111111.11111111.11111111.11000000
Address in binary11000000.10101000.00000001.10000010
ClassC
Address typePrivate (RFC 1918)
Next network192.168.1.192/26

Every calculation runs in your browser. What you type never leaves this device.

Features

  • Network, broadcast, first and last usable host for any prefix from /0 to /32

  • Subnet mask, wildcard mask (for ACLs and OSPF) and both in binary

  • Handles /31 point-to-point links and /32 single hosts correctly

  • Labels private (RFC 1918), CGNAT, loopback, link-local, documentation and multicast ranges

  • Accepts a /prefix, a dotted netmask or a bare address

  • Copy any value with one click; the next network of the same size is shown too

Who uses a subnet calculator

Planning an office or home network

Check how many devices fit in 192.168.1.0/24 before you add cameras, phones and printers, and pick the DHCP range from the first and last usable host.

Cloud VPCs and security groups

Size AWS, Azure or GCP subnets and confirm that a CIDR you are about to allow in a firewall rule covers exactly the addresses you intend.

Router and firewall config

Get the wildcard mask for Cisco ACLs and OSPF network statements without working out the inverse by hand.

Networking exams and interviews

Check your answers for CCNA-style subnetting questions and see the binary mask that explains them.

Reading a CIDR block

What the /number means

The prefix length is how many leading bits are the network part. A /24 fixes the first 24 bits, leaving 8 bits (256 addresses) for hosts. Every bit you add to the prefix halves the block: /25 is 128 addresses, /26 is 64, /27 is 32.

Why usable hosts are two fewer

  • The first address is the network address and the last is the broadcast address, so a /24 has 254 usable hosts, not 256.
  • A /31 has two addresses and both are usable on point-to-point links (RFC 3021).
  • A /32 is one host, used for loopbacks and single-address firewall rules.

Private ranges to remember

  • 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private (RFC 1918) and are not routed on the internet.
  • 100.64.0.0/10 is carrier-grade NAT space, which many Indian ISPs and mobile networks hand out to customers.
  • 169.254.0.0/16 is link-local: a device gives itself one of these when it cannot reach a DHCP server.

Subnet Calculator (IPv4 CIDR) - FAQ