Subnet Calculator

Calculate IPv4 subnet details from an IP address and CIDR prefix. Get network/broadcast addresses, host range, wildcard mask, binary breakdown, and split subnets visually.

Subnet Calculator

Calculate network details from an IP address and subnet mask or CIDR notation.

IP Address
192.168.1.0
11000000.10101000.00000001.00000000
Subnet Mask
255.255.255.0
11111111.11111111.11111111.00000000
CIDR Notation
/24
Wildcard Mask
0.0.0.255
00000000.00000000.00000000.11111111
Network Address
192.168.1.0
11000000.10101000.00000001.00000000
Broadcast Address
192.168.1.255
11000000.10101000.00000001.11111111
First Usable Host
192.168.1.1
Last Usable Host
192.168.1.254
Total Addresses
256
Usable Hosts
254
IP Class
Class C
IP Type
Private (RFC 1918)
IPv4-mapped IPv6
::ffff:c0a8:100
Hex Notation
c0.a8.01.00
FieldOctet 1Octet 2Octet 3Octet 4Decimal
IP Address11000000101010000000000100000000192.168.1.0
Subnet Mask11111111111111111111111100000000255.255.255.0
Network11000000101010000000000100000000192.168.1.0
Broadcast11000000101010000000000111111111192.168.1.255
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
Network bits (24)Host bits (8)
Subnet Splitter

Split 192.168.1.0/24 into smaller subnets:

#NetworkRangeBroadcastHosts
1192.168.1.0/25192.168.1.1 - 192.168.1.126192.168.1.127126
2192.168.1.128/25192.168.1.129 - 192.168.1.254192.168.1.255126
Common Private Ranges
All calculations run locally in your browser. No data is sent anywhere. Supports IPv4 only.

What is a Subnet Calculator?

A subnet calculator takes an IPv4 address and a subnet mask (or CIDR prefix length) and computes the full network details: network address, broadcast address, usable host range, wildcard mask, and more. It is essential for network engineers, sysadmins, and anyone studying for Cisco CCNA, CompTIA Network+, or similar certifications.

Key Features

  • Full Subnet Details: Network address, broadcast, first/last host, total addresses, usable hosts, IP class, and type (private/public/loopback).
  • Binary Breakdown: See every address in binary, octet by octet, with a visual mask showing network vs host bits.
  • Subnet Splitter: Divide a network into smaller subnets by choosing a longer prefix. See all resulting subnets with their ranges.
  • CIDR Support: Enter addresses in CIDR notation (e.g. 192.168.1.0/24) or select the prefix from a dropdown.
  • Common Presets: One-click presets for RFC 1918 private ranges, loopback, and link-local networks.
  • IPv6 Mapped: Shows the IPv4-mapped IPv6 address and hex notation.

How to use the Subnet Calculator

  1. Enter an IPv4 address (e.g. 192.168.1.0) or paste a CIDR block (e.g. 10.0.0.0/16).
  2. Select the subnet prefix length from the dropdown or quick-select buttons.
  3. Click Calculate to see all network details, binary breakdown, and mask visualization.
  4. Use the Subnet Splitter to divide the network into smaller subnets.

Understanding CIDR Notation

CIDR (Classless Inter-Domain Routing) notation appends a prefix length to an IP address, like 192.168.1.0/24. The prefix length indicates how many leading bits of the address identify the network. A /24 means 24 network bits and 8 host bits, giving 256 total addresses (254 usable hosts).

Subnet Mask Cheat Sheet (/8 to /32)

The table every network engineer keeps taped to a monitor. Usable hosts is total addresses minus the network and broadcast address.

CIDRSubnet maskUsable hostsTypical use
/8255.0.0.016,777,214Class A, 10.0.0.0/8 private range
/16255.255.0.065,534Class B, 172.16.0.0/16, large sites
/22255.255.252.01,022Campus or large office network
/23255.255.254.0510Two merged /24 networks
/24255.255.255.0254The standard LAN, 192.168.1.0/24
/25255.255.255.128126Half a /24
/26255.255.255.19262Quarter of a /24, small VLANs
/27255.255.255.22430Small office or device VLAN
/28255.255.255.24014Small cloud subnets, DMZ segments
/29255.255.255.2486ISP customer block, firewall segment
/30255.255.255.2522Router-to-router links
/31255.255.255.2542Point-to-point links (RFC 3021, no broadcast)
/32255.255.255.2551Single host route, loopbacks

An online alternative to ipcalc

If you use ipcalc on Linux, this calculator covers the same job in the browser: the binary breakdown with network and host bits highlighted, wildcard masks for Cisco ACLs, and the subnet splitter for dividing a block into smaller networks. Everything runs client-side, so no addresses ever leave your machine, which matters when you are working with internal network plans.

Frequently Asked Questions

What is a subnet mask?

A subnet mask is a 32-bit number that splits an IP address into a network part and a host part. Bits set to 1 mark the network portion, bits set to 0 mark the host portion. For example, 255.255.255.0 (a /24) means the first 24 bits identify the network and the remaining 8 bits identify hosts, allowing 254 usable host addresses.

What does /24 mean in an IP address?

The /24 is a CIDR prefix length: the first 24 bits of the address are the network part. A /24 network like 192.168.1.0/24 has a subnet mask of 255.255.255.0, contains 256 total addresses, and offers 254 usable hosts (the first address is the network, the last is the broadcast). It is the most common size for home and office LANs.

How many hosts are in a /29 subnet?

A /29 subnet (mask 255.255.255.248) contains 8 total addresses, of which 6 are usable hosts, since one address is the network and one is the broadcast. ISPs commonly assign /29 blocks to business customers who need a handful of public IPs.

What is the difference between CIDR notation and a subnet mask?

They express the same information in two formats. CIDR notation is the compact form (/26), while the subnet mask is the dotted-decimal form (255.255.255.192). The CIDR number simply counts the 1-bits in the mask. This calculator converts between the two automatically.

Is this subnet calculator private? My network plans are sensitive.

Yes. All calculations run entirely in your browser with client-side JavaScript. No IP addresses, ranges or network plans are sent to any server, stored or logged, which makes it safe to use with internal addressing schemes.

Free forever, no ads, no tracking. Support the project