For example, we have 10 t3.medium ec2 instance. Let's say that there are 6 always running 24/7, but the other 4 are not running 24/7, they are turned off when not in use.

If I buy a reserved instance for t3.medium, how does AWS know to apply it to the instances running 24/7 and not part time?

Amazon doesn't apply reserved pricing to a specific instance at all. It basically just applies reserved pricing to your bill. It's like a discount at the time your bill is processed. If you have reserved pricing for N instances, and you have at least N instances running 24/7 reflected in your bill, then the reserved pricing gets applied to those N instances.

Amazon doesn't really care if you are running a single specific instance 24/7, or deleting and recreating instances once a minute. In the end it's just the total number of seconds you have a specific type of instance running each month that they care about, and bill you for.


Be aware that when you setup instance reservations it is actually a capacity reservation. You are telling Amazon you are committing to running this type of instance 24/7 for either 1 year or 3 years. By letting Amazon know this, it helps with their capacity planning, and in return they give you a cost discount. But it also means that they are going to charge you for that reserved capacity even if you don't actually have that instance running 24/7.

Answer from Mark B on Stack Overflow
🌐
AWS
aws.amazon.com › amazon ec2 pricing › reserved instances › pricing
EC2 Reserved Instance Pricing
1 day ago - With the Partial Upfront option, you make a low upfront payment and are then charged a discounted hourly rate for the instance for the duration of the Reserved Instance term. The No Upfront option does not require any upfront payment and provides a discounted hourly rate for the duration of ...
🌐
AWS
aws.amazon.com › amazon ec2 › pricing › reserved instances
Reserved Instances - Amazon EC2 Reserved Instances - AWS
17 hours ago - EC2 RIs provide a discounted hourly rate and an optional capacity reservation for EC2 instances. AWS Billing automatically applies your RI’s discounted rate when attributes of EC2 instance usage match attributes of an active RI.
🌐
Amazon Web Services
aws.amazon.com › cloud financial management › cost optimization with aws › reserved instances
Reserved Instances
2 days ago - You can make rightsizing a smooth ... monitoring and analysis. ... Amazon EC2 Reserved Instances (RI) provide a significant discount (up to 75%) compared to On-Demand pricing and provide a capacity reservation when used in a specific Availability Zone....
🌐
Amazon EC2
instances.vantage.sh
Amazon EC2 Instance Comparison
Reserved/Savings Plan1-year - No Upfront · CurrencyUnited States Dollar ($) ColumnsColumns · CompareClear Filters · Export · Updated 12/19/2025, 8:14:00 AM · EC2Instances.info - Easy Amazon EC2 Instance Comparison ·
🌐
Amazon Web Services
pages.awscloud.com › rs › 112-TZM-766 › images › eBook_The Ultimate Guide to Amazon EC2 Reserved Instances.pdf pdf
The Ultimate Guide to Amazon EC2 Reserved Instances
Amazon EC2 Instances are priced in three ways: On-Demand, where you · pay full price; Spot, where your price is determined by market availability; and Reserved, where you receive a discount based on a commitment to
🌐
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 days ago - The Amazon EC2 Reserved Instances Marketplace allows customers to buy and sell existing AWS Reserved Instances. The cost to buy a Reserved Instance with a partial term left may be significantly lower than the cost to buy outright.
🌐
Amazon Web Services
docs.aws.amazon.com › amazon ec2 › user guide › amazon ec2 instances › amazon ec2 billing and purchasing options › reserved instances for amazon ec2 overview
Reserved Instances for Amazon EC2 overview - Amazon Elastic Compute Cloud
A Reserved Instance has four instance attributes that determine its price. Instance type: For example, m4.large. This is composed of the instance family (for example, m4) and the instance size (for example, large). Region: The Region in which the Reserved Instance is purchased. Tenancy: Whether your instance runs on shared (default) or single-tenant (dedicated) hardware. For more information, see Amazon EC2 Dedicated Instances.
Find elsewhere
🌐
AWS
aws.amazon.com › amazon ec2 › pricing › dedicated instances
Amazon EC2 Dedicated Instances
2 days ago - Your Dedicated instances are physically isolated at the host hardware level from instances that belong to other AWS accounts. Dedicated instances may share hardware with other instances from the same AWS account that are not Dedicated instances. Pay for Dedicated Instances On-Demand, save up to 70% ...
🌐
AWSstatic
d1.awsstatic.com › whitepapers › cost-optimization-reservation-models.pdf pdf
Amazon EC2 Reserved Instances and Other AWS Reservation Models AWS Whitepaper
Unix Reserved Instances in the US East (N. Virginia) Region, and you have one running i3.metal instance · in that Region, the billing benefit is applied in full to the i3.metal instance. ... Savings Plans is another flexible pricing model that provides savings of up to 72% on your AWS compute · usage. This pricing model offers lower prices on Amazon EC2 instances usage, regardless of instance
🌐
Amazon Web Services
docs.aws.amazon.com › amazon ec2 › user guide › amazon ec2 instances › amazon ec2 billing and purchasing options › reserved instances for amazon ec2 overview › how billing works with reserved instances
How billing works with Reserved Instances - Amazon Elastic Compute Cloud
For information, see AWS Free Tier ... Reserved Instances are billed for every clock-hour during the term that you select, regardless of whether an instance is running. Each clock-hour starts on the hour (zero minutes and zero seconds past the hour) of a standard 24-hour clock.
🌐
AWS
aws.amazon.com › compute › amazon ec2 › pricing
Amazon EC2 – Secure and resizable compute capacity – AWS
2 days ago - With Amazon EC2 Spot Instances, you can use spare Amazon EC2 capacity in the AWS Cloud. This capacity is available at a discount of up to 90% compared to On-Demand prices. ... With On-Demand Capacity Reservations, you can reserve compute capacity in a specific Availability Zone.
🌐
Cloudchipr
cloudchipr.com › blog › aws-reserved-instances
AWS Reserved Instances Explained: Know Exactly How They Work—and Why They Matter
In summary, Reserved Instances in AWS automatically “cover” matching resources. If you have purchased an RI and have an EC2 running that meets the criteria, you’ll pay the lower RI price for that instance instead of the normal price. If your usage exceeds what your RIs cover (like more instances or different types), the extra usage just falls back to normal On-Demand charges.
🌐
CloudZero
cloudzero.com › home › blog › aws reserved instances 101: the complete guide
AWS Reserved Instances 101: The Complete Guide
August 25, 2025 - Reserved instances are ideal for steady and predictable usage. They can help you save significantly (up to 72%) on your Amazon EC2 usage costs compared to On-Demand instance pricing.
🌐
Spot.io
spot.io › home › aws ec2 pricing › aws reserved instances: ultimate guide [2025]
AWS Reserved Instances: Ultimate guide [2025]
October 19, 2025 - For each successful sale, AWS retains 12% of the upfront cost of the RIs. Furthermore, given the unpredictability of the market and changing demands, there is no guarantee that an organization will find a buyer for all its RIs.
🌐
AWS
aws.amazon.com › amazon ec2 › pricing › on-demand pricing
EC2 On-Demand Instance Pricing
1 day ago - To see prices, visit the Elastic Load Balancing page. On-Demand Capacity Reservations are priced exactly the same as their equivalent (On-Demand) instance usage. If a Capacity Reservation is fully utilized, you only pay for instance usage and nothing towards the Capacity Reservation.
🌐
AWS re:Post
repost.aws › knowledge-center › ec2-ri-basics
Learn about EC2 Reserved Instances | AWS re:Post
June 9, 2022 - An Amazon Reserved Instance (RI) is a billing discount that allows you to save on your Amazon EC2 usage costs. When you purchase a Reserved Instance, you can set attributes such as instance type, platform, tenancy, Region, or Availability Zone (optional). Any existing or new On-Demand Instances matching the selected attributes are charged at the discounted Reserved Instance price.
🌐
Concurrencylabs
concurrencylabs.com › blog › guide-to-ec2-reserved
Part I: EC2 - The Ultimate Guide to Saving Money with AWS Reserved "Anything" - Concurrency Labs
As you can see, price differences between Standard and Convertible can start at about 10% or even higher, depending on the instance type, region and number of years. ... If you haven’t deployed your components in a particular AWS region yet ...
🌐
TechTarget
techtarget.com › searchaws › definition › AWS-Reserved-Instances-Amazon-Reserved-Instances
What are AWS Reserved Instances? | Definition from TechTarget
Rather, it refers to a billing discount offered when organizations reserve capacity in an AWS service. The discount is applied to the use of on-demand instances in the AWS customer's account.
Top answer
1 of 1
2

