Illia Khomenko
Writing

Windows vs Linux on EC2: what the Windows licence adds per vCPU

Windows Server on EC2 costs $0.046 per vCPU-hour on top of the Linux rate, about $403 a year for every vCPU. It nearly doubles the price of a general-purpose instance, and no Savings Plan discounts it.

AWS charges $0.046 per vCPU-hour for Windows Server on EC2. It's the same rate on every current-generation family I checked, m7i, c7i, r7i and m6i, and it's added to the Linux price of the instance.

Per vCPU that's $33.58 a month, or about $403 a year. Because the rate is flat and the compute price is not, the licence is a bigger share of the bill on cheaper instances.

What it adds, instance by instance

Here is the m7i family in us-east-1, on demand.

InstancevCPULinux / hourWindows / hourLicence / monthLicence / year
m7i.large2$0.1008$0.1928$67.16$806
m7i.xlarge4$0.2016$0.3856$134.32$1,612
m7i.2xlarge8$0.4032$0.7712$268.64$3,224
m7i.4xlarge16$0.8064$1.5424$537.28$6,447
m7i.8xlarge32$1.6128$3.0848$1,074.56$12,895

On m7i Windows adds 91% to the Linux rate. On compute-optimised c7i.xlarge it adds 103%, so the licence costs more than the machine. On memory-optimised r7i.xlarge it adds 70%. Burstable t3 is the one exception I found: a t3.xlarge pays $0.0736 an hour for Windows, not $0.184.

A fleet of twenty m7i.xlarge application servers pays $2,686 a month for Windows, which is $32,237 a year.

Why you don't see it

On a standard Windows instance the licence has no line of its own. It's inside the hourly rate, so Cost Explorer shows one EC2 number and nothing tells you half of it is Microsoft's.

The Cost and Usage Report does separate it, by operation. RunInstances is Linux, RunInstances:0002 is Windows, RunInstances:0006 is Windows with SQL Server Standard and RunInstances:0102 is Windows with SQL Server Enterprise. Group EC2 instance cost by operation and you have the split:

SELECT line_item_operation,
       SUM(line_item_usage_amount)   AS hours,
       SUM(line_item_unblended_cost) AS cost
FROM cur
WHERE line_item_product_code = 'AmazonEC2'
  AND line_item_usage_type LIKE '%BoxUsage%'
GROUP BY 1
ORDER BY cost DESC;

In Cost Explorer, grouping by Platform gets you most of the way without a query.

A Savings Plan doesn't touch it

A Savings Plan or a Reserved Instance discounts the compute part of a Windows instance. The licence is charged in full. AWS says it plainly in its guidance for Microsoft workloads: it doesn't offer a discount on the licence price.

So the percentage you save on Windows is always lower than the headline. In AWS's own worked example, a small licence-included estate on a three-year, no-upfront Savings Plan saves 18.5%. The same guide shows 46% for bring-your-own-licence hosts over the same term.

What actually reduces it

The biggest saving is running the workload on Linux. Modern .NET, 8 or 10, runs there, and for most services the move is a new base image and a pipeline change. The same m7i.xlarge goes from $0.3856 to $0.2016 an hour, 48% less. On Graviton, m7g.xlarge is $0.1632, which is 58% less than the Windows instance you started with. I wrote about that second step in .NET on Graviton.

For the fleet of twenty, that's $5,630 a month on Windows, $2,943 on Linux and $2,383 on Graviton.

Where Windows stays, turn off the vCPUs you don't use. Since October 2025 EC2 supports Optimize CPUs on licence-included Windows and SQL Server instances. You reduce the number of active vCPUs, keep the memory, and pay the licence only for the vCPUs that are on. AWS's example is an r7i.8xlarge cut from 32 vCPUs to 16. For Windows alone that's $537 a month. It works with On-Demand and Savings Plans. With Reserved Instances the discount may not apply, so check before you change anything.

Shrinking the instance helps for the same reason: the licence follows the vCPU count. An over-provisioned Windows box wastes compute and licence in the same proportion, so halving it saves both.

Non-production can be switched off outside working hours. Windows instances are billed per second, so a test environment that runs twelve hours a day on weekdays runs 60 hours out of 168, which is 64% less compute and 64% less licence.

I wouldn't count on bringing your own licences. Windows Server BYOL on AWS needs Dedicated Hosts and licences that qualify under Microsoft's terms. For a team that has always bought Windows through AWS, that usually means none.

What has to stay on Windows

.NET Framework applications stay on Windows until someone ports them, and so does anything tied to IIS modules, Windows authentication or COM. That's a real constraint.

What I check is how much of the Windows fleet is actually in that group. In most estates I look at, part of it is .NET Framework and the rest is modern .NET that was deployed to Windows because the first service was.

Do this before you commit. A Compute Savings Plan follows you from Windows to Linux, but a Standard Reserved Instance is tied to the platform. I covered the order in Rightsizing theatre.

Prices above are AWS list prices for us-east-1, on demand, November 2026.

If nobody on the team can say how many of your Windows vCPUs need to be Windows, that's where an audit starts.

Short answers

How much does a Windows Server licence cost on EC2?

$0.046 per vCPU-hour on current-generation instances in us-east-1, on top of the Linux rate for the same instance. That is $33.58 a month or about $403 a year per vCPU. An m7i.xlarge with 4 vCPUs pays $134.32 a month for Windows.

Do Savings Plans or Reserved Instances discount the Windows licence?

No. The commitment discounts the compute part of the rate and the licence is charged in full. AWS says so in its own guidance for Microsoft workloads: it doesn't offer a discount on the licence price.

Where is the Windows licence on the AWS bill?

It has no line of its own on a standard instance. It is inside the hourly rate. In the Cost and Usage Report, Windows usage has the operation RunInstances:0002 and Linux usage has RunInstances, so grouping EC2 cost by operation separates the two.

How do I stop paying it?

Run the workload on Linux. Modern .NET runs there, and the same m7i.xlarge costs 48% less without Windows, or 58% less on Graviton. Where Windows has to stay, reduce the active vCPUs with Optimize CPUs, shrink the instance, and switch non-production off outside working hours.

Why is a Windows EC2 instance more expensive than Linux?

Because the Windows Server licence is built into the hourly rate. An m7i.xlarge costs $0.2016 an hour on Linux and $0.3856 on Windows in us-east-1. The $0.184 difference is the licence for 4 vCPUs, so the Windows instance costs 91% more.

Is Windows Server on EC2 free?

No. On licence-included instances the licence is charged inside the hourly rate, at $0.046 per vCPU-hour, so there is no separate invoice from Microsoft. Bringing your own Windows Server licence is only possible on dedicated infrastructure, under Microsoft's licensing rules.