Posted on Mar 22, 2026 · Updated Mar 22, 2026 · 12 min read

E-commerce Hosting Costs: AWS vs Azure vs GCP (2026)

A self-hosted WooCommerce store doing $10K/month in GMV typically spends $200–$300/month on cloud infrastructure. At $500K GMV, that figure reaches $1,400–$1,500/month. At $5M+, it climbs past $11,000/month — and that's before Black Friday provisioning, CDN burst costs, or search infrastructure. E-commerce cloud costs don't scale linearly with revenue. They spike at peaks, stay elevated afterward, and accumulate silent waste in services that were scaled up for a sale and never scaled back.

This guide covers what actually drives e-commerce hosting costs, how AWS, Azure, and GCP compare for online retail workloads, when Shopify Plus beats self-hosted on total cost, and how to model your own numbers with the SpendArk e-commerce cost calculator.

TL;DR

Self-hosted e-commerce on AWS costs $200–$300/mo at $10K GMV, $1,400–$1,500/mo at $500K GMV, and $11,000+/mo at $5M+ GMV. Shopify Plus ($2,300/mo flat) beats self-hosted on total cost up to roughly $1M–$2M GMV — above that, self-hosted with Savings Plans wins. The five biggest cost levers: CDN cache rate, image format (WebP), database right-sizing, spot instances for batch jobs, and compute Savings Plans on always-on capacity. Organizations waste 27% of cloud spend on average (Flexera 2025); for e-commerce the figure is typically higher.

E-commerce storefront on laptop with shopping cart and cloud cost analytics dashboard

What drives e-commerce hosting costs

E-commerce cloud bills have a different cost profile from SaaS or internal tooling. Six services dominate the spend, and most of them are either bursty or continuously running at a size that was chosen for peak — not for normal operating load.

1. Compute (application and web tier)

Application servers handling product pages, cart sessions, and checkout represent the largest single line item — typically 35–45% of a self-hosted e-commerce cloud bill. The problem is sizing: teams provision for Black Friday and leave that capacity running year-round. An auto-scaling group capped at 20 instances for a November sale often idles at 4 instances in January but retains the minimum instance count configured during the event. Every extra always-on instance costs $70–$200/month depending on class.

2. Database (RDS / Aurora / Cloud SQL)

Checkout requires write-consistency and low latency — so databases are sized conservatively. An RDS Aurora db.r6g.2xlarge that handles Black Friday transaction throughput costs $820/month on-demand (AWS Aurora Pricing, 2026). The same workload during off-peak months runs fine on a db.r6g.large at $194/month. That $626/month delta sits idle for 10 months of the year in most stores. Database right-sizing — using RDS read replicas for reporting and scheduled scaling for predictable peaks — is the single highest-dollar-value optimization for mid-size e-commerce.

3. CDN and egress

Product images, CSS, JavaScript, and video content move through a CDN on every page load. CloudFront charges $0.085/GB for the first 10 TB of data transfer (AWS CloudFront Pricing, 2026). A fashion retailer serving 50 TB/month pays $4,250 in CDN data transfer before accounting for cache misses that hit the origin at full EC2 egress rates. For a deep dive on how egress charges stack up across providers, see our cloud egress costs guide. Cache hit rate improvement — from a typical 70% to 90%+ — cuts CDN spend by 20–30% with no code changes, just TTL and cache-key tuning.

4. Search (OpenSearch / Elasticsearch / Algolia)

Product search is real-time and latency-sensitive. Self-hosted OpenSearch on AWS (r6g.2xlarge.search, 2 nodes) costs $580–$720/month running continuously. Teams size search clusters for peak catalog load and query concurrency — then leave them running at that size permanently. Algolia or Typesense SaaS alternatives cost $500–$1,500/month at mid-scale but eliminate the operational overhead of cluster management and automatically handle indexing spikes.

5. Image processing and storage