When you purchase a reserved instance, you are committing to pay a certain amount now, and a certain hourly price each hour for the next year. Very important: the hourly price will be paid regardless of whether a matching EC2 instance is running or not.

Here's the breakdown of the p2.xlarge options: (assuming 8,760 hours per year)

Option 1: Full upfront

You will pay $5,022.00 now, and $0.00 each hour for the next 12 months.

Total after 12 months: $5,022.00

Option 2: Partial upfront

You will pay $2,562.00 now, and $0.292 each hour for the next 12 months.

Total after 12 months: $2,562.00 + $0.292 x 8,760 = $5,119.92

Option 3: No upfront

You will be $0.00 now, and $0.684 each hour for the next 12 months.

Total after 12 months: $0.00 + $0.684 x 8,760 = $5,991.84

Option 4: Only use OnDemand

Instead of buying a reserved instance, you could simply pay the OnDemand price for your instance.

The OnDemand price for a p2.xlarge instance in us-east-1 is $0.90 per hour. If you are planning on using 1,500 hours, then your cost would be $0.90 x 1,500 = $1,350.00.

None of this will be paid up-front. All will be paid month-to-month as it is used.

Conclusion:

Your best bet it to not purchase a reserved instance, and instead just use the OnDemand pricing.

Sometimes, OnDemand is cheaper compared to reserved instances. That is, as long as you turn off the instance :)

Additional Notes:

You could save more using spot instances, but the pricing for that fluxuates, and the instances cannot be terminated.