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.
192.168.1.130 is host number 2 inside 192.168.1.128/25.
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
- Type an address such as 192.168.1.130/25, or an address and mask separated by a space.
- For a bare address, pick the prefix length from the list.
- Optionally choose a longer prefix under "Split into subnets of" to list the smaller networks.
- 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:
Page address with these inputs: https://kakao.mobile/tools/ip-subnet-calculator/
Cite or embed this tool
kakaoCalc. (2026, November 8). IP Subnet Calculator (IPv4 CIDR). https://kakao.mobile/tools/ip-subnet-calculator/
“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