Kubernetes Node Allocatable CPU/RAM & Pod Bin-Packing Density Calculator

Determine how many application pods pack onto a worker node (CPU vs. RAM bound).

Max Schedulable Application Pods / Node 29 pods/node
CPU-Limited Pod Capacity 29 pods
Memory-Limited Pod Capacity 38 pods
Node Allocatable Memory 57.5 GiB
Inputs
Try:
vCPU
Worker node total vCPU cores.
GiB
Worker node total memory in GiB.
GiB
Combined Kubelet/OS reservation + DaemonSet memory per node (GiB).
vCPU/pod
Application pod CPU request in vCPU cores.
GiB/pod
Application pod memory request in GiB.
Results & Graph
Max Schedulable Application Pods / Node
29 pods/node
CPU-Limited Pod Capacity
29 pods
Memory-Limited Pod Capacity
38 pods
Node Allocatable Memory
57.5 GiB

Max Schedulable Application Pods / Node

Graph 1 • How the inputs feed K8s Node Bin-Packing
Kubernetes Node Allocatable CPU/RAM & Pod Bin-Packing Density Calculator • Custom Domain Schematic (Cloud SRE & Distributed Systems) nodeRawVnodeRawROut Node Raw Vcpu: 16 vCPU • Node Raw Ram Gib: 64 GiB MAX SCHEDULABLE APPLICATIO 29 pods/node • CPU-Limited Pod Capaci: 29 pods • Memory-Limited Pod Cap: 38 pods Eq: UsableNode = RawNode − SystemRes
Graph 2 • Max Schedulable Application Pods / Node as Node Raw Vcpu changes (40% to 160% of current)
0 pods/n 20.90 pods/n 41.80 pods/n 11 6.40vCPU 17 9.60vCPU 23 12.80vCPU 29 16vCPU 35 19.20vCPU 38 22.40vCPU 38 25.60vCPU
Graph 3 • Node Raw Vcpu and Node Raw Ram Gib together Compares Max Schedulable Application Pods / Node when Node Raw Ram Gib is shifted +25% (solid) vs. −25% (dashed).
0 pods/n 20.90 pods/n 41.80 pods/n --- Node Raw Ram Gib @ 75% 20 -30% 25 -15% 29 +0% 33 +15% 38 +30%
Summary: After system and DaemonSet reservations (14.7 vCPU and 57.5 GiB allocatable), each node fits 29 pods (CPU-bound).
Summary: After system and DaemonSet reservations (14.7 vCPU and 57.5 GiB allocatable), each node fits 29 pods (CPU-bound).
Interactive chart & math engine powered by CalculatorGraph

Formula: K8s Node Bin-Packing Systems Engineering Formula

UsableNode = RawNode − SystemReserved − DaemonSets
PodsPerNode = min(floor(UsableCPU/PodCPU), floor(UsableRAM/PodRAM))
UsableNode = RawNode − SystemReserved − DaemonSets; PodsPerNode = min(floor(UsableCPU/PodCPU), floor(UsableRAM/PodRAM))
  • nodeRawVcpu: Node Raw Vcpu (vCPU)
  • nodeRawRamGib: Node Raw Ram (GiB)
  • systemAndDaemonsetRamGib: System And Daemonset Ram (GiB)
  • podRequestVcpu: Pod Request Vcpu (vCPU/pod)
  • podRequestRamGib: Pod Request Ram Gib (GiB/pod)

Frequently Asked Questions

Why does the calculator round pods down instead of to the nearest whole number?

A pod is only scheduled if its full request fits. With 29.4 pods' worth of CPU, the thirtieth pod would need 0.5 vCPU but only about 0.2 is left, so it cannot be placed. Rounding to the nearest number would sometimes promise a pod that stays Pending. Rounding down matches what the scheduler actually does.

Do CPU limits affect how many pods fit?

No. Scheduling uses requests only. Limits decide how much a running pod may use, not where it can be placed. A node full of pods with high limits can still be scheduled to capacity by requests, which is why overcommitted limits can lead to CPU throttling or memory evictions under load even though the scheduler saw room.

Should init containers be included in the pod request?

For scheduling, a pod's effective request is the larger of its biggest init container request and the sum of its regular containers. Init containers usually ask for less than the main containers, so in most cases you can ignore them. If an init container needs a lot of memory for a migration or download, use its request when it is the larger figure.

How should I handle several deployments with different pod sizes?

The per-node answer only applies to one pod shape. For a mix, add up the CPU requests and the memory requests of every replica across all deployments, then divide each total by one node's allocatable CPU and memory. Take the larger of the two node counts, round up, and add your spare. Mixed shapes often pack better than one shape alone.

Is it better to run many small nodes or a few big ones?

