🌐 EN

🌐 IP Subnet Calculator

Find the network range and host addresses of an IPv4 subnet.

Calculation Results
Subnet Mask —
Network Address —
First Host —
Last Host —
Broadcast Address —
Usable Hosts —

Common CIDR Values

/8 · 16,777,214 hosts (255.0.0.0) /16 · 65,534 hosts (255.255.0.0) /24 · 254 hosts (255.255.255.0) /28 · 14 hosts (255.255.255.240) /30 · 2 hosts (255.255.255.252) /32 · 1 host (255.255.255.255)

Inputs and checks

  • Enter four decimal IPv4 octets separated by dots, each from 0 to 255.
  • Enter a whole CIDR prefix from 0 to 32; the starting inputs are 192.168.1.1 and 24.
  • Press Calculate or edit either input to update the subnet fields.

Reading the result

  • The mask and network show which addresses share the selected prefix.
  • Prefixes /31 and /32 have special host counts of 2 and 1, unlike ordinary subnets.
  • Malformed text may be partially read or leave previous values shown; use standard dotted integers only. IPv6 is not supported.

Examples

A /26 subnet containing 192.168.1.130

Input
IPv4: 192.168.1.130; CIDR: 26
Result
Mask 255.255.255.192; network 192.168.1.128; first 192.168.1.129; last 192.168.1.190; broadcast 192.168.1.191; usable hosts 62
How to check it
A /26 block contains 64 addresses; excluding the network and broadcast gives 62 hosts.

A two-address /31 subnet

Input
IPv4: 10.0.0.5; CIDR: 31
Result
Mask 255.255.255.254; network 10.0.0.4; first 10.0.0.4; last 10.0.0.5; broadcast 10.0.0.5; usable hosts 2
How to check it
The tool treats both addresses in a /31 block as usable.

Frequently asked questions

Can I enter an IPv6 address?
No. The calculator accepts IPv4 only.
Why does /31 show two usable hosts?
The calculator uses the special two-address /31 rule.
Can it locate the owner of an IP address?
No. It calculates subnet numbers without ownership lookup.