DEV Community

Cover image for Cloud Pricing Comparison: AWS vs. Azure vs. Google Cloud Platform in 2022

Posted on • Originally published at

Cloud Pricing Comparison: AWS vs. Azure vs. Google Cloud Platform in 2022

If you’re considering moving to the public cloud or optimizing the choice for your next project, picking between AWS, Azure, and Google Cloud Platform can be a daunting task.

They all offer flexible compute, storage, and networking combined with everything engineers love about the cloud: self-service, instant provisioning, and autoscaling. 

But each provider differs in key areas that may have a massive impact on your cloud bill. 

Selecting one vendor over another comes down to knowing what your teams, applications, and workloads need. You need to fully understand your requirements before exploring the cloud landscape.

This article covers storage and compute pricing across AWS, Azure, and Google Cloud to show you the nuanced differences between these providers. 

Cloud landscape today: What are the unique strengths of AWS, Azure, and Google Cloud Platform?


Companies choose to build their applications on AWS because of its breadth and depth of services. The rich array of tools, including databases, analytics, management, IoT, security, and enterprise applications, makes AWS the right solution for many teams. No wonder AWS has the most significant slice of the cloud market.


According to the Flexera 2022 State of the Cloud Report, Azure has slightly surpassed AWS in the percentage of enterprises using it (80% Azure vs. 77% AWS).

Azure also offers various services for enterprises, and Microsoft’s longstanding relationship with this segment makes it an easy choice for some customers. Azure, Office 365, and Microsoft Teams enable organizations to provide employees with enterprise software while also leveraging cloud computing resources. 

Google Cloud Platform

Azure and AWS have strong machine learning capabilities. But Google Cloud Platform stands out thanks to its almost limitless internal research and expertise – the magic that has been powering the search engine giant throughout the years. 

What makes GCP different is its role in developing various open source technologies. We’re talking especially about containers and Google’s central role in building Kubernetes for orchestration and Istio service mesh, today practically industry-standard technologies. 

Google’s culture of innovation lends itself really well to startups and companies that prioritize such approaches and technologies.

Billing in AWS vs. Azure vs. Google Cloud Platform

In addition to per-minute billing, AWS, Azure, and Google Cloud support per-second billing for various services. AWS first introduced per-second billing in 2017 for EC2 Linux-based instances and EBS volumes - but today, it applies to many other services. 

Per-second billing works with a minimum 60-second limit in AWS. Azure allows per-second charges on its cloud platform, but this billing model isn’t available for all instances - mostly container-based ones. 

Google Cloud followed AWS in the introduction of per-second billing and now offers it for more than just instances based on Linux. This form of billing applies to all VM-based instances.

Cloud storage pricing comparison

How do these major cloud providers differ in terms of storage pricing? 

Here’s a comparison of prices in similar regions: AWS US East (Northern Virginia), Azure East US, and Northern Virginia (us-east4) in Google Cloud Platform.

Cloud provider Storage(GB/Month)
Amazon S3 $0.023 
Azure $0.021 
Google Cloud Platform $0.023

It’s clear that these three cloud giants compete closely with one another and have set similar price ranges for storage services, with Azure standing out as the most cost-effective alternative. However, be sure to check out other cost dimensions such as data transfer or operations charges before picking the storage service.

Also, pay attention to the provider’s approach to pricing changes.

Google Cloud Platform recently introduced significant price increases across various core services around storage. Price hikes may affect other services and cloud providers considering the current challenges like inflation rates running high around the world and supply chain issues. 

Compute pricing comparison

Compute often ends up racking up a cloud bill, but it also presents the greatest opportunity for cost optimization.

We prepared this case study to show the incredible impact optimizing compute costs can have on your bottom line.

Comparing cloud pricing – our example setup

To understand the pricing differences better, we’re going to compare virtual machines within similar regions and with the same operating system.

The services analyzed are:

  • AWS - Amazon EC2.
  • Azure - Virtual Machines.
  • Google Cloud Platform - Compute Engine. 