A mid-size catalog with 15,000 SKUs and 8 images per product at 3 resolutions means 360,000 image variants. S3 storage at $0.023/GB is inexpensive, but origin image transformation requests (via Lambda or a dedicated service like Imgix) add $80–$200/month in processing costs. Converting source images to WebP at upload time eliminates transformation overhead and reduces storage and CDN transfer by 55–65% compared to JPEG at equivalent visual quality (Google WebP Study).

6. Payment processing infrastructure

PCI DSS compliance typically requires a dedicated subnet, WAF, enhanced logging, and sometimes a separate compute tier for payment flows. AWS WAF costs $5/rule group per month plus $0.60 per million requests. A store processing 500K checkout attempts/month pays $8–$15/month for WAF alone — small, but the associated NAT gateway, VPC endpoints, and dedicated RDS instance for transaction logs can add $150–$300/month in compliance-driven infrastructure that's easy to overlook during cost reviews.

Cost by GMV tier ($10K to $10M/mo)

Infrastructure cost as a percentage of GMV compresses as revenue scales — but absolute spend grows faster than most founders expect between $100K and $1M GMV. Below are representative self-hosted AWS cost ranges by GMV tier, based on typical WooCommerce, Magento, and headless Next.js stacks. Use the e-commerce hosting cost calculator to model your specific stack.

E-Commerce Hosting Cost by GMV Tier (AWS Self-Hosted)Monthly infrastructure cost (mid-range estimate). Excludes SaaS platform fees.$0$2K$4K$6K$8K$10K$12K$10K$0–$0.5K$50K$0–$0.9K$100K$1–$1.5K$500K$1.5K–$3.5K$1M$3.0K–$6.0K$10M$8.0K–$15.0KMonthly GMV (Gross Merchandise Value)Low estimateHigh estimateBased on AWS self-hosted stacks (EC2, RDS, CloudFront, ElastiCache). SpendArk analysis, 2026.
Infrastructure cost as % of GMV falls from 2–5% at $10K GMV to under 0.15% at $10M GMV — but absolute spend climbs sharply above $500K.

$10K–$50K GMV: shared or small dedicated

At this tier, a single t3.medium or t3.large web server ($30–$65/month), a db.t3.medium RDS instance ($55/month), and CloudFront ($10–$40/month) covers most workloads. Total: $200–$300/month. Shopify Basic ($39/month) or WooCommerce on managed WordPress ($20–$60/month) will almost always be cheaper than self-hosted AWS at this GMV — the engineering overhead alone exceeds the infrastructure savings.

$100K–$500K GMV: mid-tier dedicated

At $100K–$500K GMV, typical infrastructure includes 2–4 c6g.xlarge application nodes ($120–$240/month), a db.r6g.large RDS primary plus read replica ($400–$500/month), ElastiCache r6g.large ($150/month), and CloudFront serving 5–15 TB/month ($425–$1,275/month). Total: $1,400–$1,500/month. This is the range where the Shopify vs self-hosted decision gets genuinely complex — see the section below.

$1M–$10M GMV: enterprise-grade dedicated

Above $1M GMV, stacks typically add OpenSearch or Algolia for search, SageMaker or a third-party recommendation engine, multi-AZ database configurations, WAF and Shield Standard, and dedicated DevOps capacity. Infrastructure spend in this range runs $3,500–$13,000/month depending on catalog size, media volume, and traffic geography. At this scale, the savings from Savings Plans, right-sizing, and CDN optimization are worth six figures annually — modeling them with the e-commerce cloud cost calculator takes 10 minutes and typically surfaces $500–$2,000/month in recoverable spend.

Shopify Plus vs self-hosted: real cost comparison

Shopify Plus starts at $2,300/month (Shopify, 2026) and includes hosting, CDN, SSL, PCI compliance, checkout, and a 0.2% transaction fee above $500K GMV/year (waived with Shopify Payments). Self-hosted stacks on AWS or Azure carry no platform fee but require infrastructure spend, engineering time, and operational overhead. The break-even point depends heavily on how you value engineering time.

