How are Amazon EC2 instance hours billed?

Last updated: 2020-06-29

How am I billed for Amazon Elastic Compute Cloud (Amazon EC2) instance hours?

Resolution

Your Amazon EC2 usage is calculated by either the hour or the second based on the size of the instance, operating system, and the AWS Region where the instances are launched. Pricing is per instance hour consumed for each instance, from the time an instance is launched until it is terminated or stopped. Each partial instance hour consumed is billed per-second for Linux instances and as a full hour for all other instance types.

When reviewing your Amazon EC2 usage, consider the following:

  • If your instance is billed by the hour, then you're billed for a minimum of one hour each time a new instance is started—that is, when it enters the running state.
  • If your instance is billed by the second, then you're billed for a minimum of 60 seconds each time a new instance is started—that is, when it enters the running state.

Here are a few examples for instances that are billed by the hour:

  • When you run one instance for 30 minutes and then terminate the instance, you're billed for one instance hour.
  • When you run one instance for 10 minutes, stop the instance, and then start the instance again, you're billed for two instance hours.
  • When you run two EC2 instances of the same type for 30 minutes each, you're billed for two instance hours.

If you purchase an Amazon EC2 Reserved Instance, the terms of your Reserved Instance contract can modify the way you're billed. For more information, see What is an Amazon EC2 Reserved Instance?

For information on how Spot Instances are billed, see Amazon EC2 Spot Instances pricing.

If you have signed up for Savings Plans, see Savings Plans FAQ.