Web Basics

Serverless Pricing (2026): Vercel, Netlify, Cloudflare, AWS

Serverless pricing compared: how Vercel, Netlify, Cloudflare Workers and AWS Lambda bill functions, with six worked monthly cost examples from list prices.

Nilesh Sharma· · Updated · 17 min read

Four small cloud shapes on one side of a balance scale and stacks of coins on the other, on a warm off-white background
On this page

Serverless pricing looks simple on every pricing page: pay only for what you use. The trouble starts when you try to compare providers. Vercel bills Active CPU and Provisioned Memory. Netlify bills credits. Cloudflare Workers bills CPU milliseconds and ignores waiting time. AWS Lambda bills GB-seconds of wall-clock time. The same app can cost a few dollars on one and many times that on another, and which one wins changes with the shape of your traffic.

This guide is about serverless function hosting for websites and APIs: the code behind your API routes, server-rendered pages, webhooks and AI endpoints. It is not about serverless databases such as Aurora Serverless or serverless data platforms such as Databricks, which use the same word but price completely differently.

I build web apps for founders, and the hosting question always comes up once a prototype starts getting real users. So I built a free Serverless Cost Calculator that runs the four pricing models side by side, and wrote this guide to explain what the numbers mean.

Every price below is an official list price in US dollars, before tax, checked on the providers' own pricing pages and price lists on November 27, 2026: Vercel Functions pricing, Netlify pricing, Cloudflare Workers pricing and AWS Lambda pricing. Vercel prices are for its US East region (iad1) and Lambda prices for US East (N. Virginia) unless I say otherwise. Prices change, so check the official page before you commit.

Quick answer: For function compute alone, AWS Lambda is usually cheapest for small and medium APIs because its free tier (1M requests and 400,000 GB-seconds a month) never expires and there is no platform fee. Cloudflare Workers ($5 a month minimum) is usually cheapest when requests spend most of their time waiting on a database or an AI model, because it bills CPU time only. Vercel Pro and Netlify Pro both cost $20 a month, and that fee includes usage credit, so light apps pay a flat $20. Heavy, long-running requests are where Netlify and Lambda get expensive, since both bill for the whole time a function is running. To see your own numbers, open the Serverless Cost Calculator.

How each provider prices serverless functions

All four charge for two things in some form: how often your code runs and how much compute each run uses. They differ in what "compute" means, and that difference drives almost every result later in this guide.

Serverless function pricing models compared (list prices checked November 27, 2026)
Item Vercel (Pro, iad1) Netlify (credit plans) Cloudflare Workers (Paid) AWS Lambda (us-east-1)
Monthly fee $20 (Pro), includes $20 usage credit $20 (Pro), includes 3,000 credits $5 minimum None
Compute meter Active CPU $0.128/hour + Provisioned Memory $0.0106/GB-hour 10 credits per GB-hour of runtime $0.02 per extra 1M CPU ms (30M included) $0.0000166667 per GB-second (x86)
Request meter $0.60 per 1M invocations 2 credits per 10k web requests $0.30 per extra 1M (10M included) $0.20 per 1M
Is waiting time billed? Memory yes, CPU no Yes No Yes
Free option Hobby: 4 CPU-hours, 360 GB-hours, 1M invocations (non-commercial) Free: 300 credits, hard limit Free: 100k requests/day, 10 ms CPU each 1M requests + 400k GB-seconds every month
Memory per function 2 GB or 4 GB 1 GB default, up to 4 GB on Pro 128 MB 128 MB to 10,240 MB
What happens past free limits Hobby pauses the project Free pauses all projects Requests fail You are billed

The rest of this section explains each column in plain terms.

Vercel: Active CPU plus Provisioned Memory