Shopify Plus vs Self-Hosted AWS: Total Monthly CostGMV / MonthShopify Plus (all-in)Self-hosted AWSWinner$100K$2,300 + $200 tx fees = $2,500$700–$1,500 + dev opsSelf-hosted*$500K$2,300 + $0 tx (Payments)$1,500–$3,500 + dev opsShopify Plus$1M$2,300 flat$3,000–$6,000 + dev opsShopify Plus$5M$2,300 flat$6,000–$12,000 + dev opsShopify Plus$10M+$2,300 flat$8,000–$18,000 + dev opsContext-dependent* Self-hosted wins on raw infra cost but requires $3,000–$8,000/mo in DevOps/engineering time. Add that and Shopify Plus wins below ~$2M GMV for most teams.
Transaction fees are waived with Shopify Payments. Engineering time estimate: 0.25–0.5 FTE for infrastructure management at $100K–$1M GMV range.

The math shifts above $10M GMV where Shopify Plus transaction processing costs (even at 0%) and platform limitations in catalog complexity, checkout customization, and international market handling push large retailers toward Commercetools, SFCC, or fully custom stacks on AWS or GCP. The e-commerce cloud cost management guide covers the cost implications of headless vs monolithic architectures in more detail.

What Shopify Plus includes that self-hosted doesn't

  • PCI DSS Level 1 compliance (saves $10K–$40K/year in audit and tooling)
  • Global CDN with 200+ edge locations (replaces $500–$2,000/month in CDN spend)
  • DDoS mitigation and WAF (replaces AWS Shield Advanced at $3,000/month)
  • Shopify Payments with no transaction fee (saves 0.5–2% on payment processing)
  • 99.99% uptime SLA with no engineering effort required

Below $2M GMV, Shopify Plus almost always wins on total cost of ownership when engineering time is included. Above $5M GMV, self-hosted becomes cost-competitive only if the team already has cloud infrastructure expertise and the workload justifies Savings Plans at scale.

AWS vs Azure vs GCP for e-commerce

All three major clouds support production e-commerce workloads. The differences that matter for online retail are managed database pricing, CDN integration, search service availability, and the ecosystem of third-party integrations. Here's how they compare on the services e-commerce teams actually use.

AWS vs Azure vs GCP: E-Commerce Service ComparisonService / CategoryAWSAzureGCPCompute (2 vCPU, 8 GB)c6g.xlarge $0.136/hrD2s v5 $0.096/hrc3-standard-4 $0.142/hrManaged DB (2 vCPU, 16 GB)db.r6g.large $0.26/hrGP_Gen5_2 $0.21/hrdb-n1-highmem-2 $0.21/hrCDN egress (first 10 TB)CloudFront $0.085/GBAzure CDN $0.081/GBCloud CDN $0.080/GBManaged Redis (13 GB)r6g.large $0.166/hrC3 $0.139/hrM2 $0.192/hrManaged SearchOpenSearch $0.24/hr+Cognitive Search $10/unit/moVertex AI Search (custom)Object StorageS3 $0.023/GBBlob $0.018/GBGCS $0.020/GBWAF (1M requests)$0.60 + rules$0.44 + policies$0.75 per M reqPrices as of March 2026, US East regions. On-demand rates. Source: AWS, Azure, GCP public pricing pages.
Azure leads on raw compute and database pricing in most instance classes. AWS has the largest e-commerce ecosystem and deepest managed service coverage. GCP has the cheapest CDN egress at scale.

AWS: best ecosystem, highest default cost

