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
Results
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?
What target utilization should I use?
How do I convert tasks into cost?
Related tools
Related guides
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 .