ToolSphere

CIDR / Subnet Calculator

Computer science

Calculate network address, broadcast address, subnet mask, CIDR prefix, wildcard mask, and usable host count for any IPv4 address and CIDR prefix block.

CIDR / subnet calculator

Compute network range, broadcast address, and host counts from an IPv4 CIDR block.

Network address
192.168.1.0
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Total addresses
256
Usable hosts
254
Address class
C

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

About CIDR / Subnet Calculator

CIDR / Subnet Calculator

Break down any IPv4 CIDR block into its network address, broadcast address, subnet and wildcard masks, usable host range, and total address count — instantly, entirely in your browser. Enter an address with a prefix like 192.168.1.0/24 and the calculator derives every related value using standard bitwise subnet math.

Useful for planning VLANs, firewall rules, and cloud VPC subnets without reaching for a spreadsheet or an external calculator that logs your queries. Network engineers and students both use CIDR notation daily, but manually converting between prefix length, subnet mask, and host counts is error-prone — this tool removes that arithmetic entirely.

Typical use cases: sizing a subnet for a new office VLAN, verifying a cloud provider's VPC CIDR range before deployment, or checking whether two subnets overlap.

Results update live as you type, so you can experiment with different prefix lengths and immediately see the trade-off between network size and host capacity.

Guides and tutorials

Frequently asked questions

What does the /24 prefix mean?

The prefix is the number of leading bits in the subnet mask that are fixed as network bits. /24 means 24 network bits and 8 host bits, giving 256 total addresses.

Why are usable hosts two less than total addresses?

The first address in a subnet is reserved as the network address and the last is the broadcast address, so they aren't assignable to hosts (except in /31 and /32 point-to-point subnets).

Can I use this for IPv6 subnets?

No, this calculator is IPv4-only. IPv6 subnetting uses a different addressing scheme and much larger host ranges, which would need a dedicated tool.

Have a suggestion for CIDR / Subnet Calculator?Share your feedback ↗