ECS Task Sizing Calculator (CPU & memory -> task count)

Estimate required ECS tasks from average resource demand. Compare baseline vs peak demand to set a safe recommended task count.

Maintained by CloudCostKit Editorial Team. Last updated: 2026-01-28. Editorial policy and methodology.

Best next steps

Use this calculator for the first estimate, then validate the answer with the closest guide or companion tool.

Inputs

Total vCPU needed (average)
Total memory needed (GB, average)
vCPU per task
Effective vCPU: 0.35
Memory per task (GB)
Effective memory: 0.7 GB
Target utilization (%)
Use average CPU/memory demand, not peak. For safety, target 60-80% utilization instead of 100%.
Scenario presets

Results

Tasks needed (CPU)
6
Tasks needed (memory)
6
Recommended tasks
6
CPU utilization (at recommended)
6,667%
Memory utilization (at recommended)
6,667%
This sizes tasks only. Use a pricing calculator (Fargate or EC2) to convert task count into monthly cost.

This page solves sizing before pricing

ECS task sizing is upstream of cost. If task count is wrong, every Fargate or EC2 cost estimate built on top of it will also be wrong. That is why this page should focus on resource demand, headroom, and safe task count before any pricing model is applied.

  • CPU constraint: task count rises when vCPU demand is the bottleneck.
  • Memory constraint: task count rises when memory saturation arrives first.
  • Recommendation rule: the higher of the two counts should drive planning.

Where ECS sizing estimates usually go wrong

  • A single calm-month average is used without a separate deployment or incident envelope.
  • High utilization targets are chosen without leaving room for rolling deploys or transient bursts.
  • CPU and memory are blended into one intuition instead of tested as separate constraints.
  • Sizing is treated as a billing problem before service behavior has been measured.

What to review before carrying this into a cost model

  • Measure CPU and memory demand from representative service history, not from one unusual peak.
  • Lower utilization targets when you expect deployment overlap, burst traffic, or noisy-neighbor sensitivity.
  • Use separate baseline and stress scenarios so the recommended task count is honest about operational headroom.
  • Only after task count is credible should you hand the result to Fargate or EC2 pricing pages.

Baseline vs headroom-sensitive sizing scenarios

Scenario Total vCPU Total memory Utilization
Baseline Average Average 70-80%
Peak High High 60-70%

How to validate the sizing result in production

  • Check whether CPU or memory saturation is the real scaling trigger once the service runs under normal and burst traffic.
  • If production task count is higher than planned, identify whether the miss came from headroom, deployment overlap, or the wrong dominant resource.

Next steps

Example scenario

  • If your service needs ~2 vCPU and ~4 GB on average, and each task is 0.5 vCPU / 1 GB at 70% utilization -> estimate tasks.
  • Use average demand, not peak. Add headroom for spikes and deployments.
  • Peak 180% scenario shows how many tasks to reserve for burst traffic.

Included

  • Task count estimate from average vCPU and memory demand.
  • Target utilization to keep headroom (planning).
  • Baseline vs peak scenario table for recommended tasks.

Not included

  • Pricing (use Fargate or EC2 pricing calculators after sizing).
  • Load balancers, logs, networking, and storage.

How we calculate

  • Effective capacity per task = per-task capacity x target utilization.
  • Tasks by CPU = ceil(total vCPU needed / effective vCPU per task).
  • Tasks by memory = ceil(total GB needed / effective GB per task).
  • Recommended tasks = max(tasks by CPU, tasks by memory).

FAQ

What should I use for total vCPU and memory needed?
Use measured averages from monitoring (p50/p95 where relevant) and pick a realistic planning average. Don't size from peak-only numbers unless you also model autoscaling and scheduling.
What target utilization should I use?
Common planning values are 60-80% to keep headroom for bursts, deployments, and noisy neighbors.
How do I convert tasks into cost?
For ECS on Fargate, use the Fargate cost calculator (vCPU-hours + GB-hours). For ECS on EC2, estimate required instances and use the EC2 cost calculator.

Related tools

Related guides

S3 pricing: a practical model for storage, requests, egress, and replication
A practical S3 pricing guide: what to include (GB-month, requests, egress, replication) and how to estimate the key inputs without copying price tables.
CDN Cost Comparison Guide: Compare Pricing, Per-GB Rates, and Provider Trade-Offs
Compare CDN pricing across providers with a practical framework for bandwidth, requests, per-GB rates, regional mix, and origin egress. Built for CDN cost comparison and provider-decision workflows.
Cloud cost estimation checklist: build a model Google (and finance) will trust
A practical checklist to estimate cloud cost without missing major line items: requests, compute, storage, logs/metrics, and network transfer. Includes a worksheet template, validation steps, and the most common double-counting traps.
Copy storage pricing: what you pay for when data moves
A practical guide to pricing storage copy operations (cross-region copy, replication, backups) across S3-like object storage: transfer, requests, and extra storage.
Google Kubernetes Engine (GKE) pricing: nodes, networking, storage, and observability
GKE cost is not just nodes: include node pools, autoscaling, requests/limits (bin packing), load balancing/egress, storage, and logs/metrics. Includes a worked estimate template, pitfalls, and validation steps to keep clusters right-sized.
S3 CRR vs SRR Cost Comparison: Transfer, Storage, and Request Fees
Practical S3 CRR vs SRR cost comparison with transfer fees, replica storage, and request costs. Includes calculator-ready inputs.

Disclaimer

Educational use only. Not legal, financial, or professional advice. Results are estimates based on the inputs and assumptions shown on this page. Verify pricing and limits with your providers and documentation.

Last updated: 2026-01-28. Reviewed against CloudCostKit methodology and current provider documentation. See the Editorial Policy .