AWS has the broadest coverage of services used in e-commerce: CloudFront, ElastiCache, OpenSearch, SageMaker for recommendations, Aurora Serverless v2 for variable checkout load, and the deepest integration with Shopify, Magento, and WooCommerce plugins. On-demand pricing is the highest of the three major clouds, but Savings Plans reduce compute costs by 30–37% and Spot instances reduce batch costs by 70–90%. At $1M+ GMV, most AWS e-commerce stacks run on Savings Plans for the always-on tier and spot for batch — effective pricing drops below Azure list rates.

Azure: lower list prices, strong for Microsoft-adjacent stacks

Azure compute list prices are 10–30% cheaper than AWS for equivalent instance classes (D-series vs c6g), and Azure SQL Hyperscale offers auto-scaling storage that eliminates database provisioning decisions. Azure is the natural choice for stores running on .NET, Dynamics 365 Commerce, or with existing Microsoft enterprise agreements that include Azure credits. Azure Hybrid Benefit extends Windows Server licenses to the cloud, saving an additional 40–50% on Windows-based application tiers.

GCP: cheapest CDN, best for data-intensive workloads

Google Cloud CDN charges $0.08/GB for the first 10 TB — slightly cheaper than CloudFront and Azure CDN. Sustained use discounts apply automatically to Compute Engine without reservation commitments, which suits e-commerce's variable load pattern. BigQuery and Looker integrations make GCP the strongest choice for stores with significant analytics and personalization workloads (product recommendation models, A/B testing infrastructure, customer lifetime value analysis). GCP's e-commerce ecosystem support (third-party plugins, Magento hosting guides, community tooling) is thinner than AWS.

Recommendation by stack

  • WooCommerce / PHP stack: AWS (deepest plugin ecosystem) or Azure (lower compute cost)
  • Headless Next.js + commerce API: AWS (Vercel + AWS backend) or GCP (Firebase + GCP backend)
  • .NET / Dynamics Commerce: Azure (native integration, Hybrid Benefit)
  • Data-heavy personalization: GCP (BigQuery, Vertex AI, Looker)
  • Multi-cloud / vendor-neutral: Cloudflare Workers + any provider for edge; AWS for primary

Black Friday scaling costs

Black Friday is the most expensive single event in the e-commerce cloud calendar — and the most common source of post-event billing surprises. Traffic spikes of 5–10x normal volume arrive over 4–6 hours, auto-scaling triggers at the compute and database layers, CDN origin pull rates spike as cache warm-up lags behind traffic, and WAF rule evaluation at 10x request rate generates 10x the WAF cost. AWS data shows Black Friday can deliver 8x normal order volume for mid-size retailers (AWS Retail, 2025).

Black Friday Incremental Cloud Costs (Above Baseline)Store SizeExtra ComputeExtra CDN/EgressTotal Extra / EventSmall ($100K GMV)$150–$400$80–$200$300–$700Mid ($500K GMV)$500–$1,200$300–$600$900–$2,100Large ($2M GMV)$1,500–$3,500$800–$1,800$2,800–$6,500Enterprise ($10M GMV)$5,000–$12,000$2,000–$5,000$8,000–$20,000Estimates cover Black Friday + Cyber Monday (5-day window). Assumes 5–8x traffic spike. Auto-scaling on-demand, no Spot for peak web tier.
The biggest hidden cost is auto-scaling groups that don't scale back in for 48–72 hours after peak — adding an extra 15–25% to the event total.

The scale-in problem

Auto-scaling groups scale out quickly — that's the point. But scale-in is intentionally conservative: AWS default cooldown periods are 300 seconds, and teams often set scale-in policies with long evaluation windows to avoid thrashing. After a Black Friday event, it's common to find auto-scaling groups sitting at 12–16 instances for 3–4 days when normal load needs 4. At $0.17/hr per c6g.xlarge, 12 extra instances for 72 hours costs $148 — small per-instance, but multiplied across app tier, worker tier, and potentially a second region it reaches $500–$1,500 in unnecessary post-event spend.

Pre-warming strategy