Vercel Functions run on what Vercel calls Fluid compute. You pay three meters:

  • Active CPU, only while your code is actually executing. If a request takes 500 ms but spends 400 ms waiting for a database, Vercel's docs say you are billed for the 100 ms of CPU, not the full 500 ms. It costs $0.128 per CPU-hour in the US regions.
  • Provisioned Memory, for as long as the function instance is alive, including while it waits on I/O. It costs $0.0106 per GB-hour in the US regions. Functions get 2 GB of memory by default, and Pro can raise that to 4 GB.
  • Invocations, at $0.60 per million on Pro.

The Pro plan's $20 monthly fee includes $20 of usage credit. That credit covers functions, but it is shared with bandwidth, CDN requests and other usage, so you cannot count on all of it going to functions. One instance can also serve several requests at once, which spreads the memory charge across them. Prices also vary by region: São Paulo (gru1) costs about 1.7 times as much as the US East region.

Full details and examples are in my guide to Vercel Functions pricing.

Netlify: credits for GB-hours

Netlify accounts created on or after September 4, 2025 use credit-based plans. Functions cost 10 credits per GB-hour of runtime, measured as total run time multiplied by memory. The default memory is 1 GB, so one hour of total function run time costs 10 credits. Web requests to your site use 2 credits per 10,000 requests.

Free gives you 300 credits a month and pauses every project when you run out. Personal is $9 a month for 1,000 credits, with extra credits sold in packs of 500 for $5. Pro is $20 a month for 3,000 credits, with extra packs of 1,500 for $10. Credits are shared with deploys (15 credits each) and bandwidth (20 credits per GB), so a busy site with frequent deploys has fewer credits left for functions. Extra credits come in whole packs, so a small overage still buys a full pack.

Older accounts on Netlify's legacy plans are billed by request count instead. The calculator and this guide cover only the credit plans.

Cloudflare Workers: CPU milliseconds, no duration charge

Cloudflare Workers runs your code in lightweight isolates at the edge rather than in containers. The Standard pricing model charges only for CPU time, never wall-clock duration. Time spent waiting on a fetch to an API, a database or an AI model is free.

The Paid plan costs at least $5 a month and includes 10 million requests and 30 million CPU milliseconds. Beyond that it costs $0.30 per extra million requests and $0.02 per extra million CPU milliseconds. Requests to static assets are free. The Free plan allows 100,000 requests a day with 10 ms of CPU each, and requests over those limits fail instead of being billed.

The catch is the runtime itself. A Worker gets 128 MB of memory, and it runs in a JavaScript and WebAssembly isolate, not a full Node.js server. Many apps run fine there. Some, such as heavy image processing or libraries that need native Node modules, do not.

AWS Lambda: GB-seconds of wall-clock time

AWS Lambda (Event Functions, the standard mode) charges $0.20 per million requests and $0.0000166667 per GB-second on x86 in US East. A GB-second is one second of run time at 1 GB of memory, so a 200 ms request at 1,024 MB uses 0.2 GB-seconds. Arm (Graviton) functions cost $0.0000133334 per GB-second, 20% less. Duration is billed per millisecond and covers the whole time your function runs, including time spent waiting on I/O.

The free tier covers 1 million requests and 400,000 GB-seconds every month. There is no platform fee, but Lambda on its own is not a website: a public HTTP API usually adds Amazon API Gateway, plus data transfer and CloudWatch logs. Those are separate AWS charges.

The full breakdown, including free-tier maths, Arm vs x86 and volume tiers, is in my guide to AWS Lambda pricing.

The four numbers you need before comparing

Every serverless bill comes from the same four inputs. Pull them from your analytics or logs, or estimate them if you have not launched yet:

  1. Requests per month. Count function calls, not page views. A page might call three API routes, or none if it is static.
  2. Average duration. The wall-clock time from start to finish of a request, in milliseconds. Your logs or provider dashboard show this.
  3. Memory. What the function is configured with. On Lambda you pick it. On Vercel it is 2 GB unless you change it. On Netlify it is 1 GB by default.
  4. CPU time per request. How long the code actually computes, as opposed to waiting. For a typical API that queries a database, CPU time is a small fraction of duration. For an AI route that waits on a model for several seconds, it is a tiny fraction. For image resizing, it is close to the full duration.

