> Markdown version of https://opspane.dev/kubernetes/eks-max-pods/ for AI agents and readers: the same text, without navigation or the interactive tool.
>
> The tool computes its result with JavaScript in the browser, so this file holds the reference text, worked examples and FAQ. Open the page to run it on your own input.
>
> Link the EKS max pods calculator with an instance type: `type`, e.g. https://opspane.dev/kubernetes/eks-max-pods/?type=m5.large
>
> Answer endpoint for agents: the same URL parameters on https://opspane.dev/kubernetes/eks-max-pods/answer.md return the computed result as Markdown, without JavaScript, e.g. https://opspane.dev/kubernetes/eks-max-pods/answer.md?type=m5.large&mng=1

# EKS Max Pods Calculator

Calculate max pods per node for every EC2 instance type, with prefix delegation and the IP addresses your pod CIDR must hold.

## Quick answer

- Default: `maxPods = ENIs × (IPs per ENI − 1) + 2`. An m5.large has 3 ENIs with 10 addresses each: 3 × (10 − 1) + 2 = **29**.
- A managed node group without a custom AMI caps it at 110 below 30 vCPUs and 250 from 30 vCPUs, over any other setting.
- With prefix delegation each IP slot holds a /28 prefix of 16 addresses: a t3.medium goes from 17 to 242, and the managed node group cap still applies.
- CPU and memory are not in the formula: IP addresses decide the limit.

## How to use

1. Pick your instance type — type two letters to search all 1404 types in AWS's cache, then press Enter.
2. Read the number and the steps behind it: formula, substitution, result, and the cap if one applies.
3. Tick Prefix delegation if the VPC CNI runs with `ENABLE_PREFIX_DELEGATION=true`, and Managed node group if the node group has no custom AMI — the URL updates so you can share the exact configuration.

## Worked examples

| Instance | Calculation | maxPods | Note |
| --- | --- | --- | --- |
| `t3.micro` | `2 × (2 − 1) + 2` | **4** | two ENIs, two addresses each |
| `t3.medium` | `3 × (6 − 1) + 2` | **17** | AWS's own Go test vector |
| `m5.large` | `3 × (10 − 1) + 2` | **29** | the value kubectl reports on a default node |
| `m5.xlarge` | `4 × (15 − 1) + 2` | **58** | four ENIs as the instance grows |
| `m5.24xlarge` | `15 × (50 − 1) + 2` | **737** | capped at 250 by a managed node group |
| `t3.medium, prefix on` | `3 × ((6 − 1) × 16) + 2` | **242** | one /28 prefix per IP slot — capped at 110 by a managed node group |

## How maxPods is decided

AWS documents the order of precedence (highest to lowest); this page applies the same chain:

1. **Managed node group enforcement** — no custom AMI means EKS injects a cap into the user data: 110 below 30 vCPUs, 250 from 30. It takes precedence over any other configuration, including `maxPodsExpression`.
2. **kubelet `maxPods`** — set directly in the kubelet configuration (usually via a launch template with a custom AMI); beats the expression below.
3. **nodeadm `maxPodsExpression`** — a custom CEL expression over `default_enis`, `ips_per_eni`, `max_pods`, `vcpus` and `physical_memory_mib` in a `NodeConfig`.
4. **The ENI formula** — what you get when nothing above is set: `ENIs × (IPs per ENI − 1) + 2`.

A managed node group with several instance types applies the smallest value calculated across all of them to every node in the group.

## Gotchas this tool checks for

### IP addresses, not CPU or memory, decide the cap

Every Pod gets its own IP, so a node can have cores and gigabytes to spare and still refuse new Pods because it ran out of addresses. On an m5.large that budget is 3 ENIs × 10 addresses: one per ENI stays with the node, nine become Pod IPs, and the formula adds two for the node's own networking.

`m5.large` 3 ENIs · 10 IPv4 addresses each

Each ENI keeps one address for the node, the rest become Pod IPs, and the formula adds 2 for the node's own networking: `3 × (10 − 1) + 2 = 29`.

### The managed node group cap silently overrides everything

Without a custom AMI, EKS injects 110 (below 30 vCPUs) or 250 (from 30) into the node's user data — including over a carefully chosen `maxPodsExpression`. A big instance such as m5.24xlarge computes 737 addresses but runs at most 250 Pods in a managed node group; the checkbox here shows the binding cap.

### Prefix delegation needs room in the subnet

Each /28 prefix must be a contiguous free block, so a fragmented subnet makes the CNI fail with `InsufficientCidrBlocks` instead of handing out prefixes. Reserve ranges or use dedicated subnets, keep VPC CNI at 1.9.0 or later, and remember the 110/250 cap applies whether prefix delegation is enabled or not.

### The subnet has to hold every Pod address

With the VPC CNI each Pod takes an address from the node's subnet, so nodes × max Pods per node is the number of addresses the subnets must hold, plus the five AWS reserves in each. Plan the split across Availability Zones before the cluster grows; on clusters that give Pods a separate range (kubeadm, k3s, GKE, AKS overlay) size the cluster CIDR instead.