Our example setup:

  • Region: AWS US East (Northern Virginia), Azure East US, and Northern Virginia (us-east4) in Google Cloud Platform.
  • Operating System: Linux. 
  • vCPUs: 4.

Types of instances/VMs we will analyze:

  • General purpose.
  • Compute optimized.

We picked instances with four vCPUs and similar RAM (the only exception is the compute optimized machine from Google Cloud Platform). 

Here are the instances/VMs we selected for our cloud pricing comparison:

Cloud provider Instance type vCPU RAM (GB)
AWS general purpose t4g.xlarge 4 16
AWS compute optimized c6a.xlarge 4 8
Azure general purpose B4ms 4 16
Azure compute optimized F4s v2 4 8
Google Cloud Platform general purpose e2-standard-4 4 16
Google Cloud Platform compute optimized c2-standard-4 4 16

AWS vs. Azure vs. Google Cloud Platform: Comparing On-Demand pricing 

Here’s the hourly On-Demand pricing of each of these virtual machines across AWS, Azure, and Google Cloud Platform.

Cloud pricing based on On-Demand rates

General purpose

Cloud provider Instance type Price
AWS t4g.xlarge $0.1344
Azure B4ms $0.166
Google Cloud Platform e2-standard-4 $0.150924

Compute optimized

Cloud provider Instance type Price
AWS c6a.xlarge $0.153
Azure F4s v2 $0.0846
Google Cloud Platform c2-standard-4 $0.2351


  • While Azure is the most expensive choice for general purpose instances, it’s the most cost-effective alternative to compute optimized instances.
  • Google Cloud Platform offers the highest price for compute optimized instances, but this machine has double the RAM of alternatives from AWS and Azure. 

A note about chips and processors 

Providers roll out virtual machines with different hardware and performance characteristics. As a result, you might end up with an instance type that provides strong (and expensive!) performance your teams don’t actually need. 

Benchmarking is one way to see what you’re really paying for: you can run the same workload on each machine and check its performance characteristics. 

This approach might help you discover something interesting, just like we did. The chart below shows CPU operation in AWS (t2.2xlarge with eight virtual cores) at varying times after several idle periods. Would you expect such unpredictable CPU behavior within a single cloud provider?

AWS CPU behavior

Source: CAST AI

The 2021 Cloud Report from CockroachLabs used this method to evaluate 54 AWS, Azure, and Google Cloud machines. They ran over 1000 microbenchmark tests to evaluate metrics such as CPU, network, storage, and TPC-C performance.  

One of their conclusions was that Google performs better than AWS and Azure. GCP instances achieved the best single-core CPU performance and the greatest throughput at every level. While Google’s general purpose machines achieved the highest level of raw throughput, they were also the least cost-efficient option.

AWS vs. Azure vs. Google Cloud: Comparing discounted pricing with a 1-year upfront commitment

All three providers offer price discounts if you commit to using them for at least one year. This pricing model is called Reserved Instances in AWS, Reserved Savings in Azure, and Committed use discounts in Google Cloud. 

The following tables compare the discounted pricing among AWS, Azure, and Google Cloud with a one-year commitment period with an all upfront payment.   

Cloud pricing with a 1-year commitment

General purpose

Cloud provider Instance type Price Discount
AWS t4g.xlarge $0.079 41%
Azure B4ms $0.0974 41%
Google Cloud Platform e2-standard-4 $0.095092 63%

Compute optimized

Cloud provider Instance type Price Discount
AWS c6a.xlarge $0.094 38%
Azure F4s v2 $0.10 41%
Google Cloud Platform c2-standard-4 $0.13156 63%


  • The general-purpose instances with a 1-year commitment get a similar discount rate in AWS and Azure. Still, AWS offers a cheaper alternative.
  • In both general purpose and compute optimized instances, Google Cloud Platform offers the greatest discounts - still, it’s not the cheapest option. Note: the compute optimized GCP instance we picked has 16 GB RAM, not 8 GB like the other instances.

