IP subnet calculator (CIDR)

For office and industrial networks and device configuration: everything about an IPv4 subnet from a single address.

Subnet

e.g. 24, /26 or 255.255.255.0

Result

Network192.168.1.0/24
Hosts254
Mask
255.255.255.0 (/24)
Wildcard mask
0.0.0.255
Network address
192.168.1.0
Broadcast address
192.168.1.255
First host
192.168.1.1
Last host
192.168.1.254
Addresses in block
256
Address type
private (RFC 1918)
Address in hex
0xC0A8010A
Itembinary
Address11000000.10101000.00000001.00001010
Mask11111111.11111111.11111111.00000000
Network11000000.10101000.00000001.00000000
Embed on your site

Paste this code into your page’s HTML. The tool sets its own height, and the link to Kalkio has to stay visible.

Calculator by Kalkio · kalkio.app

What /24 means

CIDR notation such as 192.168.1.0/24 says how many leading bits of the address (here 24 of 32) are the network number. The other 8 bits number the devices: 2⁸ = 256 addresses, of which the first is the network address and the last the broadcast address, leaving 254 for hosts.

PrefixMaskHosts
/30255.255.255.2522
/29255.255.255.2486
/28255.255.255.24014
/27255.255.255.22430
/26255.255.255.19262
/25255.255.255.128126
/24255.255.255.0254
/23255.255.254.0510
/22255.255.252.01022
/16255.255.0.065,534

Industrial networks

PLCs, HMIs and fieldbus devices (PROFINET, EtherNet/IP, Modbus TCP) usually get fixed addresses in one subnet. Devices talk directly only within the same subnet; reaching another network needs a gateway (router). The “is the address in the network” check shows straight away whether two devices can see each other without a router.

Common questions

How many hosts does a /24 have?

254: of the 256 addresses, the first is the network address and the last the broadcast address.

What mask is a /26?

255.255.255.192. A /26 has 64 addresses and 62 hosts.