Actually there are three allocation types:

  • on demand - kind of "default" mode. You request an instance, if there is free capacity, you will get the instance. No long term commitment, but once you get an instance, it's yours. It may happen that you will get a message that there is no free capacity for the specific instance type and AZ (so far it happened to me only once with AWS).

  • reserved - AWS reserves the capacity for you. You have guarantee that you will get the instance type in the selected region or AZ.

  • spot instance - it's kind of auction / bidding of unused capacity. You ask for an instance, you provide your maximum price and if there is free capacity and your price is at the current price or higher, you will get an instance. The difference is - if the free capacity is exhausted, or the current price is higher than your maximum bid price, your spot instance is terminated . You can get a termination warning event upfront.

Answer from gusto2 on Stack Overflow
Top answer
1 of 2
27

Actually there are three allocation types:

  • on demand - kind of "default" mode. You request an instance, if there is free capacity, you will get the instance. No long term commitment, but once you get an instance, it's yours. It may happen that you will get a message that there is no free capacity for the specific instance type and AZ (so far it happened to me only once with AWS).

  • reserved - AWS reserves the capacity for you. You have guarantee that you will get the instance type in the selected region or AZ.

  • spot instance - it's kind of auction / bidding of unused capacity. You ask for an instance, you provide your maximum price and if there is free capacity and your price is at the current price or higher, you will get an instance. The difference is - if the free capacity is exhausted, or the current price is higher than your maximum bid price, your spot instance is terminated . You can get a termination warning event upfront.

2 of 2
3

The resources for both are the same, spot instances utilise the spare compute capacity within the AWS availability zone (those that are not reserved or launched on-demand).

Depending on the demand for that instance class in the availability zone the spot price will increase or decrease (even surpassing the on-demand price).

When you use a spot instance you are taking a risk that if demand increases you will lose access to the spot instance (you are given a 2 minute warning before termination). For his reason it is common to use a mixture of on-demand/reserved instances and spot instances so that you can withstand instance terminations.

Commonly in EC2 applications you would use an autoscaling group with a configured proportion between on-demand/reserved nodes and spot instances.

For more information take a look at the Requesting Spot Instances for fault-tolerant and flexible applications documentation.

🌐
Spot.io
spot.io › home › spot instances › spot instances vs. on-demand instances: pros and cons
Spot instances vs. on-demand instances: Pros and cons
September 26, 2023 - They can be used for applications with short-term, spiky, or unpredictable workloads that cannot be interrupted. The key difference between spot instances and on-demand instances is the pricing model and their availability.
🌐
CloudZero
cloudzero.com › home › blog › on-demand vs. spot instances: what’s the difference?
On-Demand Vs. Spot Instances: What’s The Difference?
September 10, 2025 - In addition, you can use On-Demand ... and deployments. A Spot Instance is a type of compute capacity that a cloud service provider offers at a steep discount whenever it has excess compute capacity....
🌐
Amazon Web Services
docs.aws.amazon.com › amazon ec2 › user guide › amazon ec2 instances › amazon ec2 billing and purchasing options › spot instances
Spot Instances - Amazon Elastic Compute Cloud
A Spot Instance is an instance that uses spare EC2 capacity that is available for less than the On-Demand price. Because Spot Instances enable you to request unused EC2 instances at steep discounts, you can lower your Amazon EC2 costs significantly. The hourly price for a Spot Instance is called ...
🌐
Runpod
runpod.io › home › blog › spot vs. on-demand instances: what's the difference on runpod?
Spot vs. On-Demand Instances: What's the Difference on Runpod? | Runpod Blog
Spot instances are originally a ... interrupted if that compute is needed elsewhere. On-demand instances are a type of AWS EC2 instance that allows you to pay for compute capacity by the hour with no long-term commitments....
🌐
Jayendra's Cloud Certification Blog
jayendrapatil.com › tag › spot-vs-on-demand-instances
Spot vs On-Demand Instances Archives - Jayendra's Cloud Certification Blog
However, if the spot instance is terminated by you, you will be charged for the partial hour · Spot instances with a predefined duration use a fixed hourly price that remains in effect for the Spot instance while it runs. EC2 can interrupt the Spot instance when the Spot price rises above ...
🌐
Hivenet
compute.hivenet.com › post › whats-the-difference-between-on-demand-and-spot-instances
On-Demand vs. Spot Instances | Compute with Hivenet Explained
High-performance GPUs – Compute with Hivenet provides on-demand access to GPUs like the RTX 4090. Spot instances offer access to unused computing capacity at a lower cost—sometimes up to 90% cheaper than on-demand instances.
🌐
Incredibuild
incredibuild.com › home › what’s the difference between on-demand, reserved, and spot instances?
On-Demand vs Reserved vs Spot Instances | Incredibuild
February 13, 2025 - That way, you can relax knowing that you have all of the capacity you need, and you’re not wasting money on instances that you only end up using once or twice. Cloud providers need to keep some space capacity available, in case there’s a huge surge in demand from customers — but for much of the time that spare capacity just sits unused. When you buy a Spot Instance, you’re essentially borrowing excess capacity from your cloud provider for a certain period of time.
Find elsewhere
🌐
Reddit
reddit.com › r/aws › spot instances vs on-demand vs spot block instances (calculator)
r/aws on Reddit: Spot Instances vs On-Demand vs Spot Block Instances (calculator)
November 1, 2019 -

Determining when it is best to use spot instances versus on-demand instances can be very complex when you have a large number of tasks that need to run for a decently long duration.

I need to factor in the potential for interruptions and retries on the overall estimated cost. Some of the tasks I run can save their progress and others can't and so I needed to figure those implications out as well.

