J jhooq.com / tools

Kubernetes IP Calculator for EKS, GKE and AKS

Answer five quick questions on the left. The subnet sizes, pods per node and a live picture of where every address goes update on the right as you go. Nothing leaves your browser.

Your cluster needs

Result

/22subnet per zone

How the cluster looks

Where the addresses go

Show the arithmetic

Ranges to create

Checks

Take it with you


    
See result ↓

How the calculator works

EKS ENI, prefix delegation, custom networking, Windows and IPv6 mathsOn-premises: kubeadm, Mirantis MKE, RKE2, OpenShift, Tanzu, Talos with Flannel, Calico, Cilium, OVN, AntreaGKE node Pod rangesAKS Overlay, Pod Subnet, legacy CNI1404 EC2 instance typesOpens in the VPC Subnet PlannerTerraform and CLI snippetsNo upload, no sign-up

Each cloud hands out pod addresses differently, so the same "50 nodes" costs a different amount of address space on each. The calculator applies the published rule for the cloud you pick, shows the arithmetic, and links every rule to the page it came from. The EKS instance table (ENIs and IPv4 addresses per ENI for 1404 instance types) is generated from the file the EKS AMI itself uses, commit 8254d71 of 2026-09-28.

The rules, per cloud

Cloud and modeMax pods per nodeWhat a node takes from your networkSource
EKS, VPC CNI secondary IPsENIs Γ— (IPs per ENI βˆ’ 1) + 2; managed node groups cap at 110 (under 30 vCPU) or 250Every attached ENI has all its addresses allocated. With the default WARM_ENI_TARGET of 1 a node holds one spare ENI, so m5.large (3 Γ— 10) takes up to 30 VPC addresses for 29 pods.EKS instance types, VPC CNI README
EKS, prefix delegationENI slots Γ— 16 + 2, capped at 110 or 250Each ENI slot holds a /28 prefix (16 addresses) instead of one address; the node takes prefixes Γ— 16 plus one primary address per ENI. Prefixes need contiguous, aligned free blocks.EKS prefix mode
EKS, custom networking(ENIs βˆ’ 1) Γ— (IPs per ENI βˆ’ 1) + 2, or Γ— 16 with prefixes; same cap. m5.large: 20One address per node in the node subnet; every Pod ENI and its addresses in a per-zone subnet from a secondary CIDR, 100.64.0.0/10 recommended. One ENIConfig per zone, new nodes only. A VPC holds 5 IPv4 CIDR blocks by default.EKS custom networking, VPC quotas
EKS, Windows nodesIPs per ENI βˆ’ 1 on the single ENI (m5.large: 9), or Γ— 16 with Windows prefix delegation (144); kubelet max-pods defaults to 110One ENI: primary address + one per Pod + warm-ip-target 1 (minimum-ip-target 3), or primary + prefixes Γ— 16.Windows support, prefix mode for Windows
EKS, IPv6 cluster(ENIs Γ— (IPs per ENI βˆ’ 1) Γ— 16) + 2, same cap; prefix delegation is mandatoryOne IPv4 address per node from the dual-stack subnet; Pods and Services are IPv6 only; each node gets a /80 from the subnet's /64; Nitro instances only; no custom networking; set at cluster creation.IPv6 clusters, IPv6 best practices
EKS, cluster subnets-At least 6 free addresses per subnet for the control plane (16 recommended), in at least two Availability Zones. Service CIDR /12 to /24 inside a private range, not overlapping the VPC.EKS network requirements
GKE, VPC-native8 to 256 (default 110; Autopilot 32)Each node gets an alias range of /(31 βˆ’ ⌈logβ‚‚ podsβŒ‰): /24 for 110 pods, /28 for 8. The Pod secondary range must hold one block per node and a node pool range is at least /24. Nodes take one primary address each; the primary range reserves 4.GKE max Pods per node, VPC-native clusters
AKS, Azure CNI Overlaydefault 250, max 250Nodes take one VNet address each (plus surge). Pods come from a private pod CIDR, a /24 per node; the default 10.244.0.0/16 holds 256 nodes.AKS IP planning
AKS, Azure CNI Pod Subnetdefault 110, max 250Nodes in the node subnet, pods in a separate VNet pod subnet. Addresses go to nodes in batches of 16, the next batch when fewer than 8 remain. Pod subnets up to /16.AKS dynamic IP allocation
AKS, Azure CNI node subnet (legacy)default 30, max 250(nodes + surge) + (nodes + surge) Γ— maxPods VNet addresses, assigned up front whether pods run or not. 50 nodes Γ— 30 pods = 1,581 addresses, a /21.AKS IP planning
On-premises, one block per node (Flannel, Cilium, OVN-Kubernetes, Antrea, kubeadm default)kubelet maxPods, default 110, capped by the block: 2^(32 βˆ’ mask) βˆ’ 2 (a /24 holds 254, OpenShift's /23 holds 510)kube-controller-manager (or the CNI) hands every node one block of the pod CIDR, /24 by default, so a /16 pod CIDR holds 256 nodes. Nodes take one VLAN address each; pods take none. The pod CIDR usually cannot change after installation.kube-controller-manager, Cilium cluster-pool, Flannel
On-premises, Calico (Mirantis MKE default)kubelet maxPods; blocks are added on demandCalico IPAM hands out /26 blocks (64 addresses) and gives a node another block when its first is full, then borrows single addresses. At 110 pods per node plan two blocks per node: a /16 pool holds 512 nodes. blockSize is fixed when the pool is created.Calico IPPool, MKE IP considerations
On-premises defaults per distribution110 (OpenShift example 250)kubeadm and Talos: 10.244.0.0/16 pods, 10.96.0.0/12 services; RKE2 and k3s: 10.42.0.0/16 and 10.43.0.0/16; OpenShift: 10.128.0.0/14 with hostPrefix 23 and 172.30.0.0/16; Mirantis MKE: 192.168.0.0/16 and 10.96.0.0/16; Tanzu: 100.96.0.0/11 and 100.64.0.0/13.RKE2, OpenShift, Tanzu, Talos
On-premises node network-Nodes, the control-plane VIP and every LoadBalancer address share the VLAN; MetalLB's IPAddressPool in layer 2 mode must be inside it. The calculator reserves 3 addresses (network, broadcast, gateway), a planning assumption.MetalLB configuration
Reserved addresses-AWS and Azure reserve 5 addresses per subnet, Google Cloud 4. Smallest subnet: /28 on AWS, /29 on Azure and Google Cloud.Usable IPs per subnet

What it does not do

It does not model security groups for pods (branch ENIs), GKE multi-Pod CIDR, or AKS static block allocation. Those change the arithmetic; the per-cloud sources above describe each one. The numbers are planning maximums: real clusters also lose addresses to load balancers, endpoints and node replacements.

Frequently asked questions

These are the short answers. The full FAQ answers the questions engineers actually ask on Stack Overflow, GitHub, Reddit and the cloud forums about pod IP exhaustion, max pods per node, prefix delegation, custom networking and subnet sizing on EKS, GKE and AKS, each with a screenshot of the tool solving it.

How many pods can run on an m5.large in EKS?
29 with the default VPC CNI: 3 ENIs Γ— (10 IPs βˆ’ 1) + 2. With prefix delegation the formula gives 434, and the managed node group cap of 110 applies.

How many pods can an EKS node run with custom networking?
Fewer than without it: the primary ENI no longer serves pods, so max pods is (ENIs βˆ’ 1) Γ— (IPs per ENI βˆ’ 1) + 2. An m5.large drops from 29 to 20 and an m5.2xlarge from 58 to 44; with prefix delegation on top the formula gives 290 for an m5.large and the managed node group cap of 110 applies.

How many pods can a Windows node run on EKS?
Windows nodes keep a single ENI, so the available Pod addresses are IPs per ENI minus one: 9 on an m5.large, 14 on an m5.2xlarge. Windows prefix delegation multiplies that by 16 (144 and 224), and kubelet's default max-pods of 110 then applies.

Does an IPv6 EKS cluster still run out of IP addresses?
Not for Pods. Each node gets a /80 IPv6 prefix, so max pods follows the prefix formula and the managed node group cap, and the real limit is CPU and memory. The IPv4 subnet only has to hold one address per node plus the control plane. The IP family is fixed when the cluster is created.

How many IP addresses does an EKS node consume?
Up to ENIs Γ— IPs per ENI in secondary-IP mode, because the CNI allocates every address of an attached ENI and keeps a spare ENI warm by default. An m5.large can hold 30 VPC addresses; set WARM_IP_TARGET and MINIMUM_IP_TARGET to shrink the warm pool.

Why is my EKS subnet out of IP addresses with only 10 nodes?
Because pods, not nodes, take the addresses. Ten m5.2xlarge nodes at 58 pods each can hold 600 addresses, and a /23 has 507 usable. Use a /19 per zone, or turn on prefix delegation.

How big should the GKE Pod range be?
One block of /(31 βˆ’ ⌈logβ‚‚ pods per nodeβŒ‰) per node: 110 pods per node is a /24 per node, so 900 nodes need a /14 secondary range. Reduce max Pods per node to shrink it.

Which AKS network plugin uses the fewest VNet addresses?
Azure CNI Overlay: one VNet address per node, pods from a private CIDR. Legacy Azure CNI pre-assigns maxPods addresses per node, so 50 nodes at the default 30 pods take 1,581 VNet addresses.

How many nodes does a /16 pod CIDR hold on-premises?
256 with the usual /24 per node (kubeadm, Flannel, Cilium, RKE2, Talos), each node holding 254 pods. With Calico's /26 blocks it depends on pods per node: 1,024 nodes at up to 64 pods, 512 at 110. OpenShift's /14 with hostPrefix 23 holds 512 nodes of 510 pods.

Can I change the pod CIDR after installing the cluster?
Usually not: kubeadm, RKE2, k3s, MKE and Tanzu fix it at install time, Cilium's per-node mask is immutable (you can add a second CIDR to the list), Calico can add a new IPPool, and OpenShift can only widen clusterNetwork. Size it for the cluster you expect in three years.

How big should the node VLAN be for Kubernetes on-premises?
Nodes plus the control-plane VIP plus every LoadBalancer address MetalLB will hand out, plus the network, broadcast and gateway addresses. 20 nodes, one VIP and a 10-address pool need 31 usable addresses, so a /26; a /27 leaves 29 and is too small.

Does the calculator upload anything?
No. The page runs entirely in your browser; the share link stores the inputs in the URL fragment, which browsers do not send to the server.