Illia Khomenko
Writing

.NET on Graviton (ARM64): how much cheaper it is and whether your app runs

Modern .NET on Linux runs on Graviton after a recompile: publish for linux-arm64 and build a multi-arch image. An m7g.xlarge costs 19% less than an m7i.xlarge before any performance gain. .NET Framework can't make the move.

Most .NET services I see on AWS run on the instance family someone picked on day one. Usually that's x86, an m5 or m6i, because that was the default in the console, the Terraform example or the Dockerfile someone copied. Since then .NET has gone cross-platform, ARM64 has become a first-class target and AWS has released four generations of Graviton. Most of those services are still on x86.

For modern .NET on Linux, moving is a recompile and a redeploy.

What it's worth

On EC2, an m7g.xlarge (Graviton3) costs $0.1632 an hour on demand in us-east-1, and an m7i.xlarge costs $0.2016. Same vCPU count, same memory, 19% cheaper before you count any performance difference. AWS puts Graviton's price-performance at up to 40% better than comparable x86. Its own .NET 8 benchmarks on Graviton3 show 23% to 86% more requests per dollar, depending on the workload.

On Lambda, arm64 duration costs 20% less than x86, for the same function and the same memory setting. On Fargate it's about the same discount. For a .NET Lambda that's mostly a config change.

Neither number looks like much per hour. Across twenty services running all year it adds up.

What changes

For a .NET 8 or later service already running on Linux, most of the migration is four small changes.

The build target becomes dotnet publish -r linux-arm64 instead of linux-x64. If the project doesn't pin a runtime identifier, there may be nothing to change.

Microsoft's official .NET images are multi-arch, so if the Dockerfile uses mcr.microsoft.com/dotnet/aspnet:8.0, building it with docker buildx --platform linux/arm64 (or both platforms) is enough. What usually breaks is a base image that was x86-only, or a RUN line that downloads an amd64 binary by name.

Cross-building ARM64 under emulation works but it's slow. GitHub, GitLab and CodeBuild all offer native ARM64 runners now, usually cheaper per minute as well.

Then the instance type or architecture field changes, which is one line in Terraform, CDK or the task definition.

What can bite

.NET Framework runs on Windows only, which means x86 only. A service still on Framework has to move to modern .NET first, and that's a much larger project. It's also why one Framework dependency keeps an entire estate on the expensive side, paying the Windows licence on x86 with no way onto Graviton.

Native dependencies are the next thing to check. Look through the NuGet packages for anything that ships native binaries: image processing, PDF rendering, compression, database drivers for less common engines, older APM agents. Most popular packages have shipped linux-arm64 builds for years. The one that hasn't is usually something nobody has upgraded in years.

Last, scripts, sidecars and agents sometimes download x86_64 binaries by name. grep for amd64 and x86_64 across the repo and the infrastructure code before you start.

How to switch without guessing

Don't move the whole fleet based on a benchmark someone else ran. Pick one stateless service with real traffic and do this:

  1. Build it for ARM64 and run the full test suite on an ARM64 runner.
  2. Deploy it next to the x86 version behind the same load balancer and give it a slice of traffic.
  3. Compare p50 and p99 latency, error rate and CPU at the same request rate for a few days.
  4. If the numbers hold, move the rest of the service, then the next one.

Most services hold. Some get faster, especially the ones that spend their time in the runtime and GC and little of it waiting on I/O. Now and then one gets slower, and this way you find that out on one service with a slice of traffic.

Do it before you commit

If you're about to buy a Savings Plan, run this first. A Compute Savings Plan follows you from x86 to Graviton, but an EC2 Instance Savings Plan or a Standard Reserved Instance is tied to the instance family you bought. Moving after you buy means paying for x86 capacity you no longer use, or not moving for three years. I covered that in Rightsizing theatre.

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

If your estate is on .NET 8 and still on x86, a one-week audit is mostly about putting a number on that recompile.

Short answers

Does .NET run on Graviton (ARM64)?

Yes. .NET 8 and later run natively on linux-arm64, and Microsoft's official .NET container images are multi-arch. .NET Framework does not: it runs only on Windows, and Windows on EC2 is x86 only.

How much cheaper is Graviton for a .NET service?

On EC2 in us-east-1, an m7g.xlarge is $0.1632 an hour and an m7i.xlarge is $0.2016, 19% less for the same vCPUs and memory. AWS's own .NET 8 benchmarks on Graviton3 show 23% to 86% more requests per dollar, depending on the workload. On Lambda, arm64 duration is 20% cheaper than x86.

What has to change to move a .NET service to Graviton?

Publish with -r linux-arm64, or don't pin a runtime identifier. Build the image with docker buildx --platform linux/arm64. Check for x86-only base images and native binaries downloaded by name. Then change the instance type or architecture in Terraform, CDK or the task definition.

Should I buy a Savings Plan before moving to Graviton?

Only a Compute Savings Plan follows a workload from x86 to Graviton. An EC2 Instance Savings Plan or a Standard Reserved Instance is tied to the instance family, so move first and commit afterwards.