EC2 Fleet Capacity Calculator
Split an EC2 Fleet target capacity into on-demand base and Spot instances, then price the blended result.
Inputs
EC2 Fleet can express target capacity in units such as vCPUs rather than instance counts.
Always-on-demand floor before the percentage split applies.
Spot prices float with spare capacity — take a current figure from the Spot price history.
Monthly Fleet Cost
$8,964.40
Instances in the Fleet
30
On-Demand Instances
10
Spot Instances
20
Blended Hourly Cost
$12.28
Saving vs an All On-Demand Fleet
46.7%
Step by step
Values used
Target capacity = 480 vCPU; vCPUs per instance = 16 vCPU; On-demand base capacity = 2 instances; On-demand share above the base = 30 %; On-demand rate per instance-hour = 0.7680 USD/hour; Spot rate per instance-hour = 0.2300 USD/hour; Hours running per month = 730 hours
EC2 Fleet Capacity
instances = ceil(target capacity ÷ capacity per instance); on-demand = base + round((instances − base) × on-demand share); the remainder is Spot.
Monthly Fleet Cost
= 8,964.40
Instances in the Fleet
= 30
On-Demand Instances
= 10
Spot Instances
= 20
Blended Hourly Cost
= 12.28
Saving vs an All On-Demand Fleet
= 46.7
How it works
A mixed instances policy fills capacity in a fixed order: the on-demand base first, then the on-demand percentage of whatever remains, then Spot for the rest. Expressing the target in vCPUs rather than instances is what lets a fleet substitute a 2xlarge for two xlarges when capacity is scarce, which is exactly the flexibility that keeps Spot interruption rates low. The base is your insurance policy: it is the capacity that survives a complete Spot reclamation event, so it should cover the minimum traffic you must serve rather than being left at zero.
Formula
EC2 Fleet Capacity
instances = ceil(target capacity ÷ capacity per instance); on-demand = base + round((instances − base) × on-demand share); the remainder is Spot.
- base
- Instances always fulfilled on-demand, regardless of the split
- share
- Percentage of capacity above the base bought on-demand
- blended
- Weighted hourly price of the mixed fleet
Frequently Asked Questions
How is EC2 Fleet Capacity calculated?
instances = ceil(target capacity ÷ capacity per instance); on-demand = base + round((instances − base) × on-demand share); the remainder is Spot. A mixed instances policy fills capacity in a fixed order: the on-demand base first, then the on-demand percentage of whatever remains, then Spot for the rest. Expressing the target in vCPUs rather than instances is what lets a fleet substitute a 2xlarge for two xlarges when capacity is scarce, which is exactly the flexibility that keeps Spot interruption rates low.
Why does EC2 Fleet Capacity matter?
The base is your insurance policy: it is the capacity that survives a complete Spot reclamation event, so it should cover the minimum traffic you must serve rather than being left at zero.
What values do I need to enter?
This calculator takes 7 inputs: Target capacity, vCPUs per instance, On-demand base capacity, On-demand share above the base, On-demand rate per instance-hour, Spot rate per instance-hour, Hours running per month. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
How many instance types should a fleet allow?
As many as your workload tolerates — practical fleets list 10 or more types across several families and sizes in every AZ. Spot capacity pools are independent, so diversification is the single most effective way to cut interruptions, and the capacity-optimized allocation strategy then picks the deepest pools.
You might also need
- EC2 Network Throughput CalculatorCommonly used together
- EC2 Elastic IP CalculatorCommonly used together
- Spot Instance Savings CalculatorCommonly used together
- EC2 Placement Group CalculatorCommonly used together
- Savings Plan CalculatorCommonly used together
- EC2 Auto Scaling CalculatorCommonly used together