The fourth number matters most and is the one people skip. Vercel and Cloudflare bill CPU time (Vercel bills memory over the full duration too). Netlify and Lambda bill the full duration. The more your requests wait, the bigger the gap between the two groups.

Serverless pricing comparison: six worked examples

These are worked examples, not measurements from a real app. I computed every figure from the official list prices above using the same formulas as the calculator. Unless noted, each assumes Vercel Pro in iad1 with 2 GB memory and one request per instance, Netlify Pro, Cloudflare Workers Paid, and Lambda on x86 in us-east-1 with the free tier applied. The plan fee is included, and it covers function usage only. Click any example to load it into the calculator and change the inputs.

Worked examples: estimated monthly function cost (computed from list prices, November 27, 2026)
Example workload Vercel Netlify Cloudflare AWS Lambda
1. Hobby project: 100k requests, 100 ms, 10 ms CPU (free plans) $0 $0 $0 $0
2. Small API: 1M requests, 200 ms, 1 GB, CPU-bound $20.00 $20.00 $8.40 $0.00
3. Production API: 3M requests, 120 ms, 1.5 GB, CPU-bound $20.00 $20.00 $11.60 $2.73
4. AI endpoint: 500k requests, 8 s, 1 GB, 200 ms CPU $27.41 $80.00 $6.40 $60.00
5. High-volume light API: 50M requests, 50 ms, 512 MB, 5 ms CPU $53.61 $50.00 $21.40 $23.97
6. CPU-heavy work: 2M requests, 800 ms, 2 GB, 700 ms CPU $60.40 $60.00 $32.40 $46.87

Open each example in the calculator: 1, 2, 3, 4, 5, 6.

Here is what each example shows.

1. A hobby project costs nothing anywhere

At 100,000 requests a month, every provider's free option covers the load. Vercel Hobby uses about 0.28 of its 4 CPU-hours. Netlify Free uses about 28 of its 300 credits. Cloudflare Free sees about 3,333 requests a day against a 100,000 daily limit. Lambda uses 10,000 of its 400,000 free GB-seconds.

The difference is what happens if you grow past the limit. Vercel Hobby and Netlify Free pause your project. Cloudflare Free fails the extra requests. Lambda simply starts billing. Vercel Hobby is also for personal, non-commercial projects only, so a business site belongs on Pro even if it would fit in the Hobby allowance.

2 and 3. Small APIs: Lambda's free tier wins

A small API with 1 million requests a month fits entirely inside Lambda's free tier, so its compute bill is $0. At 3 million requests of 120 ms and 1.5 GB, Lambda's bill is still only $2.73: $0.40 for 2 million billable requests and $2.33 for 140,000 billable GB-seconds.

Vercel and Netlify both come to exactly $20 because the usage fits inside what the plan fee includes. In example 3, Vercel's functions use $16.72 of the $20 credit, which leaves $3.28 for bandwidth and everything else. Netlify uses 1,500 of its 3,000 credits. Cloudflare comes to $11.60 because I set CPU time equal to duration (a CPU-bound workload), which uses up the 30 million included CPU milliseconds.

The Lambda figure leaves out API Gateway. If those 3 million requests go through an HTTP API, AWS's price list adds $1.00 per million, or $3.00. That puts Lambda at about $5.73, still the cheapest here.

4. AI endpoints: waiting time decides the bill

