Skip to content

IP Subnet Calculator

Network, broadcast, host range and masks for any subnet.

You can also type CIDR, like 10.0.0.0/8.

Network

192.168.1.0/24

254 usable hosts

IP address
192.168.1.130
Network address
192.168.1.0
Broadcast address
192.168.1.255
Usable host range
192.168.1.1 - 192.168.1.254
Total addresses
256
Usable hosts
254
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
IP class
C
Type
Private (RFC 1918)
Integer / hex
3232235906 / 0xC0A80182
In-addr.arpa
130.1.168.192.in-addr.arpa

Usable hosts exclude the network and broadcast addresses.

Binary
IP address11000000.10101000.00000001.10000010
Subnet mask11111111.11111111.11111111.00000000
Network11000000.10101000.00000001.00000000
Broadcast11000000.10101000.00000001.11111111

Calculations run on this device and your inputs are not uploaded. A share link puts your inputs in the URL, so anyone with the link can read them.

More Other Calculators

All calculators

How the ip subnet calculator works

A CIDR prefix like /24 says how many leading bits of the address identify the network. The subnet mask has those bits set to 1; ANDing the IP with the mask gives the network address, and setting the remaining host bits to 1 gives the broadcast address.

A /n IPv4 subnet has 2^(32 - n) addresses. Two are reserved (network and broadcast), so a /24 has 256 addresses and 254 usable hosts. The wildcard mask is the inverse of the subnet mask, used in router ACLs.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions

256 addresses, 254 usable hosts, with a subnet mask of 255.255.255.0.

A /30 has 4 addresses and 2 usable hosts. A /31 has 2 addresses and, on point-to-point links, both are usable (RFC 3021).

Yes. Every calculator is free with no sign-up. Clearly labeled ads keep it that way.

Calculations run in your browser. Share links put inputs in the URL, which can be read by anyone you send it to and is sent to the hosting server when opened. Avoid sharing sensitive numbers. Currency conversion requests public exchange rates.

Results follow the formulas and assumptions shown, with normal rounding and numerical limits. Taxes, rates and health guidance can change, so treat these as estimates and confirm important decisions with a qualified professional.