IPv4 Subnet Calculator
Enter an IP address with CIDR notation (e.g., 192.168.1.0/24) to calculate the network address, subnet mask, broadcast address, host range, and total usable hosts. Binary representation included.
Frequently Asked Questions
What is CIDR notation?▼
CIDR (Classless Inter-Domain Routing) notation combines an IP address with a prefix length to define a network range. For example, 192.168.1.0/24 means a network with a 24-bit subnet mask (255.255.255.0), giving 254 usable host addresses.
How many hosts does a /24 subnet have?▼
A /24 subnet has 256 total addresses (2^8 = 256), minus 2 for the network address and broadcast address, leaving 254 usable host addresses.
What is the difference between network address and broadcast address?▼
The network address (first address) identifies the subnet itself and cannot be assigned to a host. The broadcast address (last address) is used to send packets to all hosts on the subnet and also cannot be assigned.
What is a subnet mask?▼
A subnet mask is a 32-bit number that divides an IP address into network and host portions. /24 corresponds to 255.255.255.0, /16 to 255.255.0.0, and /8 to 255.0.0.0.
Looking for more free developer tools?
Browse All Free Tools →Related Products
on GumroadGitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
Production-ready prompt templates, chain-of-thought workflows, and API integration code for GPT-4, Claude, Gemini, and any instruction-following LLM.
Buy on Gumroad →More Free Tools
Related Articles
Cron Expression Generator: Build and Understand Cron Schedules
Learn cron expression syntax, build schedules visually, and avoid common mistakes. Includes a cron expression generator tool and reference for every cron format.
Docker vs Kubernetes: When to Use What (Decision Framework)
Docker or Kubernetes? This decision framework helps you choose the right container technology based on team size, scale, and complexity. Includes migration paths and real-world examples.
Best Hosting Platforms for Developers in 2026: Cloudflare vs Vercel vs DigitalOcean
An honest comparison of the top developer hosting platforms in 2026. Cloudflare Pages, Vercel, DigitalOcean App Platform, Railway, and Render — pricing, performance, and when to use each.
Get weekly developer tips
Tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →