Home / Dev & AI / Cloud Cost / AWS EC2 Cost Calculator

Cloud Cost

AWS EC2 Cost Calculator

Estimate your EC2 bill. Choose an instance type, set how many you run and for how many hours, add EBS storage, and see the monthly cost with a type comparison.

Estimated monthly cost

$0

Compute cost
Storage cost
Cost per instance
On-demand hourly (each)
Annual estimate

Same fleet priced across instance types

Your count and hours on each size, cheapest first.

What the AWS EC2 Cost Calculator does

EC2 is AWS's core compute service, where you rent virtual servers called instances by the hour. Cost depends on the instance type you pick, how many you run and for how many hours, plus the EBS block storage attached to each. On-demand pricing has no commitment, while reserved and savings plans cut the rate sharply for steady workloads.

This EC2 cost calculator multiplies your instance count by the hourly rate and run hours, adds EBS storage, and compares the cost across popular instance types so you can right size. A full month running 24/7 is 730 hours.

Heads up on pricing. The rates built into this tool are public list estimates for July 2026 and can change without notice. Providers also offer batch discounts, prompt caching and volume tiers that lower real costs, so treat the output as a planning estimate, not a quote.

The formula

compute cost = instances × hourly rate × hours per month
storage cost = EBS GB × price per GB
total = compute + storage

Worked example

Two m5.large instances at $0.096 an hour for 730 hours cost 2 × $0.096 × 730 = about $140. Add 30 GB of gp3 EBS at $0.08 per GB for $2.40, so about $142 a month.

Ways to lower your cloud costs

Frequently asked questions

How much does an EC2 instance cost?

An m5.large is about $0.096 an hour on demand, roughly $70 a month if always on. Smaller t3 instances cost a few dollars a month. Pick a type above for your figure.

How many hours are in a month for EC2?

730 hours for a 24/7 instance. If you stop instances outside business hours, reduce the hours to match and save proportionally.

How can I lower EC2 costs?

Use Reserved Instances or Savings Plans for steady load, choose Graviton (t4g, m7g) for better price to performance, right size to actual usage, and stop idle instances.

What is EBS and does it cost extra?

EBS is the block storage volume attached to an instance. It is billed per GB per month separately from compute, around $0.08 per GB for gp3.

Are these rates current?

They are July 2026 on-demand estimates and vary by region. Confirm on the AWS pricing page for your region.

Related calculators