aws ecs pricing calculator

AWS ECS Pricing Calculator

Estimate monthly and annual cost for ECS on Fargate, Fargate Spot, or ECS on EC2.

First 20 GiB per task is included with Fargate.
Enter your workload values and click Calculate ECS Cost.

What this AWS ECS pricing calculator estimates

Amazon ECS pricing can look simple at first, but real monthly cost usually depends on a few moving parts: compute size, runtime hours, launch type, storage, and traffic. This calculator helps you quickly estimate your spend for three common deployment models:

  • ECS on Fargate (On-Demand) – pay for vCPU, memory, and optional extra ephemeral storage.
  • ECS on Fargate Spot – lower compute price for interruption-tolerant tasks.
  • ECS on EC2 – pay for EC2 instances and storage while ECS control plane remains no-charge.

It also includes optional fields for discount assumptions (like Savings Plans) and internet data transfer out.

How ECS pricing works (quick breakdown)

1) ECS on Fargate

For Fargate, your bill is mainly based on:

  • Allocated vCPU-hours
  • Allocated GB-hours of memory
  • Extra ephemeral storage above the included baseline

You don't manage servers directly. This model is often best when you value operational simplicity and predictable scaling behavior.

2) ECS on EC2

With ECS on EC2, ECS itself has no additional control plane fee, but you pay for:

  • EC2 instance runtime
  • EBS storage
  • Any networking and supporting AWS services

This can be cheaper at high, steady utilization, especially when you optimize instance selection and packing density.

3) Other costs you should not ignore

  • Application Load Balancer / Network Load Balancer charges
  • NAT Gateway, VPC endpoints, and cross-AZ transfer
  • CloudWatch logs and metrics retention
  • Container image storage and transfer from Amazon ECR

How to use this calculator effectively

Enter values from your real workload profile, not just desired capacity:

  • Average running tasks, not maximum burst count.
  • Actual runtime hours (for dev/staging this may be far lower than 730).
  • Measured memory and CPU from CloudWatch instead of guessed values.
  • Expected outbound traffic if your service is internet-facing.

After calculating, test two or three scenarios (baseline, peak, and optimized) to reveal your cost range.

Fargate vs EC2: which is cheaper?

There is no universal winner. A practical rule:

  • Choose Fargate when operational speed and reduced infrastructure management are top priorities.
  • Choose EC2 when you can maintain consistently high host utilization and invest in tuning.

For many teams, Fargate is cost-effective in early stages, while EC2 can become more attractive at larger, steady scale.

Cost optimization tips for AWS ECS

Right-size task definitions

Over-allocating memory is one of the most common cost leaks. Use utilization metrics to reduce vCPU and RAM to realistic levels.

Use mixed capacity strategies

Put stateless workers on Spot capacity where interruption is acceptable, and keep critical services on On-Demand.

Schedule non-production environments

If dev and QA do not need 24/7 uptime, stopping workloads overnight and on weekends can drastically reduce monthly spend.

Track unit economics

Monitor cost per request, cost per tenant, or cost per job. These metrics expose whether architecture and scaling decisions are helping.

Important assumptions

This calculator is for planning and comparison. Prices vary by region, operating system, architecture, and timing. Always validate final numbers with the official AWS Pricing pages before committing budgets or long-term contracts.

FAQ

Does Amazon ECS charge a separate management fee?

ECS control plane is generally no-charge. You pay for the underlying compute and related services you use.

Can I apply Savings Plans to these estimates?

Yes. Use the discount field to model expected savings. It is an estimate and should be validated against your actual commitment plan.

Is Fargate Spot always better financially?

It can be much cheaper, but only for workloads that can tolerate interruptions. For always-on critical services, on-demand capacity may be the safer baseline.

🔗 Related Calculators