To estimate the cost of running an Amazon EC2 instance with:
- vCPU: 2
- RAM: 4 GB
- Disk: 60 GB (assuming EBS)
...we'll compare a few common EC2 instance types and purchase options across different compute models, such as:
- On-Demand
- Reserved Instances (1-year term)
- Spot Instances
We'll use an instance as close as possible to your requirement and provide pricing examples based on the US East (N. Virginia) region (as prices vary slightly by region).
🎯 Closest Instance Types:
| Instance Type | vCPU | RAM | Intended Use |
|---|
| t3.small | 2 | 2GB | General Purpose (burstable) |
| t3.medium | 2 | 4GB | ✅ Closest match |
| t4g.medium | 2 | 4GB | Graviton (ARM-based, cheaper) |
| t3a.medium | 2 | 4GB | AMD-based, slightly cheaper |
| t2.medium | 2 | 4GB | Older Gen |
1. 📦 On-Demand Pricing
Note: Pay by the second, minimum 1 minute.
t3.medium (2 vCPU, 4 GB RAM)
- x86 Intel-based
- Hourly: ~$0.0416/hour
- Monthly (24/7): ~$30.00/month
t3a.medium (AMD version)
- Hourly: ~$0.0376/hour
- Monthly: ~$27.00/month
t4g.medium (Graviton ARM - cheapest option)
- Hourly: ~$0.0336/hour
- Monthly: ~$24.00/month
- ✅ BEST FOR COST/SAVINGS if your apps are compatible with ARM
2. ⏳ Reserved Instances (1-year term)
- You commit to a 1-year usage, in exchange for a discount.
- Can choose: No upfront, Partial upfront, All upfront
| Instance | Monthly (No upfront) | Discount over On-Demand |
|---|
| t3.medium | ~$21/month | ~30% |
| t3a.medium | ~$19/month | ~30% |
| t4g.medium | ~$17/month | ~30% |
3. 💥 Spot Instances
- Up to 90% cheaper, but can be interrupted by AWS anytime.
- Pricing fluctuates based on supply/demand.
| Instance | Average Price Range | Notes |
|---|
| t3.medium | ~0.012–0.018/hr | Highly available |
| t4g.medium | ~0.009–0.013/hr | Cheapest, ARM-only |
Assuming ~0.012/hr→ 8/month
✅ Great for batch jobs, CI/CD, or temporary workloads
💽 EBS Storage Cost (60 GB)
Assume gp3 (General Purpose SSD):
- $0.08/GB per month
- 60 GB × 0.08=∗∗4.80/month**
I/O and throughput may incur extra cost on gp3, but basic use is typically covered by baseline performance.
💰 Total Estimate (Monthly)
| Option | Instance Type | Compute Cost | 60GB Disk | Total / Month |
|---|
| On-Demand | t3.medium | $30 | $4.80 | ~$34.80 |
| On-Demand (cheap ARM) | t4g.medium | $24 | $4.80 | ~$28.80 |
| Reserved (1yr, t4g) | t4g.medium | $17 | $4.80 | ~$21.80 |
| Spot Instance (t4g) | t4g.medium | ~$8 | $4.80 | ~$12.80 |
✅ Recommendation
| Use Case | Recommended Option |
|---|
| Best performance & flexibility | t3.medium On-Demand |
| Lower cost (and ARM-compatible apps) | t4g.medium On-Demand |
| Long-term fixed usage | Reserved Instance (t4g.medium) |
| Dev/test or fault-tolerant apps | Spot (t4g.medium) |
Would you like this estimated for a specific region (like EU, Asia), or include network/data transfer costs too?