Spot Instance Savings Calculator
Price EC2 Spot capacity against on-demand and discount the saving by the work lost to interruptions.
About Spot Instance Savings Calculator
Spot bills at a floating market rate for spare capacity, so the headline saving is straightforward — but you also pay for the partial work destroyed when AWS reclaims an instance with two minutes' notice. Dividing the Spot bill by the hours that actually produced finished work gives the effective discount, which is the figure to compare against a Savings Plan. Spot only pays off for interruption-tolerant work: at a few interruptions a month the effective discount barely moves, but on a long non-checkpointed job the rework can erase the entire saving.
Formula
Spot Instance Savings
spot rate = on-demand × (1 − discount); effective discount = 1 − (spot cost ÷ useful hours) ÷ on-demand rate, where useful hours exclude work lost to interruptions.
- discount
- Headline Spot reduction against on-demand
- lost hours
- Interruptions × rework time, converted to instance-hours
- useful hours
- Paid hours that produced completed work
Worked example
With the default values below, Spot Instance Savings Calculator returns Monthly Saving vs On-Demand of $981.12. Change any input above and every figure here is recalculated in your browser.
Inputs used
- On-demand rate per hourminimum 0 USD/hour
- 0.096 USD/hour
- Spot discount vs on-demandaccepts 0–95 %
- 70 %
- Instances in the Spot fleetaccepts 1–10,000 instances
- 20 instances
- Hours running per monthaccepts 0–744 hours
- 730 hours
- Interruptions per instance per monthaccepts 0–200 events
- 2 events
- Work lost per interruptionaccepts 0–600 minutes
- 6 minutes
Results
- Monthly Saving vs On-Demand
- $981.12
- Spot Rate per Hour
- $0.0288
- Spot Fleet Cost
- $420.48
- Same Fleet at On-Demand
- $1,401.60
- Instance-Hours Lost to Interruptions
- 4.0
- Discount After Interruption Waste
- 70.0%
Step by step
- 1Values used
- 2Spot Instance Savings
- 3Monthly Saving vs On-Demand= 981.12
- 4Spot Rate per Hour= 0.0288
- 5Spot Fleet Cost= 420.48
- 6Same Fleet at On-Demand= 1,401.60
- 7Instance-Hours Lost to Interruptions= 4.0
- 8Discount After Interruption Waste= 70.0
Assumptions and limits
- The result is derived only from the 6 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 4 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Guides that use this calculator
Frequently Asked Questions
How is Spot Instance Savings calculated?
spot rate = on-demand × (1 − discount); effective discount = 1 − (spot cost ÷ useful hours) ÷ on-demand rate, where useful hours exclude work lost to interruptions. Spot bills at a floating market rate for spare capacity, so the headline saving is straightforward — but you also pay for the partial work destroyed when AWS reclaims an instance with two minutes' notice. Dividing the Spot bill by the hours that actually produced finished work gives the effective discount, which is the figure to compare against a Savings Plan.
Why does Spot Instance Savings matter?
Spot only pays off for interruption-tolerant work: at a few interruptions a month the effective discount barely moves, but on a long non-checkpointed job the rework can erase the entire saving.
What values do I need to enter?
This calculator takes 6 inputs: On-demand rate per hour, Spot discount vs on-demand, Instances in the Spot fleet, Hours running per month, Interruptions per instance per month, Work lost per interruption. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
What workloads should never run on Spot?
Anything that cannot be killed with two minutes' notice: single-node stateful databases, licence-locked software, and long batch jobs without checkpointing. Diversifying across many instance types and Availability Zones in a Spot fleet is the standard mitigation for everything else.
Related Calculators
You might also need
- Reserved Instance Savings CalculatorCommonly used together
- EC2 Instance Cost CalculatorCommonly used together
- Savings Plan CalculatorCommonly used together
- EC2 Fleet Capacity CalculatorCommonly used together
- EC2 Instance Right-Sizing CalculatorAlso in AWS Compute
- EC2 CPU Utilization CalculatorAlso in AWS Compute
