EC2 Pricing Options

On-Demand, Savings Plans, Reserved Instances, Spot, Dedicated Hosts and Capacity Reservations - and when each fits.

What is it?

You can buy the same instance several ways. You trade commitment and flexibility for price.

  • On-Demand: pay per second (or hour, depending on OS), no commitment. Highest price, most flexible. Best for unpredictable or short-term work.
  • Savings Plans: commit to a steady spend (dollars per hour) for one or three years for lower rates.
  • Reserved Instances (RIs): an older discount tied to specific instance attributes for one or three years, in Standard and Convertible types. Often used for steady databases and servers.
  • Spot Instances: spare capacity at a steep discount, but AWS can take it back with short warning. Great for fault-tolerant, interruptible work.
  • Dedicated Hosts: a whole physical server you control, for per-socket or per-core licensing and compliance. Dedicated Instances run on hardware used only by your account, but AWS picks the host, you see less of it, and you pay a per-instance premium.
  • Capacity Reservations: reserve capacity in one AZ for any length of time. No discount on their own; combine with Savings Plans or RIs for that.

Dedicated hardware is not a separate payment model: Dedicated Instances and Hosts can be paid On-Demand or with a commitment discount.

Commitments can be paid all upfront, partial upfront or no upfront. Paying earlier gives a bigger discount. RI and Savings Plans discounts can be shared across the accounts in an AWS Organization with consolidated billing.

Two different goals: cost management saves money; capacity management makes sure you have enough resources for demand. Capacity Reservations and zonal RIs secure capacity; the other options cut cost.

On-Demand billing: Linux (and Windows without a separate hourly licence charge) is billed per second with a 60-second minimum. Everything else is billed per hour. Prices are always listed per hour; multiply by about 730 to estimate a month.

Reserved Instances in more depth

  • An RI is defined by instance type (family + size), Region, tenancy and platform (for example Linux or Windows). Its discount applies automatically to matching usage. Terms are 1 or 3 years.
  • Standard RIs give the biggest discount for a fixed instance family. They can be modified: change AZ in the Region, switch between zonal and Regional, or change size (Linux default tenancy).
  • Convertible RIs give a slightly smaller discount but can be exchanged for another Convertible RI of equal or greater value with a different family, OS/platform or tenancy.
  • Scope: a Regional RI reserves no capacity but applies to any AZ in the Region and any size in the family (size flexibility). A zonal RI reserves capacity in one AZ but has no AZ or size flexibility.
  • No Upfront still bills a discounted hourly rate for every hour of the term, used or not.
  • RIs do not auto-renew. When the term ends, instances keep running at On-Demand rates.
  • On the Reserved Instance Marketplace you can sell unused Standard RIs (not Convertible) and set only the upfront price. Registering as a seller needs the root user. Scheduled RIs are no longer offered.

Savings Plans are simpler than RIs: you commit only to a dollars-per-hour spend for 1 or 3 years. No class, scope or attribute choices.

  • Compute Savings Plans: most flexible. Apply to EC2, AWS Fargate and AWS Lambda regardless of family, size, AZ, Region, OS or tenancy.
  • EC2 Instance Savings Plans: bigger discount for one instance family in one Region. Size, OS and tenancy can still change.
  • SageMaker Savings Plans: cover Amazon SageMaker AI usage.

Helpers that cut compute cost: AWS Batch schedules and runs batch jobs and can use Spot capacity for you, which is simpler than managing Spot yourself. AWS Compute Optimizer uses machine learning on your past usage to recommend right-sized instances.

Explain like I'm 10

Think of a gym. Paying per visit costs the most but needs no promise (On-Demand). A one- or three-year membership is cheaper per visit if you really go (Savings Plans/RIs). Off-peak standby slots are nearly free, but you may be asked to leave (Spot). A private studio only you can enter is the Dedicated Host.

Examples

Choosing a model

Workload                                   Best fit
-----------------------------------------  -----------------------------
Dev server used a few hours, then deleted  On-Demand
Always-on production API for 3 years       Savings Plan / Reserved
Nightly image-processing jobs, retry-safe  Spot
Database licensed per physical core        Dedicated Host
Must have capacity in one AZ for an event  Capacity Reservation
Unknown, changing compute mix              Compute Savings Plan

Requesting Spot capacity

aws ec2 run-instances \
  --image-id ami-0123456789abcdef0 \
  --instance-type c6i.large \
  --instance-market-options 'MarketType=spot,SpotOptions={SpotInstanceType=one-time}'

# Inspect recent Spot price history
aws ec2 describe-spot-price-history \
  --instance-types c6i.large \
  --product-descriptions "Linux/UNIX" --max-items 3

Spot suits work that can checkpoint and restart. Do not run a single critical server on it.

How it works