The alternative to reactive auto-scaling for a known traffic event is pre-warming: scaling out manually 2–4 hours before the sale, running at full capacity for the event window, then aggressively scaling in immediately after. Pre-warming eliminates the risk of scale-out lag (instances take 3–5 minutes to be healthy in a target group) and gives you a defined end time to scale back from. For database pre-warming, enable Aurora Auto Scaling with a maximum capacity set for the event and a scheduled action to reduce it 6 hours after the sale ends.

CDN pre-warming for large catalogs

CloudFront cache cold-start during a high-traffic event means the first wave of requests hits the origin at full rate — potentially overloading application servers before auto-scaling has responded. Pre-warm by crawling your top 1,000 product pages through the CDN origin URL 30 minutes before the sale. CloudFront supports cache warming for custom origins; Fastly and Cloudflare both have explicit pre-warming APIs. A warmed cache at the start of a Black Friday event reduces origin load by 60–70% during the critical first 15 minutes.

Optimization tips

The highest-ROI e-commerce cloud optimizations require no downtime, no architecture changes, and deliver results within the first billing cycle. Start with the items that apply to your current GMV tier — then use the e-commerce cost calculator to quantify the savings before committing engineering time. For a broader look at how e-commerce cloud cost management compares to other industries, see cloud cost management for e-commerce.

E-Commerce Cloud Cost OptimizationsOptimizationMonthly SavingsEffortCompute Savings Plan (1-year, no-upfront)$150–$600LowDatabase right-sizing (off-peak instance)$150–$620LowCDN cache TTL / cache-key tuning$80–$400LowWebP image conversion at upload$60–$300MediumSpot instances for batch jobs$50–$300MediumOpenSearch / Elasticsearch resize$100–$300LowS3 Intelligent-Tiering for old catalog$20–$120LowEstimates based on $1,500–$5,000/mo e-commerce stacks on AWS. Actual savings vary by configuration.
Implementing all seven changes can recover 30–45% of a typical mid-size e-commerce cloud bill. Database right-sizing and Savings Plans deliver the fastest payback.

Compute Savings Plans

Every e-commerce store has always-on compute: web servers for availability, a database primary for writes, a cache layer for sessions. Cover that baseline with a 1-year Compute Savings Plan — which applies to any EC2 instance family, size, and region — and save 30–37% on covered compute with zero architectural changes. No-upfront plans require no capital commitment; savings begin in month one. At a $1,000/month compute baseline, a Savings Plan saves $300–$370/month.

Database right-sizing between seasons

The correct database instance class for January is not the correct class for November. Schedule a database resize to a smaller instance class each January and a resize back up in October. RDS supports Multi-AZ instance modification with minimal downtime (2–5 minutes for a failover). Going from db.r6g.2xlarge to db.r6g.large saves $626/month and takes 20 minutes of engineering time. Repeat this each year and capture $5,000–$7,000 in annual database savings.

CDN cache rate improvement

Most e-commerce CDN configurations have a cache hit rate of 65–80%. Tuning TTLs, removing non-essential query string parameters from cache keys, and addingVary: Accept-Encodingheaders to static assets pushes hit rate to 88–94%. Each percentage point of hit rate improvement reduces origin pull volume — and both CDN transfer costs and origin compute load — proportionally. A store serving 20 TB/month through CloudFront saves $17/month per percentage point of cache improvement. Going from 75% to 90% saves $255/month.

Spot for batch and background

Order export jobs, inventory sync, search index rebuilds, catalog feed generation for Google Shopping, and email list processing are all interruptible. Move them to AWS Spot or Azure Spot VMs with SQS retry queues and save 70–90% on that compute. AWS Batch and ECS with Spot capacity providers handle interruption retry automatically. A background worker fleet that costs $400/month on-demand costs $40–$80/month on Spot with equivalent throughput.

Egress and CDN architecture

