EN
My tools

IP Subnet Calculator (IPv4 CIDR)

IPv4 subnet calculator: network and broadcast address, first and last host, usable hosts, subnet and wildcard masks, class and type. Split into smaller subnets.

Accepts 10.0.0.5/22, 10.0.0.5 255.255.252.0 or a bare address (then the prefix below is used).
Lists the smaller subnets inside this network (first 256 shown).
Network (CIDR)
192.168.1.128/25
Network address
192.168.1.128
Broadcast address
192.168.1.255
First usable host
192.168.1.129
Last usable host
192.168.1.254
Usable hosts
126
2^7 − 2 (network and broadcast excluded)
Total addresses
128
Subnet mask
255.255.255.128
Wildcard mask
0.0.0.127
used in Cisco ACLs and OSPF
Binary subnet mask
11111111.11111111.11111111.10000000
IP address in binary
11000000.10101000.00000001.10000010
Hex (address / mask)
0xC0A80182 / 0xFFFFFF80
IP class
C
classful default /24 (classes are historical; CIDR replaced them in 1993)
Address type
Private (RFC 1918)

192.168.1.130 is host number 2 inside 192.168.1.128/25.

My tools →
Advertisement

An IPv4 subnet is a block of addresses that share the same leading bits. Type an address with its prefix (/25) or its mask (255.255.255.128) and this calculator works out the network and broadcast addresses, the range you can give to hosts, how many hosts fit, the subnet and wildcard masks in dotted, binary and hex form, and what kind of address it is (private, public, loopback, carrier-grade NAT, documentation…). It can also split the network into smaller subnets.

How to use this tool

  1. Type an address such as 192.168.1.130/25, or an address and mask separated by a space.
  2. For a bare address, pick the prefix length from the list.
  3. Optionally choose a longer prefix under "Split into subnets of" to list the smaller networks.
  4. Copy the network, host range and masks you need.

Formula

mask = 2³² − 2^(32 − p) · network = IP AND mask · broadcast = network OR wildcard · usable hosts = 2^(32 − p) − 2

p is the prefix length and the wildcard mask is the mask with every bit inverted. A /31 is a special case: RFC 3021 lets both of its addresses be used on point-to-point links, and a /32 is a single host.

Example

192.168.1.130/25: the mask is 255.255.255.128, so the last 7 bits belong to hosts and the block holds 2⁷ = 128 addresses. 130 AND 128 = 128, so the network is 192.168.1.128 and the broadcast 192.168.1.255. Hosts run from 192.168.1.129 to 192.168.1.254 — 126 usable hosts. The wildcard mask is 0.0.0.127.

Frequently asked questions

Why are two addresses not usable?

In a normal subnet the first address names the network and the last is the broadcast address, so neither can be given to a device. Only /31 point-to-point links and /32 host routes are exceptions.

What is a wildcard mask?

The inverse of the subnet mask (0 where the mask has 1). Cisco access lists and OSPF network statements use it: 0.0.0.255 matches any value in the last octet.

Do IP classes still matter?

Not for routing. Classless addressing (CIDR, 1993) lets any prefix length be used. The class is shown because exams and some older equipment still refer to it.

Which ranges are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). 100.64.0.0/10 is shared address space for carrier-grade NAT, also not routed on the internet.

Sources

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). IP Subnet Calculator (IPv4 CIDR). https://kakao.mobile/tools/ip-subnet-calculator/

MLA

“IP Subnet Calculator (IPv4 CIDR).” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/ip-subnet-calculator/.

Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms

Advertisement