Terraform Plan Cost Calculator
Estimate the monthly cost change implied by a Terraform plan.
About Terraform Plan Cost Calculator
A plan's cost impact is the difference between what it creates and what it destroys, which is why a large plan can still reduce spend. Expressing it as a share of current spend is what makes the change reviewable. Cost review at plan time is far cheaper than discovering the increase on the next invoice, since infrastructure created in error often runs for a full billing cycle.
Formula
Terraform Plan Cost
Delta = added resources × unit cost − destroyed resources × unit cost
- plan
- The set of create, update and destroy actions Terraform proposes
- delta
- Net monthly change, which can be negative when resources are removed
Worked example
With the default values below, Terraform Plan Cost Calculator returns Monthly Cost Change of $780.00. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Resources to addminimum 0
- 12
- Average monthly cost per added resourceminimum 0
- 85
- Resources to destroyminimum 0
- 4
- Average monthly cost per destroyed resourceminimum 0
- 60
- Current monthly spendminimum 0
- 4,200
Results
- Monthly Cost Change
- $780.00
- Projected Monthly Spend
- $4,980.00
- Cost of Added Resources
- $1,020.00
- Saving From Destroyed Resources
- $240.00
- Change Against Current Spend
- 18.57%
Step by step
- 1Values used
- 2Terraform Plan Cost
- 3Monthly Cost Change= 780.00
- 4Projected Monthly Spend= 4,980.00
- 5Cost of Added Resources= 1,020.00
- 6Saving From Destroyed Resources= 240.00
- 7Change Against Current Spend= 18.57
Assumptions and limits
- The result is derived only from the 5 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax 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 Terraform Plan Cost calculated?
Delta = added resources × unit cost − destroyed resources × unit cost A plan's cost impact is the difference between what it creates and what it destroys, which is why a large plan can still reduce spend. Expressing it as a share of current spend is what makes the change reviewable.
Why does Terraform Plan Cost matter?
Cost review at plan time is far cheaper than discovering the increase on the next invoice, since infrastructure created in error often runs for a full billing cycle.
What values do I need to enter?
This calculator takes 5 inputs: Resources to add, Average monthly cost per added resource, Resources to destroy, Average monthly cost per destroyed resource, Current monthly spend. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Related Calculators
You might also need
- Database Connection Pool CalculatorCommonly used together
- Elasticsearch Shard CalculatorCommonly used together
- Redis Memory CalculatorCommonly used together
- Password GeneratorAlso in Developer & Networking
- Business Data PlanAlso in Developer & Networking
- Unlimited Plan ValueAlso in Developer & Networking