Moving image origins to CloudFront with S3 as the origin (instead of EC2 or a separate image server) eliminates EC2 egress charges ($0.09/GB) in favor of S3-to-CloudFront transfer, which is free. CloudFront-to-internet egress at $0.085/GB is cheaper than direct EC2 egress. For cross-region replication or multi-CDN setups, the cloud egress costs guide covers how to minimize data transfer fees across AWS, Azure, and GCP.

Affordable hosting for an online store

For most stores, managed hosting costs less than the engineering time of running your own — these fit different budgets.

  • Cloudways — managed cloud hosting tuned for WooCommerce/Magento, pay-as-you-go.
  • Kinsta — premium managed WordPress/WooCommerce with strong performance.
  • DigitalOcean — cheapest DIY route — App Platform or a $6–$12 droplet if you self-manage.

Some provider links above are affiliate links — we may earn a commission at no extra cost to you. It never affects our pricing data.

Frequently asked questions

How much does e-commerce hosting cost on AWS?

Self-hosted e-commerce on AWS costs $200–$300/month at $10K GMV, $1,400–$1,500/month at $100K–$500K GMV, $3,500–$4,000/month at $1M GMV, and $11,000–$13,000/month at $10M+ GMV. These figures include compute, database, CDN, cache, and storage but exclude payment processing, third-party SaaS (search, recommendations), and engineering overhead.

Is Shopify Plus cheaper than self-hosted AWS?

For most stores below $2M GMV, yes — when engineering time is included. Shopify Plus at $2,300/month covers hosting, CDN, PCI compliance, and support. A self-hosted AWS stack at the same GMV costs $1,500–$4,000/month in infrastructure plus $3,000–$8,000/month in DevOps engineering time. Above $5M GMV, self-hosted becomes cost-competitive if the team already has cloud expertise and uses Savings Plans on always-on capacity.

Which cloud is best for e-commerce: AWS, Azure, or GCP?

AWS has the largest e-commerce ecosystem and deepest managed service coverage, making it the default choice for WooCommerce, Magento, and headless Next.js stacks. Azure is the best fit for .NET and Microsoft-adjacent stacks, with 10–30% lower list compute prices and Hybrid Benefit savings. GCP has the cheapest CDN egress at scale and the strongest analytics tooling (BigQuery, Vertex AI) for personalization-heavy stores. Most large e-commerce operations use AWS; Azure is a strong alternative for Microsoft shops.

How much does Black Friday cost in extra cloud spend?

Incremental cloud costs for Black Friday + Cyber Monday (5-day window) range from $300–$700 for a $100K GMV store to $8,000–$20,000 for an enterprise-scale retailer. The biggest variable is how quickly auto-scaling groups scale back in after the event — groups that stay at peak capacity for 72 hours post-sale add 15–25% to the total event cost. Pre-warming CDN and scheduling aggressive scale-in actions immediately after the sale window closes reduces that post-event waste significantly.

What is the biggest waste in e-commerce cloud bills?

Database over-provisioning is the single largest recoverable waste item for stores above $100K GMV. Running a db.r6g.2xlarge year-round for Black Friday capacity costs $626/month more than a correctly-sized off-peak instance. CDN cache miss rates and image serving without WebP conversion are the second and third largest sources of recoverable spend. Organizations waste 27% of cloud spend on average (Flexera 2025); e-commerce teams with seasonal workloads often exceed that.

How do I estimate my e-commerce hosting costs?

Start with your GMV tier to get a baseline range from the table above. Then adjust for stack specifics: catalog size (image storage and CDN volume), search infrastructure (self-hosted vs SaaS), geographic regions served (multi-region multiplies database and CDN costs), and whether you use Shopify Plus or a self-hosted platform. The e-commerce hosting cost calculator lets you input your specific configuration and get provider-by-provider cost estimates across AWS, Azure, and GCP.

Estimate your cloud costs — for free

Compare AWS, Azure, and GCP pricing side by side with our free calculator, and dig into the guides to learn how to cut cloud waste. No sign-up required.