This is the example that surprises people. An endpoint that calls a large language model might run for 8 seconds while doing only 200 ms of actual computing. Everything else is waiting for the model's response.

  • Cloudflare bills only the 200 ms of CPU, so 500,000 requests cost $6.40.
  • Vercel bills Active CPU for the 200 ms ($3.56) but Provisioned Memory for the full 8 seconds ($23.56), for $27.41 in total. If an instance handles 8 requests at once on average, the memory charge shrinks and the total drops to the $20 plan fee (see the example). How much concurrency you actually get depends on your traffic, so treat that as a best case.
  • Lambda bills all 8 seconds at 1 GB. That is 4 million GB-seconds, or $60.00 after the free tier.
  • Netlify bills about 1,111 GB-hours, roughly 11,111 credits. That is 8,111 credits over the Pro allowance, so you buy six packs of 1,500 for $60, and the total comes to $80.

Remember that the model provider's own bill comes on top of this and is usually much larger than the hosting. My AI Token Calculator estimates that part, and guides like OpenAI API pricing explain the per-token rates.

5. High request volume: request fees start to matter

At 50 million short requests, the per-request fee becomes a real part of the bill. Vercel's $0.60 per million invocations adds $30. Lambda's $0.20 per million adds $9.80. Cloudflare charges $0.30 per million only after the first 10 million, so it adds $12. Cloudflare still wins at $21.40 because 5 ms of CPU per request is cheap. Lambda comes second at $23.97.

6. CPU-heavy work: the gap narrows

When code computes for most of its run time, as with image processing or PDF generation, billing CPU time stops being an advantage. All four providers land closer together, between $32.40 and $60.40. Cloudflare is still cheapest in this model, but 128 MB of memory and the Workers runtime may rule it out for this kind of job. Among the providers that can run a 2 GB Node.js function, Lambda is cheapest at $46.87.

Which serverless provider is cheapest for you?

The worked examples point to a few rules of thumb. They are about price only. Developer experience, framework support, latency and lock-in matter too, and often more.

Rules of thumb for serverless function cost
If your workload is... Usually cheapest on compute Why
A side project or prototype Any free plan All four free options cover low traffic
A small to medium API with short requests AWS Lambda Free tier every month and no platform fee
Mostly waiting on databases, APIs or AI models Cloudflare Workers Waiting time is free
A Next.js or framework app you want deployed with no setup Vercel or Netlify $20 flat fee covers light usage, and you do not have to set up infrastructure
Very high volume with tiny CPU per request Cloudflare Workers Low request price and cheap CPU
Long-running or memory-heavy functions AWS Lambda (Arm) Up to 10 GB of memory, and Arm costs 20% less

Two caveats apply to every row:

  • Function compute is not your whole hosting bill. Bandwidth, CDN requests, image optimization, build minutes, logs, storage and databases are billed separately on every platform. On Vercel and Netlify they draw from the same monthly credit as functions.
  • Engineering time costs money too. Lambda's low compute bill comes with API Gateway, IAM, deployment pipelines and monitoring that someone has to set up. For a small team, the hours saved by deploying with one command can be worth far more than the $20 plan fee.

If you are still choosing a framework, my comparison of Next.js vs React covers how that choice affects hosting. For how serverless fits into the wider stack of servers, storage and networking, see what cloud infrastructure is.

Costs the per-function price does not show

These are the charges people miss when they compare serverless pricing pages.

Shared plan credits. Vercel's $20 Pro credit and Netlify's 3,000 Pro credits are shared across everything the platform bills. On Netlify, for example, bandwidth costs 20 credits per GB and each production deploy costs 15 credits. A site that deploys 20 times a day uses 9,000 credits a month on deploys alone, three times the Pro allowance, before a single function runs.

API Gateway on AWS. A Lambda function needs a way to receive HTTP requests. Amazon API Gateway is the usual choice. In us-east-1, an HTTP API costs $1.00 per million requests for the first 300 million each month, and a REST API costs $3.50 per million for the first 333 million. At low compute costs, the gateway can cost more than the function.

Data transfer and logs. AWS charges for data transfer out to the internet and for CloudWatch log storage. Vercel and Netlify meter bandwidth. Cloudflare does not charge Workers for egress.

