Fargate Pricing Calculator - Serverless Container Costs

Calculate AWS Fargate costs for serverless container workloads. Estimate monthly pricing with vCPU, memory, and storage configurations. Compare On-Demand vs Spot pricing and find cost savings with ARM/Graviton processors.

+3 more

Frequently Asked Questions

What is a Fargate pricing calculator?

A Fargate pricing calculator estimates AWS container costs based on vCPU, memory, and storage configuration. It calculates monthly expenses for ECS and EKS workloads running on Fargate, helping you compare On-Demand vs Spot pricing and x86 vs ARM architectures before deployment.

How do I calculate Fargate costs?

Calculate Fargate costs by multiplying your vCPU-hours by the per-vCPU rate, then multiply memory GB-hours by the per-GB rate, and add storage costs above the 20 GB free tier. Multiply by the number of tasks and hours per month for your total monthly estimate.

Does Fargate pricing vary by region?

Yes, Fargate pricing varies by AWS region. US East (N. Virginia) typically has the lowest rates, while Asia Pacific and European regions cost 10-30% more. This calculator shows real-time pricing for all regions, letting you compare costs and identify cheaper alternatives.

Should I use ARM (Graviton) or x86 for Fargate?

ARM/Graviton processors are 20% cheaper than x86 and often deliver better price-to-performance ratios. If your container images support ARM64 (most do with multi-arch builds), Graviton is usually the better choice for cost optimization.

When should I use Fargate Spot?

Fargate Spot offers up to 70% savings for fault-tolerant, stateless workloads. Spot tasks can be interrupted with 2 minutes notice when AWS needs the capacity back. Use Spot for batch processing, CI/CD runners, dev/test environments, and any workload that can handle graceful termination.

How does Fargate compare to EC2?

Fargate charges per-task for resources requested, while EC2 charges for entire instances regardless of utilization. Fargate is cheaper for variable workloads and small deployments. EC2 is cheaper at scale with high utilization. Use our Fargate vs EC2 comparison calculator for detailed pricing analysis.

What is the difference between ECS Fargate and ECS EC2 launch types?

ECS supports two launch types: Fargate (serverless, AWS manages infrastructure) and EC2 (you manage the underlying instances). Fargate eliminates capacity planning and patching overhead, while EC2 gives you more control and can be cheaper at scale. For a complete breakdown including ECS Managed Instances, see our Amazon ECS pricing guide.

What is ephemeral storage and when do I pay for it?

Ephemeral storage is temporary disk space attached to each Fargate task. AWS provides 20 GB free per task - you only pay for storage above this threshold. Use ephemeral storage for temporary files, caches, or data processing. For persistent storage, consider EFS or EBS volumes.

What about container registry costs?

Container images must be stored somewhere before Fargate can pull them. Amazon ECR (Elastic Container Registry) is AWS's managed Docker registry. Storage costs $0.10/GB-month, but data transfer from ECR to Fargate in the same region is free. Use our ECR pricing calculator to estimate registry costs.

Can I use Savings Plans with Fargate?

Yes! Compute Savings Plans apply to Fargate usage and can save up to 20% with a 1-year commitment or 52% with a 3-year commitment. Savings Plans automatically apply to your Fargate usage regardless of region, OS, or architecture, making them flexible for changing workloads.

Why are some vCPU and memory combinations not available?

AWS Fargate has specific valid combinations of vCPU and memory. For example, 0.25 vCPU supports 0.5-2 GB memory, while 4 vCPU supports 8-30 GB. This calculator automatically adjusts memory options based on your vCPU selection to show only valid configurations.

How do I deploy Fargate services with Infrastructure as Code?

AWS CDK makes it easy to deploy Fargate services with built-in L2 constructs. You can create an Application Load Balanced Fargate Service for web apps, or set up a scheduled Fargate task for batch jobs. CDK handles networking, IAM roles, and load balancer configuration automatically.

Tip

Stop AWS bill surprises from happening.

Most infrastructure changes look harmless until you see next month's AWS bill. CloudBurn prevents this by analyzing the cost impact of your AWS CDK changes directly in GitHub pull requests, catching expensive mistakes during code review when fixes are quick, not weeks later when they're costly and risky.

See the setup guide to get started.