Big nodes lose a smaller share to system overhead and fit more pods per node, but each failure takes out more capacity, so the N+1 spare is more expensive. Small nodes make a lost node less painful and spread pods across more failure points. Try both on the page with your pod shape and compare the total node cost after adding the spare.

Why do my pods stay Pending when the calculator says there is room?

Usually the real allocatable figure is lower than the page assumes, often because DaemonSet CPU requests were not counted. Other common causes are node selectors, taints, affinity rules or topology spread constraints that rule out some nodes, and per-node pod limits based on network addresses. Describing the pending pod shows the scheduler's reason, which is quicker than guessing.

Does the node's GPU or ephemeral storage affect the result?

Not on this page. It only checks CPU and memory. If your pods request GPUs, ephemeral storage or other extended resources, each of those is another limit, and the node holds the smallest of all of them. Work out the extra limit by hand: divide the node's allocatable amount of that resource by the per-pod request and round down.

How does N+1 change when I use a cluster autoscaler?

The autoscaler adds nodes when pods cannot be scheduled, but a new node takes time to start, and pods evicted during a failure wait meanwhile. A spare node absorbs that gap. Some teams run low priority placeholder pods that hold space and are evicted the moment real pods need it, which keeps the spare warm without wasting it.

What should I do with the stranded memory on a CPU-bound node?

On the default node about 13 GiB stays unrequested. You can run memory-heavy workloads alongside so they fill that space, pick a node type with less memory per vCPU, or revisit pod requests if they are higher than real usage. Leaving some free memory also gives the node a buffer against pods that use more than they request.

Does a 24 vCPU node always beat a 16 vCPU node for this pod?

Only up to the memory limit. With 64 GiB on both, the 24 vCPU node holds 38 pods against 29, but six pods' worth of CPU is idle because memory runs out first. Whether that is worth paying for depends on the price difference. A 24 vCPU node with more memory would let CPU and memory fill together.

How a 16 vCPU, 64 GiB node ends up holding 29 pods

The default describes a worker node with 16 vCPU and 64 GiB of memory, of which 6.5 GiB is set aside for the operating system, the kubelet and your DaemonSets. Each application pod requests 0.5 vCPU and 1.5 GiB. The answer is 29 pods per node.

Two separate limits produce that number. On memory, 64 minus 6.5 leaves 57.5 GiB allocatable, and 57.5 divided by 1.5 is 38.3, which rounds down to 38 pods. On CPU, the calculator keeps 92% of the raw cores, which is 14.72 vCPU (shown as 14.7 in the result text). Divided by 0.5 that is 29.4, rounded down to 29 pods.

The scheduler can only place a pod where both its CPU and memory requests fit, so the smaller of the two numbers wins. Here CPU runs out first, which is why the result line says CPU-bound. Nine pods' worth of memory, a little over 13 GiB, sits unclaimed on every node.

Rounding down matters. You cannot schedule four tenths of a pod, so the fractional leftover on each axis is capacity you pay for and cannot use with this pod shape.

The fixed 8% CPU reservation

Memory overhead is an input you control, but CPU overhead is not. The calculator always removes 8% of raw vCPU for system use, whatever node size you enter. That is why 16 vCPU becomes 14.7, 9.6 becomes 8.8, and 24 becomes 22.1 in the three scenarios.

That fixed share is a simplification. Real clusters reserve CPU through kube-reserved and system-reserved settings, and many managed services use a sliding scale where the reserved share falls as the node gets bigger. On top of that, every DaemonSet pod, such as a log shipper, a metrics agent or a CNI plugin, carries its own CPU request that comes out of the same allocatable pool.

If your DaemonSets request significant CPU, the default reservation will be too small and the page will overstate how many pods fit. The most reliable fix is to read the node's real allocatable CPU from the cluster, subtract the CPU requests of the DaemonSet pods already running on it, and divide what remains by your pod request. Use the calculator's memory figures as they are, since you set that overhead yourself.

One quick check: if you know the true allocatable CPU, enter a raw vCPU value equal to it divided by 0.92, and the page will reproduce your real figure.

When memory becomes the limit instead

Change the node and the binding constraint can flip. The Higher scenario raises CPU to 24 vCPU while leaving memory at 64 GiB. CPU capacity climbs to 44 pods, but memory still caps at 38, so the answer becomes 38 pods per node and the result now reads Memory-bound. Six pods' worth of CPU is stranded on each node.

The same thing happens when the pod shape changes. Raise the memory request from 1.5 GiB to 2 GiB on the default node and memory allows only 28 pods, just under the CPU limit of 29. Halve the CPU request to 0.25 vCPU instead and CPU allows 58 pods, leaving memory at 38 as the limit.

