# Subnet calculator

URL: https://datacenter.lk/subnet-calculator.php
Last updated: 2026-12-05

Work out the network, broadcast, host range and mask for any IPv4 address and prefix. Free, no sign-up, runs in your browser.

## Questions

**How many hosts does a /24 have?**
256 addresses, 254 usable: the first is the network address and the last is the broadcast address.

**What prefix do I need for 50 devices?**
A /26 gives 62 usable addresses; a /27 gives only 30. Leave room to grow.

**Is this tool free?**
Yes, free with no sign-up, and it runs entirely in your browser.
