EC2 pricing, Spot and Savings Plans
On-Demand, Savings Plans, Reserved Instances, Spot and Capacity Reservations: what each discounts, how much to commit and how to survive interruptions.
EC2 instance types and AMIsLaunching and connecting to instancesEBS volumes and snapshots
EC2 pricing, Spot and Savings Plans
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- On-Demand bills per second with a one-minute minimum and no commitment. It is the baseline the other options discount.
- Savings Plans trade a one or three year commitment to spend per hour for a lower rate. Compute plans are flexible, EC2 Instance plans are cheaper and narrower.
- Commit to the steady floor of your usage, not the peak. Unused commitment is still paid.
- Spot sells spare capacity at a large discount and can take it back with a two-minute notice. Use it for work that tolerates that.
- Spread Spot requests across many instance types and zones and use the price-capacity-optimized strategy.
- A discount is not a capacity guarantee. Capacity Reservations hold capacity, at a price, used or not.
One machine, several prices
The same instance can cost very different amounts depending on what you promise in return. The provider’s problem is the usual one of an airline: unsold seats earn nothing, and knowing demand in advance is worth a discount.
| Option | You give | You get |
|---|---|---|
| On-Demand | nothing | full price, stop any time |
| Savings Plans | 1 or 3 year spend commitment | lower rate |
| Reserved Instances | 1 or 3 year commitment to a configuration | lower rate |
| Spot | the right to take it back | deep discount |
| Capacity Reservation | pay for held capacity | assurance it is there |
On-Demand bills per second while running, with a 60-second minimum. Instance price is not the whole bill: EBS, public IPv4 addresses, data transfer and load balancers are separate.
Committing
A Savings Plan is a promise to spend a set number of dollars per hour on eligible usage at discounted rates. Use above the commitment is On-Demand; commitment you don’t use is lost.
- Compute Savings Plans: up to 66% off, across instance family, size, Region and operating system, and covering Fargate and Lambda.
- EC2 Instance Savings Plans: up to 72% off, tied to one family in one Region.
There are also Database and SageMaker AI plans. Reserved Instances are the older mechanism; AWS recommends Savings Plans instead.
“Up to” figures assume the longest term and most favourable conditions. Check the actual rate for your type and Region.
How much to commit
Suppose 4 instances run all day and 6 more for twelve hours. With made-up rates of 1.00 On-Demand and 0.70 committed, a short script prices one day:
commit for 0 instances: $168.00/day
commit for 4 instances: $139.20/day
commit for 7 instances: $153.60/day
commit for 10 instances: $168.00/day
Committing to the floor wins. Committing to the peak saves nothing at all here, because the idle hours eat the discount. The rule: a commitment pays off on an instance only if it runs for more of the time than the price ratio, here 70%.
So: first remove waste and right-size, then commit, in slices bought over time so they don’t expire together.
Spot
Spot Instances use spare capacity at savings of up to 90%. The price moves gradually with supply and demand. The catch: EC2 can reclaim them, mainly when it needs the capacity, with a two-minute notice delivered through instance metadata and EventBridge. Depending on settings the instance is terminated, stopped or hibernated. A rebalance recommendation may arrive earlier as a warning of elevated risk, but neither signal should be your only safety.
Good fits are stateless web tiers behind a load balancer, containers, CI runners and checkpointed batch jobs.
To make it work:
- Be flexible. Each type in each zone is a separate pool. Ten types across three zones is thirty chances.
- Use price-capacity-optimized allocation, which favours pools with spare capacity at good prices. Lowest-price is not recommended.
- Drain on notice: deregister from the load balancer, checkpoint, stop taking work.
- Keep a floor of On-Demand or committed capacity. An Auto Scaling group can mix both.
Capacity is a different problem
A Savings Plan does not promise you an instance will be available. If a launch must succeed, for disaster recovery or a known event, use an On-Demand Capacity Reservation, billed whether used or not, which your plans can discount. Scarce GPUs have Capacity Blocks you book for future dates. Dedicated Instances and Hosts are for isolation or licensing rules.
The wider habits of tracking spend are in cloud cost and FinOps, and AWS’s tools in Cost Explorer and budgets.
About the video
The embed is Tiny Technical Tutorials’ “Amazon EC2 Pricing Simply Explained”, January 2024, 9 minutes. Its chapters cover On-Demand, Reserved Instances against Savings Plans, the plan types, creating a Spot Instance and a Reserved Instance, and working with Savings Plans. It predates Database Savings Plans. I judged it from chapters and description, since transcripts couldn’t be fetched. The re:Invent talk in deeper goes into strategy.
What was run: the commitment arithmetic, a few lines of Python with invented rates. Nothing was bought or launched. Discount ceilings, billing rules and interruption behaviour are from AWS documentation, checked in November 2026.
Where this fits
Buying capacity well matters less if you buy a fixed amount. Next: launch templates and Auto Scaling groups.
Check yourself
Your fleet runs 4 instances overnight and 10 during the day. How many should a commitment cover?
Roughly the floor of 4, and possibly a little more depending on the discount and how long the peak lasts. Covering 10 pays for 6 idle commitments all night.
You might move from m-family instances to containers on Fargate next year. Which Savings Plan type fits?
A Compute Savings Plan, which applies across families, sizes and Regions and also to Fargate and Lambda. An EC2 Instance plan is tied to one family in one Region.
Is a nightly batch job that checkpoints every few minutes a good Spot candidate?
Yes. An interruption loses only the work since the last checkpoint, and the job can resume on another instance.
A database primary on a single instance: would you run it on Spot?
No. It is stateful and cannot accept being reclaimed at two minutes' notice.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.