The useful number here is the ratio of memory to CPU. The default node offers 4 GiB per vCPU of raw capacity, while the default pod asks for 3 GiB per vCPU. Because the pod is lighter on memory than the node, CPU fills first. A pod asking for more memory per vCPU than the node provides will be memory-bound instead.

When the two limits are far apart, consider a node family whose ratio matches your workload. Paying for idle memory or idle cores on every node adds up across a cluster.

Going from pods per node to a node count with N+1

The page answers a per-node question, but most sizing work starts from the whole workload. Working it out by hand takes three steps.

First, total the requests. Suppose you need 60 replicas of the default pod. That is 60 times 0.5, or 30 vCPU, and 60 times 1.5, or 90 GiB.

Second, divide each total by one node's allocatable figure and round up. CPU needs 30 divided by 14.72, which is 2.04, so three nodes. Memory needs 90 divided by 57.5, which is 1.57, so two nodes. Take the larger, three. Dividing 60 replicas by 29 pods per node gives the same answer, 2.07, rounded up to three. If you run several different deployments, add their requests together and use the two totals rather than a pod count.

Third, add a spare node. With N+1 you size so that the workload still fits when one node is drained for an upgrade or lost to a failure. Three nodes become four. On four nodes the 30 vCPU of requests fill about 51% of allocatable CPU. Drop to three during a drain and the same pods fill about 68%, which still fits.

For workloads spread across zones, apply the spare per zone if you need to survive a zone outage, not just one node.

Headroom the per-node count does not show

A node can be full by requests long before it is busy. The scheduler counts what pods ask for, not what they use. If pods request 0.5 vCPU but typically use 0.2, the node will show 29 pods and plenty of idle CPU. That gap is a reason to revisit requests, not a reason to squeeze in more pods than the scheduler will accept.

The reverse case is riskier. Pods can use more than they request when limits are higher or unset. Many pods bursting at once can starve the node, and memory pressure leads to evictions. The calculator assumes requests are an honest picture of steady usage.

Leave room for rolling updates as well. A deployment with a surge setting creates new pods before old ones are removed, so during a rollout the cluster briefly needs more capacity than the steady replica count suggests. Horizontal autoscaling adds a similar need at peak traffic.

Finally, there is a cap on pods per node regardless of resources. The calculator applies the common default kubelet maximum, so very small pods stop at that ceiling even when CPU and memory would allow several hundred. Some managed services set a lower ceiling based on the number of network addresses a node can hold.

What to count as system and DaemonSet memory

The 6.5 GiB default is a single bucket for everything that is not your application. It should cover the memory reserved for the operating system and kubelet, the eviction threshold kept free so the node can react to pressure, and the memory requests of every DaemonSet pod on the node.

Underestimating this field is the most common mistake. Leaving out the eviction threshold or a heavy agent makes the page promise pods that will sit Pending. If you have access to the cluster, the simplest source is the node's reported allocatable memory: subtract that from raw memory, add the DaemonSet requests, and enter the total here.

Raw memory also needs care. Instance types are often sold in gigabytes while Kubernetes reports gibibytes, and the operating system takes a slice before the kubelet sees anything. Using the figure the node itself reports avoids both traps.

Smaller nodes lose a larger share to overhead. Try 8 vCPU and 32 GiB with 4 GiB reserved: memory allows 18 pods, CPU allows 14, and the node holds 14 pods, fewer than half the default node for exactly half the hardware.

The 9.6 vCPU scenario and fractional nodes

The Lower scenario uses a node with 9.6 vCPU. Few providers sell a node of exactly that size, so read it as a demonstration of the formula rather than a shopping option. It gives 8.8 vCPU after the reservation, enough for 17 pods, with memory still allowing 38.

That case is a good illustration of how badly a mismatched node can strand memory. Seventeen pods use 25.5 GiB of the 57.5 GiB available, leaving more than half the memory idle. If you were choosing hardware for this pod shape, you would either add CPU or buy less memory.

Fractional CPU values are still useful when you model a node that is partly taken by something else, such as a large system pod or a reserved share for a co-located service. Subtract that share from raw vCPU before entering it.

A short checklist before trusting the number

Check that pod requests come from the manifests you actually deploy, including any sidecars. A service mesh proxy or log sidecar adds its own requests to every pod and can change the answer by several pods per node.

Check whether the binding limit is CPU or memory, and how much of the other resource is wasted. A large gap is a signal to resize either pods or nodes.

Check that the memory overhead includes DaemonSets and eviction headroom, and that the 8% CPU reservation is close to your cluster's real allocatable figure.

Then do the cluster sum: total requests, divide by allocatable per node, round up, and add at least one spare. If the spare is missing, a routine node upgrade will leave some pods unscheduled.