Azure vs AWS: which is cheaper for your VM?

Pick the vCPU, memory and region you need. You get the cheapest Azure VM and the cheapest AWS EC2 instance that fit, side by side, with the monthly difference.

4 vCPU, 16 GiB, Linux, US East (N. Virginia)

Both cost the same.

Azure

$125.56/month

D4as_v5

4 vCPU · 16 GiB · East US

$49.58/month with a 3-year reservation

Other Azure sizes →

AWS

$125.56/month

m5a.xlarge

4 vCPU · 16 GiB · US East (N. Virginia)

$54.02/month reserved for 3 years

Other AWS types →

Cheapest size with at least 4 vCPU and 16 GiB on each cloud, Intel or AMD (include Arm). Public USD list prices, 730 hours a month, updated 17 Nov 2026. Disks, traffic and discounts not included.

Free API

The same answer as JSON. No key, no sign-up; up to 60 requests a minute.

curl "https://cld2day.com/api/compare/azure-vs-aws?vcpu=4&memory=16&region=us-east-1"

Parameters: vcpu, memory (GiB), os (linux | windows), region (AWS code such as eu-central-1, Azure name such as germanywestcentral, or a city such as Frankfurt), arm (true | false). AI assistants can use the MCP server tool compare_azure_aws.

Frequently asked questions

Is Azure or AWS cheaper for virtual machines?

It depends on the size, the region and the operating system, and the gap is often only a few percent. Enter the vCPU and memory you need and the region you would deploy to: the page shows the cheapest Azure VM size and the cheapest EC2 instance type that fit, with their monthly list prices side by side.

How are the two sizes picked?

On each cloud it takes the cheapest current size with at least the vCPU and memory you asked for, in the nearest pair of regions (for example AWS eu-central-1 and Azure Germany West Central, both Frankfurt). Burstable sizes are left out, and so are Arm sizes unless you include them.

Which prices are compared?

Public USD list prices for Linux or Windows: Azure pay as you go and AWS On-Demand, for 730 hours a month. The 3-year line is an Azure reservation and an AWS Standard Reserved Instance with no upfront payment. Disks, network traffic, support plans and negotiated discounts are not included. Both price lists are refreshed every Monday.

Can I use the comparison in my own app?

Yes. The same answer is available as JSON from https://cld2day.com/api/compare/azure-vs-aws, free and without a key, and AI assistants can call it through the cld2day MCP server as compare_azure_aws.