Take a look here if you’re unsure how Reserved Instances work and whether they really bring discounts: Do AWS Reserved Instances and Savings Plans really reduce costs?

Here’s how CPU bursting can drive your costs down 

All cloud providers in question offer burstable performance instances. These instances offer you a baseline level of CPU performance with the option to burst to a higher level whenever your workload requires that.

Burstable performance instances are suitable for low-latency interactive applications, microservices, small and medium databases, or product prototypes.

Our research into AWS burstable instances showed that if you load your instance for 4 hours or more per day on average, it’s better pick a non-burstable one for cost-effectiveness. However, if you run an e-commerce business that may receive a large stream of visitors once in a while, a burstable instance is often a good match.

AWS vs. Azure vs. Google Cloud: Comparing Spot Instances/Preemptible VMs

Another way to snatch some discounts and reduce your cloud bill is to take advantage of capacity that’s currently not being used by anyone else. Cloud providers sell excess capacity at incredible discounts. AWS Spot instances offer up to 90% off the On-Demand rates, Preemptible VMs in Google can be even 80% cheaper than regular ones.

Here’s a quick overview of the potential savings you can get for these instances in the US East (Northern Virginia) region:

Cloud pricing with Spot Instances/Preemptible VMs

General purpose

Cloud provider Instance type Price Discount
AWS t4g.xlarge $0.0403 ~30%
Azure A4 v2* $0.0638 ~67%
Google Cloud Platform e2-standard-4 $0.045272 ~30%
*Note that we changed the machine type to a similar one with 4 vCPU and 8 GB RAM. Why? Because Azure’s machines in Bs-series aren’t available as spot instances!

Compute optimized

Cloud provider Instance type Price Discount
AWS c6a.xlarge $0.068 44%
Azure F4s v2 $0.0259 ~85% 
Google Cloud Platform c2-standard-4 $0.0505 24%


  • There’s no denying that Azure offers the greatest discounts for both general purpose and compute optimized instances. The pricing of the compute optimized F4s v2 is very attractive.
  • Google Cloud Platform doesn’t offer such impressive discounts - in both cases, we have 30% or less.

To take advantage of spot instances, you need to ensure that your application can handle interruptions. How? Here’s a step by step guide: Spot Instances: How to reduce AWS, Azure, and GCP costs by 90%

Optimizing cloud costs is a real-time activity

Spot instance prices may be different from one minute to the next. So we once decided to use our own platform to analyze our setup. We looked for the most cost-effective spot instance alternatives for a machine with 8 CPUs and 16 GB. 

CAST AI suggested that we run our workload on an instance called INF1. But this powerful GPU instance would usually cost a lot of money. So, why did CAST AI pick it? 

We checked the pricing and got this:

Spot instance pricing history

As it turned out, at that time, INF1 just happened to be cheaper than the usual general purpose instances we used. If we just stuck to our standard practices, we would have never guessed to look in this category and missed out on this incredible gem.

That’s why you need automation to optimize cloud costs

Even if you outsource the management of your cloud expenses to DevOps or FinOps specialists, you’re probably spending twice as much as you should. It’s high time you took control of your cloud bill with an automated solution.

CAST AI is a great place to start your path towards cost-cutting if your teams work with Kubernetes. The solution automatically creates and implements tactics for guaranteed savings without any manual and repetitive work for your engineers.

You can run a free cluster savings report and see the instance type and resource amount CAST AI would automatically implement if it managed your cluster.

Top comments (2)

mmuller88 profile image
Martin Muller

Cool comparison ::)!

dallasapper profile image
dallasapper • Edited

That's a cool comparison indeed! It turns out the Google Cloud platform is not the best one regarding prices. It will probably make me reconsider our company's strategy and maybe merge to Azure or AWS. Which one is the most effective?

You are right about the automated solution, and I will direct this question to our outsource specialists from Esynergy. We have been working together for more than three years, and it has been fine so far. I am going to ask them what they think about merging to another cloud platform and how much it will cost us.