EC2 Monthly Cost Calculator
Build a full monthly EC2 bill from compute hours, attached EBS storage and data transfer out, and see what dominates.
About EC2 Monthly Cost Calculator
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
Worked example
With the default values below, EC2 Monthly Cost Calculator returns Total Monthly Cost of $270.24. Change any input above and every figure here is recalculated in your browser.
Inputs used
- On-demand rate per instance-hourminimum 0 USD/hour
- 0.096 USD/hour
- Number of instancesaccepts 1–10,000 instances
- 3 instances
- Hours running per monthaccepts 0–744 hours
- 730 hours
- EBS volume size per instanceaccepts 0–65,536 GB
- 100 GB
- EBS price per GB-monthminimum 0 USD/GB
- 0.08 USD/GB
- Data transferred out to the internetaccepts 0–1,000,000 GB
- 500 GB
- Free egress allowanceaccepts 0–1,000 GB
- 100 GB
- Egress price per GB above the allowanceminimum 0 USD/GB
- 0.09 USD/GB
Results
- 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
- 1Values used
- 2EC2 Monthly Cost
- 3Total Monthly Cost= 270.24
- 4Compute (instance-hours)= 210.24
- 5EBS Storage= 24.00
- 6Data Transfer Out= 36.00
- 7Cost per Instance= 90.08
- 8Compute Share of the Bill= 77.8
Assumptions and limits
- The result is derived only from the 8 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 2 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
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.
Related Calculators
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