Region. Vercel's rates vary by region. The same workload costs more in São Paulo, Tokyo or Mumbai than in Washington, D.C. Lambda prices also differ outside us-east-1. If your users are in one region, run the numbers for that region.

Cold starts and initialization. AWS bills the initialization code that runs outside your handler as part of duration. Large dependencies and slow startup cost money on every cold start, not just time.

Pricing changes. Most of these providers have changed their pricing in the last two years: Vercel moved to Active CPU billing, Netlify moved new accounts to credits, and AWS added new Lambda modes. Check the official page before you rely on any number, including mine. The calculator shows the date its rates were last checked.

How to estimate your own serverless bill

You can do this in about ten minutes:

  1. Get the four numbers. Monthly requests, average duration, memory and CPU time per request. If you are on a platform already, its usage dashboard shows them. If not, estimate from expected users × requests per user × days.
  2. Run them through the calculator. The Serverless Cost Calculator shows every provider's monthly total with each line of the maths, so you can check it against the pricing pages yourself.
  3. Model your busiest month, not your average one. A launch, a viral post or a bot crawling your API can multiply requests for a few days.
  4. Add the costs the calculator leaves out. Bandwidth, gateway, database, logs and the AI model bill if you have one.
  5. Set spend limits. Vercel, Netlify and AWS all let you set budgets or alerts. A spend alert is cheaper than a surprise invoice.

If you are budgeting a whole site rather than just its functions, the Website Cost Calculator and my guide to how much a website costs cover the build, and website maintenance cost covers hosting, domains and upkeep after launch. If you are new to the terminology, what an API is explains the requests these functions are answering.

FAQ

What is serverless pricing?

Serverless pricing means you pay for the compute your code uses each time it runs, instead of renting a server by the hour. Providers usually charge per request plus a compute meter: GB-seconds on AWS Lambda, GB-hours on Netlify, CPU time on Cloudflare Workers, and Active CPU plus Provisioned Memory on Vercel.

Which serverless platform is cheapest?

It depends on the workload. In the worked examples above, computed from list prices, AWS Lambda was cheapest for small and medium APIs because of its free tier, and Cloudflare Workers was cheapest for requests that spend most of their time waiting on I/O. Run your own numbers in the Serverless Cost Calculator to see which wins for your traffic.

Is serverless cheaper than a server?

For low or uneven traffic, usually yes, because you pay nothing while idle. For steady, high, CPU-heavy traffic, a reserved server or container can be cheaper per request. Compare your busiest month's serverless estimate with the monthly price of a server that could handle the same peak.

Does serverless pricing include bandwidth?

No. Function pricing covers compute and requests. Bandwidth, CDN requests and data transfer are billed separately on Vercel, Netlify and AWS. Cloudflare Workers does not charge for egress.

How much does a million serverless requests cost?

The request fee alone is $0.20 per million on AWS Lambda, $0.60 per million on Vercel Pro, $0.30 per million on Cloudflare Workers after the first 10 million, and about 200 credits per million web requests on Netlify. Compute comes on top and usually costs more than the request fee.

Why is my AI endpoint expensive on serverless?

Because LLM calls take seconds, and AWS Lambda and Netlify bill the whole time your function waits. Vercel bills memory for that waiting time too, but not CPU. Cloudflare Workers bills CPU time only, so waiting on a model costs nothing there.

How accurate is a serverless cost calculator?

It is accurate to the list price for the inputs you give it. Real bills differ because of traffic spikes, real concurrency, cold starts, other usage sharing your plan credits, regions, taxes and negotiated discounts. Use an estimate for planning and the provider's usage page once you are live.

Next steps

Start with the Serverless Cost Calculator and your own four numbers. If one provider is already your favourite, read the deep dives on Vercel Functions pricing and AWS Lambda pricing. If you are planning a web app and want the architecture and running costs worked out before you build, send me a short brief.

Compare your serverless costs free

ShareXLinkedInReddit

Related guides

More in Web Basics