SubnetPad

Subnet Calculator

Results update as you type

Enter any IPv4 IP address or CIDR block to calculate network address, broadcast, subnet mask, and host range instantly in your browser.

/1
/32

/24 = mask 255.255.255.0254 usable addresses

Results for 192.168.1.0/24

Private (RFC 1918)Class C
Network addressThe first address — identifies the subnet itself
Broadcast addressThe last address — used to reach every device at once
Subnet maskSame as /24 in CIDR notation
First usable hostThe first IP you can assign to a device
Last usable hostThe last IP you can assign to a device
Usable hosts256 total addresses in this subnet
More detailsNeighboring subnets, wildcard mask, hex, reverse DNS, and binary breakdown

Neighboring /24 subnets

Wildcard mask
Used in Cisco ACLs and OSPF
CIDR notation
IP in hexadecimal
IP as 32-bit integer
Reverse DNS (PTR)
Host bits / subnet bits

Binary breakdown

IP address11000000.10101000.00000001.00001010
Subnet mask11111111.11111111.11111111.00000000
Network11000000.10101000.00000001.00000000
Broadcast11000000.10101000.00000001.11111111

Quick facts

Type any address above — results update instantly as you type.

Subnetting guide, reference & FAQExplanations, cheat sheet, how-to steps, and common questions
Common subnet calculators
Dedicated pages for the most searched CIDR sizes — each with a live calculator, reference tables, and FAQs.
What is a subnet calculator?

A subnet calculator takes an IP address and a subnet mask (or CIDR prefix) and instantly works out everything you need to know about that network: the network address, broadcast address, the range of usable host IPs, and how many devices can fit in the subnet. Instead of converting binary by hand, you type an address like 192.168.1.10/24 and read the results.

Subnetting splits one large network into smaller, isolated networks. It keeps broadcast traffic contained, makes IP space easier to manage, and is a foundational skill for network certifications like CCNA, Network+, and cloud networking on AWS, Azure, and Google Cloud.

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation is the modern, compact way to write a network. The number after the slash — like the /24 in 10.0.0.0/24 — tells you how many of the 32 bits in an IPv4 address belong to the network. The remaining bits identify hosts. A larger prefix means a smaller network: a /24 holds 254 usable hosts, while a /16 holds 65,534.

This CIDR calculator converts between CIDR prefixes, dotted-decimal subnet masks (like 255.255.255.0), and wildcard masks automatically — so you never have to memorize the conversion table (though we include one below for quick reference).

CIDR to subnet mask cheat sheet
The most common subnet sizes at a glance. For any other size, use the calculator above.
/302 hosts

Mask: 255.255.255.252

Wildcard: 0.0.0.3

/296 hosts

Mask: 255.255.255.248

Wildcard: 0.0.0.7

/2814 hosts

Mask: 255.255.255.240

Wildcard: 0.0.0.15

/2730 hosts

Mask: 255.255.255.224

Wildcard: 0.0.0.31

/2662 hosts

Mask: 255.255.255.192

Wildcard: 0.0.0.63

/25126 hosts

Mask: 255.255.255.128

Wildcard: 0.0.0.127

/24254 hosts

Mask: 255.255.255.0

Wildcard: 0.0.0.255

/23510 hosts

Mask: 255.255.254.0

Wildcard: 0.0.1.255

/221,022 hosts

Mask: 255.255.252.0

Wildcard: 0.0.3.255

/212,046 hosts

Mask: 255.255.248.0

Wildcard: 0.0.7.255

/204,094 hosts

Mask: 255.255.240.0

Wildcard: 0.0.15.255

/1665,534 hosts

Mask: 255.255.0.0

Wildcard: 0.0.255.255

/816,777,214 hosts

Mask: 255.0.0.0

Wildcard: 0.255.255.255

How to use this subnet calculator
Four steps — everything updates live as you type.
  1. Enter an IP address

    Type any IPv4 address, or paste full CIDR notation like 172.16.0.0/20 and the prefix is detected automatically.

  2. Pick a network size

    Drag the slider or choose a subnet mask from the dropdown. Each option shows how many hosts it supports in plain language.

  3. Read the results

    Network address, broadcast address, and the usable host range update live as you type. Click any value to copy it.

  4. Go deeper if you need to

    Expand More details for the wildcard mask, hex, reverse DNS, binary breakdown, or neighboring subnets.

Frequently asked questions

Common questions about subnetting, CIDR notation, and how this tool works.