AWS bills each running instance by usage. Commitment discounts (Savings Plans, RIs) apply automatically to matching usage on your bill; you do not 'assign' them to a server. Spot capacity comes from spare pools at a price AWS adjusts slowly (there is no bidding any more). When AWS needs it back, it sends a two-minute interruption notice first.

A good strategy mixes models: commit to your steady baseline, use On-Demand for the unpredictable layer on top, and Spot for flexible background work.

  Usage over time
  |            ____ On-Demand (spikes)
  |       ____|    |____
  |  ____|              |____    Spot (batch work)
  | [==== Savings Plan / Reserved baseline ====]
  +---------------------------------------------> time

Why does it exist?

AWS sometimes has spare capacity and also wants predictable revenue. Discounts reward customers who commit, and On-Demand stays open for those who cannot. Each workload pays fairly for what it needs.

When to use it

Commit once you have watched real usage and know your baseline. Use Spot for stateless, interruptible or batch jobs. Use Dedicated Hosts when licenses or regulations need physical server visibility.

When not to use it

Do not buy a three-year commitment for a project that may be cancelled. Do not run databases or single critical servers on Spot. Do not choose Dedicated Hosts without a licensing or compliance reason; they are expensive.

Common mistakes

  • Committing before understanding actual usage, then paying for idle commitments.

  • Running stateful services on Spot without handling interruptions.

  • Believing a Capacity Reservation gives a discount on its own.

  • Mixing up Dedicated Hosts (a whole physical server) and Dedicated Instances (instances on single-tenant hardware).

  • Forgetting that stopped instances still incur EBS storage charges.

  • Confusing Dedicated Instances (isolated hardware, no host control) with Dedicated Hosts (host-level visibility and license reuse).

  • Assuming a Regional RI guarantees capacity - only zonal RIs and Capacity Reservations do.

  • Expecting RIs to renew automatically; when they expire you silently pay On-Demand rates.

  • Thinking No Upfront means pay only for hours used - you pay for every hour of the term.

  • Trying to sell a Convertible RI on the Reserved Instance Marketplace; only Standard RIs can be sold.

Practice exercises

  1. Easy:

    Match each scenario to a pricing option: a weekend load test, a 24/7 production DB, a fault-tolerant video transcoder.

  2. Medium:

    Explain how Compute Savings Plans differ from EC2 Instance Savings Plans in flexibility and discount.

  3. Medium:

    Design a purchasing mix for a web app with a steady baseline of 10 servers, daily peaks of 25, and a nightly batch job.

  4. Easy:

    An instance is listed at a given hourly price. Show how you would estimate its monthly On-Demand cost.

  5. Medium:

    Compare a Regional RI and a zonal RI: which gives capacity, which gives size flexibility, and when would you pick each?

  6. Hard:

    Spot capacity can be taken back at short notice. Describe an architecture (queue, checkpoints, auto scaling) that handles this safely.

Interview questions

When would you use Spot Instances?

For fault-tolerant, flexible, or batch workloads that can handle interruption, such as rendering, big data processing, and CI jobs.

Why might a company choose Dedicated Hosts?

To use existing per-socket or per-core software licenses or to meet compliance requirements that need a physical server dedicated to them.

What is the difference between Savings Plans and On-Demand?

Savings Plans trade a one- or three-year spend commitment for a lower rate; On-Demand has no commitment and the highest rate.

Exam-style: A steady-state application will run for three years. Which option is the most cost-effective? (A) On-Demand (B) Spot (C) Savings Plans or Reserved Instances (D) Dedicated Hosts

C.

Exam-style: Which option offers the largest discount but may be interrupted?

Spot Instances.

Which Reserved Instance type allows changing instance family during the term?

Convertible Reserved Instances.

Exam-style: Which option guarantees EC2 capacity in an AZ without a long-term commitment?

On-Demand Capacity Reservations.

Exam-style: Which Savings Plan applies to EC2, Fargate and Lambda across any Region? (A) EC2 Instance Savings Plan (B) Compute Savings Plan (C) SageMaker Savings Plan (D) Standard RI

B. Compute Savings Plan.

What happens when a Reserved Instance term ends?

Nothing is interrupted; the instance keeps running but is billed at On-Demand rates. RIs do not auto-renew.

Exam-style: Which service recommends right-sized EC2 instances using machine learning on historical utilisation?

AWS Compute Optimizer.

Exam-style: Which managed service runs batch jobs and can use Spot Instances to lower cost?

AWS Batch.

Regional vs zonal Reserved Instances?

Regional RIs apply across AZs and sizes in the family but reserve no capacity; zonal RIs reserve capacity in one AZ but have no AZ or size flexibility.

Can you sell unused Reserved Instances?

Standard RIs can be sold on the Reserved Instance Marketplace (the seller sets the upfront price); Convertible RIs cannot.