EC2 Monthly Cost Calculator
Build a full monthly EC2 bill from compute hours, attached EBS storage and data transfer out, and see what dominates.
Inputs
Editable list-price estimate — verify for your region, OS and instance family.
730 hours is an always-on average month; 744 is the longest calendar month.
gp3 is about $0.08 per GB-month before provisioned IOPS or throughput.
AWS currently waives the first 100 GB of internet egress per month per account.
Total Monthly Cost
$270.24
Compute (instance-hours)
$210.24
EBS Storage
$24.00
Data Transfer Out
$36.00
Cost per Instance
$90.08
Compute Share of the Bill
77.8%
Step by step
Values used
On-demand rate per instance-hour = 0.0960 USD/hour; Number of instances = 3 instances; Hours running per month = 730 hours; EBS volume size per instance = 100 GB; EBS price per GB-month = 0.0800 USD/GB; Data transferred out to the internet = 500 GB; Free egress allowance = 100 GB; Egress price per GB above the allowance = 0.0900 USD/GB
EC2 Monthly Cost
total = rate × instances × hours + EBS rate × GB × instances + egress rate × max(0, egress GB − free allowance).
Total Monthly Cost
= 270.24
Compute (instance-hours)
= 210.24
EBS Storage
= 24.00
Data Transfer Out
= 36.00
Cost per Instance
= 90.08
Compute Share of the Bill
= 77.8
How it works
An EC2 line item is really three meters: instance-hours, provisioned EBS capacity per GB-month, and internet egress per GB above the free allowance. EBS bills on what you provision rather than what you write, and inbound traffic is free, which is why the transfer term only counts data leaving the region. Compute usually looks like the whole bill until a chatty workload pushes egress past the allowance — splitting the three meters shows which one to attack first.
Formula
EC2 Monthly Cost
total = rate × instances × hours + EBS rate × GB × instances + egress rate × max(0, egress GB − free allowance).
- hours
- Instance-hours billed per month (730 if always on)
- EBS GB
- Provisioned volume size — you pay for provisioned, not used, capacity
- allowance
- Free internet egress each month before per-GB charges start
Frequently Asked Questions
How is EC2 Monthly Cost calculated?
total = rate × instances × hours + EBS rate × GB × instances + egress rate × max(0, egress GB − free allowance). An EC2 line item is really three meters: instance-hours, provisioned EBS capacity per GB-month, and internet egress per GB above the free allowance. EBS bills on what you provision rather than what you write, and inbound traffic is free, which is why the transfer term only counts data leaving the region.
Why does EC2 Monthly Cost matter?
Compute usually looks like the whole bill until a chatty workload pushes egress past the allowance — splitting the three meters shows which one to attack first.
What values do I need to enter?
This calculator takes 8 inputs: On-demand rate per instance-hour, Number of instances, Hours running per month, EBS volume size per instance, EBS price per GB-month, Data transferred out to the internet, Free egress allowance, Egress price per GB above the allowance. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Why 730 hours and not 720?
730 is 8760 ÷ 12, the true average month length. Using 720 (30 × 24) understates an always-on instance by about 1.4%, which matters once you multiply it across a large fleet.
You might also need
- EC2 Instance Cost CalculatorCommonly used together
- EC2 AMI Storage CalculatorCommonly used together
- EC2 Elastic IP CalculatorCommonly used together
- EC2 Storage Requirement CalculatorCommonly used together
- Savings Plan CalculatorCommonly used together
- EC2 Instance Right-Sizing CalculatorAlso in AWS Compute