AWS Fargate pricing explained
Fargate charges for the vCPU and memory you request for each ECS task or EKS pod, per second from image pull until the task stops, with a one-minute minimum. In us-east-1 at the time of writing that is $0.04048 per vCPU-hour and $0.004445 per GB-hour on x86, so a 1 vCPU / 2 GB task running all month costs about $36.04. ARM (Graviton) tasks are roughly 20% cheaper.
Pricing dimensions
| Dimension | x86 | ARM (Graviton) |
|---|---|---|
| vCPU per hour | $0.04048 | $0.03238 |
| Memory per GB-hour | $0.004445 | $0.00356 |
| Ephemeral storage above the included 20 GB, per GB-hour | $0.000111 | |
us-east-1 Linux prices from the AWS Price List API at the time of writing. Windows tasks have their own rates and an OS licence fee. You pay for what the task definition requests, not what the container uses: a task that asks for 2 vCPU and idles at 5% CPU pays for 2 vCPU.
Worked examples
1. A small web service. Three tasks of 0.5 vCPU / 1 GB on x86, running all month:
- Per task-hour: 0.5 × $0.04048 + 1 × $0.004445 = $0.024685
- Month: $0.024685 × 3 × 730 = $54.06
2. The same service on ARM. 0.5 × $0.03238 + 1 × $0.00356 = $0.01975 per task-hour; × 3 × 730 = $43.25, saving $10.81 a month if your image is built for arm64.
3. A nightly batch job. One 4 vCPU / 8 GB task for 2 hours a night, 30 nights (60 hours):
- Compute: (4 × $0.04048 + 8 × $0.004445) × 60 = $0.19748 × 60 = $11.85
- With 50 GB of ephemeral storage, the 30 GB above the free 20 GB adds 30 × $0.000111 × 60 = $0.20
For other task sizes, use the Fargate pricing calculator.
Fargate Spot and Savings Plans
Fargate Spot runs interruptible tasks on spare capacity at a variable discount; AWS can stop them with a two-minute warning. Its price is not published in the Price List API, so check the Fargate pricing page or your bill. Use it for queue workers and batch, alongside on-demand tasks in a capacity provider strategy.
Compute Savings Plans cover Fargate. With a one-year, no-upfront plan the us-east-1 rates at the time of writing are $0.032384 per vCPU-hour and $0.003556 per GB-hour, so the 1 vCPU / 2 GB task drops from $36.04 to $28.83 a month. See Savings Plans pricing.
ECS and EKS on top of Fargate
ECS adds no charge of its own: with the EC2 launch type you pay only for the instances, and with Fargate only for the tasks. EKS charges a per-cluster hourly fee in addition to the Fargate pods; see EKS pricing. Each EKS pod on Fargate also carries a small amount of extra memory for Kubernetes components, which is billed with the pod.
Easy-to-miss costs
- Image pulls through a NAT gateway: tasks in private subnets pulling from ECR over NAT pay NAT processing per GB on every deploy and scale-out. A VPC endpoint for ECR and S3 avoids that; see VPC endpoint pricing.
- Public IPv4 addresses on tasks in public subnets, billed per hour per task.
- CloudWatch Logs ingestion from the awslogs driver; see CloudWatch Logs pricing.
- Container Insights metrics, which are custom CloudWatch metrics.
- Oversized task definitions copied from a template: 1 vCPU / 2 GB where 0.25 / 0.5 would do.
Finding Fargate on the bill
Fargate appears under the Elastic Container Service line in Cost Explorer. Group by Usage type to see USE1-Fargate-vCPU-Hours:perCPU and USE1-Fargate-GB-Hours (ARM tasks have ARM in the name). To split cost by service or team, turn on split cost allocation data for ECS or tag your services and activate the tags as cost allocation tags.
Questions
How is Fargate billed?
Per second for the vCPU and memory requested in the task definition, from the start of the image pull until the task stops, with a one-minute minimum.
Is Fargate more expensive than EC2?
Per vCPU and GB it costs more than a well-packed EC2 instance, but you pay nothing for idle cluster capacity or node management. For small or spiky services Fargate is often cheaper overall.
What is the Fargate cost per vCPU?
In us-east-1 at the time of writing, $0.04048 per vCPU-hour on x86 and $0.03238 on ARM, plus memory per GB-hour.
Does ECS cost anything on its own?
No. ECS has no control-plane charge; you pay for the Fargate tasks or EC2 instances that run your containers, plus related services such as load balancers and logs.
Fargate cost tracks task count, so a service stuck scaling out at night shows up first on the bill. CloudConsole is being built to show ECS services, alarms and costs on a phone.
About the app → · Download on the App Store