Small app costs

Is AWS cheaper than DigitalOcean?

AWS isn't always cheaper than DigitalOcean: a 2 GiB EC2 t4g.small in US East (N. Virginia) costs $12.26 a month before disk, while a 2 GiB DigitalOcean Droplet costs $12.00 with 50 GiB SSD included. Costbrake watches AWS and DigitalOcean spend in one place and alerts you on spikes, budget thresholds and new charges.

Start with the whole app

The VM price isn't the app price. Add managed Postgres, object storage and outbound transfer before choosing.

The comparison below uses a continuously running app, a small managed database and 50 GB of object storage. AWS regional prices are for US East (N. Virginia), except the explicitly marked EBS example rate. EC2 and RDS monthly instance prices use 730 hours.

There's a catch: the EBS rate is the $0.08 per GB-month AWS uses in its gp3 pricing example, not a quoted price for one Region.

Keep those gaps visible. Don't turn them into zeroes.

Price the app line by line

These are monthly calculations from the listed rates, without promotional credits. Transfer stays within the stated allowances; S3 request charges remain additional.

App componentAWS EC2AWS Lightsail with RDS and S3DigitalOcean
VMt4g.small: 2 vCPU, 2 GiB, $12.26Linux/Unix public IPv4 bundle: 2 vCPUs, 2 GB, $12Basic Regular: 1 vCPU, 2 GiB, $12.00
App disk50 GB gp3 at $0.08/GB-month: $460 GB SSD included50 GiB SSD included
Managed Postgres computeSingle-AZ db.t4g.micro: 2 vCPU, 1 GiB, $11.68Same RDS instance: $11.68Standard Basic Regular: 1 vCPU, 1 GiB, $15.15
Database disk20 GB at $0.115/GB-month: $2.30Same allocation: $2.3010 GiB included, plus 10 GiB at $0.215/GiB/month: $2.15
Object storage50 GB S3 Standard: $1.15, plus requestsSame S3 storage: $1.15, plus requestsSpaces: $5.00, including 250 GiB
App transfer allowance100 GB internet outbound shared across AWS Services and Regions, except China and GovCloud3 TB, counting inbound and outbound2,000 GiB outbound
Object transferUses the shared AWS outbound allowanceUses the shared AWS outbound allowanceSpaces includes 1,024 GiB outbound
Public IPv4$3.65 ($0.005 per hour)Included in bundleIncluded in bundled plan
Monthly priced total$35.04, plus requests$27.13, plus requests$34.30

The Lightsail column uses RDS for managed Postgres and S3 for objects. It isn't a Lightsail-only stack.

DigitalOcean's $34.30 covers the listed components within their allowances. The AWS totals leave out S3 requests, which depend on usage, so read this as a priced configuration, not identical hardware.

Choose the VM and billing model

Need less memory? DigitalOcean's 1 GiB Basic Regular Droplet is $6.00 a month, including 25 GiB SSD and 1,000 GiB transfer. EC2 t4g.micro is $6.13 before disk and public IPv4.

Lightsail's 1 GB Linux/Unix public IPv4 bundle costs $7, with 40 GB SSD and 2 TB transfer. Its $12 bundle includes 60 GB SSD and 3 TB transfer. That bundle wins on the priced AWS subtotal above.

But per-second billing isn't an AWS-only advantage.

  • EC2 On-Demand Linux bills partial hours per second, with a 60-second minimum. Instance billing runs until you stop or terminate it.
  • DigitalOcean Droplets also bill per second, with a minimum of 60 seconds or $0.01, whichever is higher. Bundled-plan CPU Droplets cap usage at 672 hours per month.
  • Powering off a bundled-plan Droplet doesn't stop billing. You must destroy it.
  • DigitalOcean v5 Droplets don't have that monthly cap; they're billed for actual hours in the calendar month.

For more component prices, see DigitalOcean monthly costs and AWS small-app costs.

Check transfer and the charges outside the total

What's missing from your own calculation?

Start with transfer. DigitalOcean Droplet inbound traffic is free; outbound overage costs $0.01 per GiB. Droplet allowances pool across the team and don't roll over. Spaces has its own allowance, and its included CDN shares that allowance with origin traffic.

Lightsail counts inbound and outbound against its allowance, though only excess outbound incurs overage charges. In US East (N. Virginia), overage is $0.09/GB. Mumbai, Sydney, Jakarta, Malaysia, Hong Kong and Sao Paulo receive half the standard bundle allowances.

Then check these:

  • CPU credits. EC2 T4g Unlimited credits cost $0.04 per vCPU-Hour. RDS T4g and T3 credits cost $0.075 per vCPU-Hour when average CPU use over a rolling 24-hour period exceeds baseline.
  • Requests. S3 Standard charges $0.005 per 1,000 PUT, COPY, POST and LIST requests, and $0.0004 per 1,000 GET, SELECT and other requests.
  • Backups. DigitalOcean percentage-based backups cost 20% for Weekly or 30% for Daily.
  • Networking. An AWS NAT Gateway in US East (Ohio) costs $0.045 per hour plus $0.045 per GB processed. It's not included above.

Watch the bill after deployment

Costbrake reads DigitalOcean month-to-date usage through its balance API using a read-only personal access token, as fresh as DigitalOcean computes it. Checks run hourly on Free and every 5 minutes on Pro and Team.

DigitalOcean has no Costbrake brakes. A powered-off Droplet still bills, and Costbrake never deletes resources.

Use agent setup to connect your providers, or check Costbrake pricing.

Questions and answers

Is DigitalOcean cheaper than AWS?

Not across every configuration. The DigitalOcean stack above totals $34.30 monthly; the Lightsail, RDS and S3 configuration totals $27.13 before S3 requests, with different database disk allocations.

Is DigitalOcean better than AWS for small apps?

For the listed bundled Droplets, disk, public IPv4 and outbound transfer are included. Lightsail also bundles those components; EC2 prices them separately.

How much is a DigitalOcean Droplet vs EC2?

A 1 GiB DigitalOcean Basic Regular Droplet costs $6.00 monthly, compared with $6.13 for EC2 t4g.micro before disk and public IPv4. At 2 GiB, the listed prices are $12.00 and $12.26 respectively.

Is Lightsail cheaper than DigitalOcean?

The listed 2 GB Lightsail bundle and 2 GiB DigitalOcean Droplet both cost $12 monthly. Lightsail includes 60 GB disk and 3 TB transfer; DigitalOcean includes 50 GiB disk and 2,000 GiB outbound transfer.

Does stopping a server stop the bill?

Stopping EC2 ends its instance compute billing, but public IPv4 addresses remain chargeable, including idle ones. Powering off a bundled-plan DigitalOcean Droplet doesn't stop its billing; destroying it does.

Sources

Updated