Skip to main content

AI & assistant-friendly summary

This section provides structured content for AI assistants and search engines. You can cite or summarize it when referencing this page.

Summary

Fargate bills per vCPU-second and GB-second — not per task hour. A 0.25 vCPU / 0.5 GB task running 24/7 costs ~$9/mo in us-east-1; a 4 vCPU / 16 GB task costs ~$145/mo. ECS on EC2 adds cluster overhead but wins at sustained utilization above ~55%.

Key Facts

  • A 0
  • 25 vCPU / 0
  • 5 GB task running 24/7 costs ~$9/mo in us-east-1; a 4 vCPU / 16 GB task costs ~$145/mo
  • ECS on EC2 adds cluster overhead but wins at sustained utilization above ~55%
  • astro'; As of June 2026, Fargate prices Linux x86 at $0

Entity Definitions

EC2
EC2 is an AWS service discussed in this article.
CloudWatch
CloudWatch is an AWS service discussed in this article.
ECS
ECS is an AWS service discussed in this article.

Amazon Fargate & ECS Task Pricing: vCPU-Seconds, Ephemeral Storage, and Fargate vs EC2 Launch Type (2026)

Quick summary: Fargate bills per vCPU-second and GB-second — not per task hour. A 0.25 vCPU / 0.5 GB task running 24/7 costs ~$9/mo in us-east-1; a 4 vCPU / 16 GB task costs ~$145/mo. ECS on EC2 adds cluster overhead but wins at sustained utilization above ~55%.

Key Takeaways

  • A 0
  • 25 vCPU / 0
  • 5 GB task running 24/7 costs ~$9/mo in us-east-1; a 4 vCPU / 16 GB task costs ~$145/mo
  • ECS on EC2 adds cluster overhead but wins at sustained utilization above ~55%
  • astro'; As of June 2026, Fargate prices Linux x86 at $0
Amazon Fargate & ECS Task Pricing: vCPU-Seconds, Ephemeral Storage, and Fargate vs EC2 Launch Type (2026)
Table of Contents

As of June 2026, Fargate prices Linux x86 at $0.04048/vCPU-hour and $0.004445/GB-hour in us-east-1; Graviton (arm64) runs ~20% lower. ECS itself has no per-task control-plane fee on EC2 launch type — you pay EC2 (or Fargate) plus optional Service Connect, CloudWatch, and data transfer.

Quantified pattern

A B2B API platform (~$22k/mo containers, 40 Fargate services) averaged 38% CPU utilization on rightsized tasks. Moving steady-state services to ECS on EC2 with Spot capacity providers cut container compute $6,800/mo (~31%) with two weeks of platform engineering. Bursty webhook workers stayed on Fargate.

Fargate vs ECS on EC2

FactorFargateECS on EC2
Ops burdenLowestAMI, patching, scaling
Billing unitvCPU + GB secondsEC2 instance hours
Best fitSpiky / small teamsSustained utilization
SpotFargate Spot (interruptions)EC2 Spot via capacity providers

Model all three paths: Fargate calculator, ECS on EC2 calculator, Fargate vs EC2 calculator.

If you only do one thing this week

Pull ECS CPUUtilization and MemoryUtilization for your top five services by cost. Any service under 30% average CPU and memory for 14 days is a Fargate rightsizing candidate — drop one vCPU or 1 GB and re-measure before changing launch type.

PP
Palaniappan P

AWS Cloud Architect & AI Expert

AWS-certified cloud architect and AI expert with deep expertise in cloud migrations, cost optimization, and generative AI on AWS.

AWS ArchitectureCloud MigrationGenAI on AWSCost OptimizationDevOps

Recommended Reading

Explore All Articles »
6 min

Amazon EKS Pricing: Control Plane, Extended Support, Auto Mode

EKS control planes are $73/month per cluster. Stay on a Kubernetes version beyond its 14-month standard support and Extended Support kicks in at +$0.50/hour — $438/month per cluster, a 5× multiplier. EKS Auto Mode adds a ~12% markup over standard EC2 + EBS for managed compute simplicity. The compute side (Karpenter, Spot, Graviton) is where most of the bill lives.