[Plan VPC subnets for EKS Pods](https://opspane.dev/network/vpc-subnet-planner/) [Pod & Service CIDR planner](https://opspane.dev/kubernetes/pod-cidr/)

## Max Pods by instance family

Every size of the common families with the managed node group cap applied, and the generations of each kind compared side by side. Lime is what a managed node group allows; the hatched top is what its cap cuts off.

- [`t3` Intel Xeon](https://opspane.dev/kubernetes/eks-max-pods/families/#t3): **t3.large**: 35 Pods · 7 sizes up to 58 · No size reaches the managed node group cap.
- [`m5` Intel Xeon Platinum](https://opspane.dev/kubernetes/eks-max-pods/families/#m5): **m5.large**: 29 Pods · 9 sizes up to 737 · 4 of 9 sizes are cut by the managed node group cap.
- [`c5` Intel Xeon Platinum](https://opspane.dev/kubernetes/eks-max-pods/families/#c5): **c5.large**: 29 Pods · 9 sizes up to 737 · 4 of 9 sizes are cut by the managed node group cap.
- [`r5` Intel Xeon Platinum](https://opspane.dev/kubernetes/eks-max-pods/families/#r5): **r5.large**: 29 Pods · 9 sizes up to 737 · 4 of 9 sizes are cut by the managed node group cap.

[All 13 instance families](https://opspane.dev/kubernetes/eks-max-pods/families/)

## Verification

- The formula is AWS's own: `eni_max_pods.go` in the nodeadm package of `awslabs/amazon-eks-ami` (MIT), whose test vectors — 3 ENIs × 6 IPs → 17, 6 × 12 → 68, prefix t3.medium → 242 — are asserted by this project's unit tests.
- Published values match: t3.medium 17, m5.large 29, m5.xlarge 58, m5.24xlarge 737; the 110/250 caps come verbatim from the EKS user guide's “How maxPods is determined”.
- Instance data is a pinned snapshot of `instance-info.jsonl` (commit `8254d71b6b20`, data as of 2026-09-28, 1404 types), validated on every test run with the same invariants AWS checks, and regenerated by `fetch-eks-instance-info.mjs` in `scripts/`.
- The e2e spec proves it stays local: the whole instance list ships inside the page bundle and no request carries your selection.

## FAQ

### How is maxPods calculated on EKS?

The default is ENIs × (IPs per ENI − 1) + 2: every ENI keeps one address for the node, the rest can go to Pods, and the 2 accounts for the Amazon VPC CNI and kube-proxy running on every node, which don't consume a Pod IP address. It's the formula in AWS's own nodeadm source; this page shows it computed step by step for 1404 instance types.

### Why is my node stuck at 110 Pods when it has more IPs?

Managed node groups without a custom AMI inject a cap into the node's user data: 110 below 30 vCPUs, 250 from 30 vCPUs. That cap takes precedence over any other maxPods configuration, including maxPodsExpression. Tick the managed node group checkbox here to see it bind — or give the launch template a custom AMI and set maxPods yourself.

### Does prefix delegation change the calculation?

Yes. With ENABLE_PREFIX_DELEGATION=true each IP slot on an ENI can hold a /28 prefix of 16 addresses, so the formula becomes ENIs × ((IPs − 1) × 16) + 2 — a t3.medium jumps from 17 to 242. It needs Nitro instances, free contiguous /28 blocks in the subnet (otherwise the CNI fails with InsufficientCidrBlocks) and VPC CNI 1.9.0 or later, and the 110/250 cap still applies in a managed node group.

### Does CPU or memory affect the maximum number of Pods?

No. The formula only uses ENI and IP counts; CPU and memory decide whether the node can actually schedule and run what it admits. A node can be CPU-full long before it hits its IP budget — that's what Kubernetes resource requests are for.

### What about EKS Auto Mode?

Auto Mode nodes limit Pods to the lower of a 110 hard cap and ENIs × (IPs per ENI − 1) — note there is no + 2 in that expression. It's a platform-managed rule, not something you configure, so this page treats it as a footnote rather than a mode.

### How do I check what a live node actually uses?

Run kubectl describe node <name> and read the Capacity and Allocations lines: the Pods capacity is kubelet's configured maxPods. If it differs from this page, someone set maxPods explicitly (kubelet config or maxPodsExpression) or the node is in a managed node group with the cap injected.

## Related tools

- [Kubernetes Resource Units Converter](https://opspane.dev/kubernetes/resource-units/): Convert Kubernetes CPU and memory quantities: millicores, Mi vs M, the form kubectl shows, and the mistakes that break a limit.
- [Kubernetes QoS Class & Requests Checker](https://opspane.dev/kubernetes/requests-limits/): Paste a Pod or Deployment: get its QoS class and why, the Pod request with init and sidecar containers, oom_score_adj and how many Pods fit a node.
- [VPC Subnet Planner](https://opspane.dev/network/vpc-subnet-planner/): Split a VPC CIDR into aligned subnets per AZ, sized by prefix or host count (EKS pods), with AWS usable IPs, dual-stack /64s and aws_subnet Terraform.
- [CIDR Overlap Checker](https://opspane.dev/network/cidr-overlap/): Paste labeled IPv4 or IPv6 CIDRs to find every overlap and containment, the merged summary routes, host-bit fixes and private or public ranges.
- [Kubernetes Pod & Service CIDR Planner](https://opspane.dev/kubernetes/pod-cidr/): Max nodes and Pods per node from --node-cidr-mask-size, Service CIDR limits, kube-dns IP and overlaps for IPv4, IPv6 and dual-stack clusters.
- [Kubernetes Secret Decoder](https://opspane.dev/kubernetes/secret-decoder/): Decode every value in a Kubernetes Secret from pasted YAML and encode data back into a manifest. Nothing leaves your browser.
- [Kubernetes HPA Calculator](https://opspane.dev/kubernetes/hpa-calculator/): How many replicas will the HPA ask for, and why? The controller's exact math: tolerance, missing and unready pods, several metrics and behavior.
