DHCP Lease Calculator

Calculate your DHCP address pool size, maximum concurrent clients, and lease renewal timing. Enter your subnet, reserved addresses, and lease duration to optimize your DHCP configuration and avoid address exhaustion.

DHCP Lease Calculator
Figure 1 — DHCP Lease Calculator

What Is DHCP?

Dynamic Host Configuration Protocol (DHCP) automatically assigns IP addresses, subnet masks, gateways, and DNS servers to devices on your network. Without DHCP, you'd need to manually configure every device — impractical for networks with more than a handful of clients.

For a complete explanation of DHCP, read our What Is DHCP? guide. Your router at 192.168.1.1 is typically the DHCP server for your home network. Use our Subnet Calculator to plan your address space.

DHCP Lease Lifecycle

Understanding the DHCP lease process helps you choose the right lease time and troubleshoot address issues:

PhaseTimeActionPackets
Discovery0%Client broadcasts request for IPDHCPDISCOVER
Offer0%Server offers available IPDHCPOFFER
Request0%Client accepts the offered IPDHCPREQUEST
Acknowledge0%Server confirms the leaseDHCPACK
T1 Renewal50%Client requests lease extension (unicast)DHCPREQUEST
T2 Rebinding87.5%Client broadcasts renewal (any server)DHCPREQUEST
Expiry100%Lease expires, IP released

Recommended Lease Times by Environment

EnvironmentLease TimeRationale
Public WiFi (café/airport)30 min – 1 hourHigh device turnover, reclaim IPs quickly
Hotel/Conference1 – 4 hoursGuests leave frequently
Office (business hours)8 – 12 hoursDevices present during work hours only
Home Network24 hoursDevices mostly permanent, moderate turnover
Server/Infrastructure7 – 30 daysStatic devices, use DHCP reservations instead
IoT Devices12 – 24 hoursAlways-on but may need readdressing

Pro Tip: For devices that need consistent IPs (servers, printers, NAS, gaming consoles), use DHCP reservations instead of static IPs. Reservations assign the same IP via DHCP based on MAC address, keeping central management while ensuring consistency. This is especially important for port forwarding rules that depend on a fixed internal IP. Configure reservations at 192.168.1.1.

Note: DHCP pool exhaustion is the most common cause of "connected but no internet" issues. When no IPs are available, new devices get an APIPA address (169.254.x.x) and can't reach the gateway. If you're running out of addresses, either reduce lease time, expand your pool, or move to a larger subnet. Use our Subnet Calculator to find the right subnet size.

DHCP Pool Planning Best Practices

  1. Reserve the first 10-20% of addresses for static devices (routers, switches, access points, servers, printers).
  2. Leave 20-30% headroom in your pool for growth and guest devices.
  3. Use DHCP reservations for any device that needs a consistent IP, like targets for port forwarding.
  4. Match lease time to environment — short for transient, long for stable networks.
  5. Configure DNS servers in DHCP options. Fast DNS improves browsing — test with our DNS Lookup or change DNS on your router.
  6. Set the gateway to your router's LAN IP. Learn about gateways if you're not sure.
  7. Monitor pool utilization — Check your router's DHCP client list at 192.168.1.1 regularly.

DHCP Configuration Commands

# Linux (dhcpd.conf)
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.100 192.168.1.250;
  option routers 192.168.1.1;
  option domain-name-servers 1.1.1.1, 8.8.8.8;
  default-lease-time 86400;
  max-lease-time 172800;
}

# Cisco IOS
ip dhcp pool LAN
 network 192.168.1.0 255.255.255.0
 default-router 192.168.1.1
 dns-server 1.1.1.1 8.8.8.8
 lease 1

# Windows DHCP Server (PowerShell)
Add-DhcpServerV4Scope -Name "LAN" -StartRange 192.168.1.100 `
  -EndRange 192.168.1.250 -SubnetMask 255.255.255.0
Set-DhcpServerV4OptionValue -Router 192.168.1.1 `
  -DnsServer 1.1.1.1,8.8.8.8

Troubleshooting DHCP Issues

SymptomLikely CauseSolution
169.254.x.x addressDHCP server unreachable or pool exhaustedCheck server, expand pool
Duplicate IP conflictsStatic IP overlaps DHCP poolExclude static IPs from pool
Slow initial connectionDHCP server responding slowlyCheck server load, reduce scope
Frequent disconnectsLease time too shortIncrease lease duration
Wrong DNS/gatewayRogue DHCP server on networkEnable DHCP snooping on switch

If devices keep losing connectivity, check if your internet is slow or run a Speed Test to verify the connection itself is working.

Key Takeaways
  • Keep DHCP pool utilization below 80% to prevent address exhaustion.
  • Match lease time to your environment: 30 min for public WiFi, 24 hours for home, 7+ days for static networks.
  • Use DHCP reservations for devices needing consistent IPs (servers, printers, port forwarding targets).
  • Reserve the first block of your subnet for static infrastructure addresses.
  • 169.254.x.x (APIPA) addresses indicate DHCP failure — check server and pool size.
  • Use our Subnet Calculator to plan subnets that match your DHCP needs.

Video: DHCP Explained

Related Tools & Guides

Frequently Asked Questions

What happens when the DHCP pool runs out of addresses?

New devices receive an APIPA address (169.254.x.x) and cannot access the network or internet. Existing devices keep their leases until expiry. To fix, expand your pool range, reduce lease time, or upgrade to a larger subnet like /23 (510 hosts).

What is a good DHCP lease time for home networks?

24 hours is the standard for home networks. It balances address retention (your devices keep the same IP day-to-day) with reasonable reclamation of unused addresses. For guest networks, use 1-4 hours.

What is a DHCP reservation?

A DHCP reservation maps a device's MAC address to a specific IP. The device still uses DHCP to get its address, but always receives the same one. This is preferred over static IP configuration because it's managed centrally on the router.

Should I use a /24 or /23 subnet?

A /24 subnet provides 254 usable addresses — sufficient for most home and small office networks. If you have more than 200 devices or need room for growth, a /23 provides 510 addresses. Use our Subnet Calculator to determine the right size.

Can I run two DHCP servers on the same network?

Generally no — two DHCP servers on the same subnet will conflict, causing unpredictable address assignment. The exception is DHCP failover configurations where servers coordinate. Rogue DHCP servers are a common network problem — enable DHCP snooping on managed switches to prevent this.

How do I find all devices with DHCP leases?

Log in to your router at 192.168.1.1 and check the DHCP client list (usually under LAN or Network settings). On Linux DHCP servers, check /var/lib/dhcp/dhcpd.leases. Use What Is My IP to check your own device's address.

About Tommy N.

Tommy is the founder of RouterHax and a network engineer with 10+ years of experience in home and enterprise networking. He specializes in router configuration, WiFi optimization, and network security. When not writing guides, he's testing the latest mesh WiFi systems and helping readers troubleshoot their home networks.

Promotion for FREE Gifts. Moreover, Free Items here. Disable Ad Blocker to get them all.

Once done, hit any button as below