Subnet Calculator

Use this free subnet calculator to convert an IPv4 address and CIDR prefix into subnet mask, wildcard mask, network, broadcast, and usable addresses.

All tools
Research-backed assumptions Formula steps Examples included Private in-browser use
IPv4 subnet192.168.1.0/24

192.168.1.10/24

Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Broadcast
192.168.1.255
Usable range
192.168.1.1 - 192.168.1.254
Usable addresses
254

Formula steps

  1. Convert the IPv4 address and CIDR prefix into 32-bit values.
  2. Build the subnet mask from the prefix length.
  3. Use bitwise network and wildcard math to find network, broadcast, and usable range.

How to use the subnet calculator

  1. Enter the requested dates, times, grades, dimensions, network values, password options, or units.
  2. Check the assumptions shown on the page, especially school scales, payroll rules, concrete waste, subnet type, or security handling.
  3. Press the calculate button to see the answer, supporting metrics, and formula steps.
  4. Use examples, recent answers, or copy the result while keeping the estimate limits in mind.

Common uses

Find the network and broadcast address for an IPv4 CIDR block.

Convert a prefix length such as /24 into a dotted decimal subnet mask.

Check usable host range and address count.

Practice subnetting for networking, security, or developer work.

Examples

Home LAN 192.168.1.10/24

Network 192.168.1.0, usable 192.168.1.1-192.168.1.254

Small subnet 10.0.5.17/28

16 total addresses

Point-to-point 172.16.0.8/31

2 usable /31 addresses

Frequently asked questions

Quick answers about formulas, inputs, assumptions, examples, copying, and private in-browser use.

What can I use the Subnet Calculator for?

Use it for quick everyday planning, school work, technical checks, or comparison tasks when the inputs match the tool page.

How does the Subnet Calculator calculate the result?

The calculator converts IPv4 octets to a 32-bit number, builds the CIDR subnet mask, then uses bitwise network and wildcard math.

What should I double-check before using the answer?

This tool covers IPv4 CIDR math. It does not configure routers, validate a live network, or handle IPv6 subnets.

Are my inputs private?

Yes. The calculator runs in your browser tab. Recent answers stay only on the page while you use it and are not sent to a server.

Related tools