Taking all of those requirements I've written a spot instance simulator that lets me compare metrics around simulated cost and estimated time to completion for a group of tasks.

https://observablehq.com/@rustyconover/aws-ec2-spot-instance-simulator

I hope some of you also find it helpful.

🌐
Cast AI
cast.ai › cast ai › blog › spot instances vs on-demand: reduce your costs using automation
Spot Instances vs On-Demand: Save with Smart Automation - Cast AI
July 1, 2025 - But what if you could stay on that beach chair and know exactly when it’s time to move, or better yet, have another one waiting for you? On-Demand Instances offer guaranteed availability and predictable pricing at a premium cost.
🌐
Pump
pump.co › home › blog › aws spot instances vs on-demand instances explained
AWS Spot Instances vs On-Demand Instances Explained
They have Spot Instances (interruptible but affordable), On-Demand Instances (no long-term contracts, pay-as-you-go) and Reserved Instances (discount prices on long-term contracts).
🌐
GeeksforGeeks
geeksforgeeks.org › cloud computing › aws-ec2-on-demand-and-spot-instances
AWS EC2 On Demand and Spot Instances - GeeksforGeeks
July 23, 2025 - Unknown workloads: You don't know ... is suitable for short term workloads. As per AWS Spot Instance uses spare EC2 capacity that is available for less than the On-Demand price....
🌐
CloudOptimo
cloudoptimo.com › home › blog › on-demand vs spot instances
On-Demand vs Spot Instances
June 19, 2024 - On-Demand Instances: Pay per hour (or second) for the instance you use. Spot Instances: Bid on spare EC2 capacity for significantly lower prices, but with the possibility of interruption.
🌐
Boltops
blog.boltops.com › 2018 › 07 › 13 › on-demand-vs-reserved-vs-spot-aws-ec2-pricing-comparison
On-Demand vs Reserved vs Spot AWS EC2 Pricing Comparison - BoltOps Blog
Now for the most exciting pricing option: spot. With spot instances, the commitment concept gets reversed. Instead, the lack of a commitment benefiting you, it applies the other way to AWS.
🌐
Novita AI
blogs.novita.ai › spot vs on-demand instances: quick decision guide
Spot vs On-Demand Instances: Quick Decision Guide - Novita
September 1, 2025 - Rates may fluctuate over time; instances may be terminated if capacity is needed · Key Trade-off: On-Demand = stable and reliable; Spot = cheaper but volatile.
Top answer
1 of 4
31

This is actually a great example of people slightly abusing spot. People are saying 'Our workload is really important but we don't want to pay full on demand price', so they set a bid price higher than on-demand on the assumption that it is very unlikely to be terminated, but still want to get the 'cheapest possible' spot price on offer.

There have been cases where people enter, for example, $1000 (I've been told of at least one time this happened) because they want the benefit of the spot market. Of course naturally at some point the demand comes in and the spot price SOARS to make people pay higher than on-demand.

The way the spot market works is that Amazon have X instances spare capacity, and they count from the top down until they fill the need for all X instances. The 'price', then, is the lowest price at which they can fulfill those X instances.

So imagine Amazon have 10,000 instances - well they will count down to (say) $0.43 until they've got those 10,000 instances fulfilled. But if that supply suddenly drops to 100 instances, then maybe a few people put bid prices of $10,000 for their 100 instances, suddenly they'll be paying that $10k per hour.

Tl;dr Understand how spot works, and set a cap you are prepared to pay.

2 of 4
13

There are 2 reasons for this:

  • A lot of users are using the spot instance at some times (Think about batch processing, boot up 100 machines as spot instance and crunch away).

  • For a spot instance you don't pay the bidding price, you pay the current spot price. The bidding price is the cutoff point. If the current spot price exceeds that of the bidding price AWS will terminate that instance.

This last on is also the reason that some user will massively overbid on the spot prices. They don't want their instance to shutdown every so often, so they bid a price so high that the spot price will never reach. Since they will only pay the current spot price the instance will be much cheaper 99% of the time.

🌐
nOps
nops.io › blog › on-demand-vs-spot-vs-reserved-instances
On-Demand vs Spot vs Reserved Instances: Explained in [current_year] | nOps
October 14, 2025 - Spot also works well for burst capacity in Kubernetes clusters or ML training pipelines where jobs can resume after interruption. Massive savings. Up to 90% cheaper than On-Demand, ideal for scaling compute-intensive workloads affordably.
🌐
AWS
aws.amazon.com › what is cloud computing? › cloud comparisons hub › compute › what’s the difference between on-demand instances and reserved instances?
On-Demand Instances vs Reserved Instances - Instance Types Comparison - AWS
2 weeks ago - Amazon EC2 Spot Instances are neither Reserved nor On-Demand Instances. Instead, Spot Instances are EC2 instances you can request for increased savings. These Spot Instances will be interrupted if a request for a Reserved or On-Demand Instance exceeds the current Availability Zone capacity.
🌐
Finout
finout.io › blog › aws-spot-instances
What Are AWS Spot Instances, Pros/Cons, and 6 Ways to Save Even More
May 22, 2025 - Spot instances are a cost-effective option within Amazon Web Services (AWS) that allows users to bid on spare EC2 compute capacity. These instances can be up to 90% cheaper than regular on-demand instances, making them an attractive choice for ...
🌐
CloudZero
cloudzero.com › home › blog › spot instances explained: how they can lower cloud costs
Spot Instances Explained: How They Can Lower Cloud Costs
July 9, 2024 - As Spot Instances focus on spare EC2 capacity, Reserved Instances offer the benefit of booking ahead of time. You can pay in advance and commit to the Reserved Instances for one to three years.