↑ ↓ to move · Enter to open · Esc to close

🌐 IP Subnet Calculator

Enter an IPv4 address and prefix to see its network, broadcast, host range and masks – and divide it into smaller subnets.

Quick answer: 192.168.1.10/24 belongs to network 192.168.1.0 with subnet mask 255.255.255.0, broadcast address 192.168.1.255 and 254 usable hosts (192.168.1.1 – 192.168.1.254).

Updated · Free · No sign-up · Works on any device

IP Subnet Calculator inputs

You can also type CIDR notation, such as 10.0.0.0/16.
/
Rounded up to a power of two – e.g. 4 subnets of a /24 are four /26 networks.

Result

Network

192.168.1.0/24

254 usable hosts · Private (RFC 1918)

IP address192.168.1.10
Network address192.168.1.0
Broadcast address192.168.1.255
First usable host192.168.1.1
Last usable host192.168.1.254
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
CIDR notation/24
Total addresses
256
Usable hosts
254
IP class
C
Reverse DNS zone
1.168.192.in-addr.arpa

Binary view

Dotted decimalBinary
IP address192.168.1.1011000000.10101000.00000001.00001010
Subnet mask255.255.255.011111111.11111111.11111111.00000000
Wildcard0.0.0.25500000000.00000000.00000000.11111111
Network192.168.1.011000000.10101000.00000001.00000000
Broadcast192.168.1.25511000000.10101000.00000001.11111111

The first 24 bits are the network part; the remaining 8 bits number the hosts.

4 subnets of /26

#NetworkUsable rangeBroadcastHosts
1192.168.1.0/26192.168.1.1 – 192.168.1.62192.168.1.6362
2192.168.1.64/26192.168.1.65 – 192.168.1.126192.168.1.12762
3192.168.1.128/26192.168.1.129 – 192.168.1.190192.168.1.19162
4192.168.1.192/26192.168.1.193 – 192.168.1.254192.168.1.25562

Common prefix lengths

CIDRSubnet maskAddressesUsable hosts
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511
</> Embed this calculator on your website – free, no sign-up, no ads inside

Copy this code into any web page, blog post or CMS (WordPress, Wix, Squarespace, Webflow…). It stays up to date automatically, works on mobile and picks your visitor's currency.

Preview

How to use the subnet calculator

Type an IPv4 address and its prefix length (or CIDR notation such as 10.0.0.0/16). Optionally enter how many subnets you need, and the calculator divides the network into equal-sized blocks.

The maths

Network = IP AND mask  ·  Broadcast = network OR wildcard  ·  Wildcard = NOT mask

Addresses = 2^(32 − prefix)  ·  Usable hosts = addresses − 2

Worked example

For 192.168.1.10/24 the mask is 24 one-bits: 255.255.255.0. ANDing gives the network 192.168.1.0; setting the 8 host bits to 1 gives the broadcast 192.168.1.255. Hosts run from 192.168.1.1 to 192.168.1.254 – 254 usable addresses. Split into 4 subnets, it becomes 192.168.1.0/26, .64/26, .128/26 and .192/26, each with 62 hosts.

Subnet cheat sheet

CIDRMaskUsable hosts
/8255.0.0.016,777,214
/16255.255.0.065,534
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522

IPv6 in brief

IPv6 addresses are 128 bits. Home and office LANs almost always use a /64 (2⁶⁴ addresses), ISPs typically delegate a /48 or /56 to each customer, and there is no broadcast address. A /48 contains 65,536 /64 subnets.

Frequently asked questions

How many hosts are in a /24 subnet?

A /24 has 256 addresses. The first is the network address and the last is the broadcast address, leaving 254 usable host addresses.

How do I calculate the number of usable hosts?

Usable hosts = 2^(32 − prefix) − 2. For a /26 that is 2⁶ − 2 = 62. Point-to-point /31 links use both addresses (RFC 3021), and a /32 is a single host.

What is a wildcard mask?

The wildcard mask is the inverse of the subnet mask – 0 bits must match, 1 bits can be anything. It is used in Cisco ACLs and OSPF; for 255.255.255.0 the wildcard is 0.0.0.255.

What are the private IP address ranges?

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks. They are not routed on the public internet and are normally used behind NAT.

How do I split a network into subnets?

Borrow host bits: each extra prefix bit doubles the number of subnets and halves their size. Splitting a /24 into 4 subnets uses 2 bits, giving four /26 networks of 62 usable hosts each.