Insights / October 24, 2026

Vercel pricing: why your bill spikes after launch and how to cut it

Vercel Pro costs $20 a month for one deploying seat and includes $20 of usage credit, plus 1 million CDN requests and 1 TB of data transfer a month. Above that, everything is billed per unit: every request, every function run, every second of CPU and memory. Bills spike after launch because most of those units multiply with traffic, and a single request to your app can be billed several times over.

We recently cut the Vercel bill for a real-time trading platform that went from about $25–40 a day before launch to roughly $300 a day after it. Here’s how the billing works, where the money went, and what we changed.

How Vercel pricing works

The lines on a Vercel bill that grow with traffic, with on-demand rates in two US regions:

Billed line What counts US East (iad1) San Francisco (sfo1)
CDN requests Every request that reaches Vercel, including static files and cache hits $2.00 per million $2.40 per million
Function invocations Every request that runs your server code $0.60 per million $0.60 per million
Active CPU Time your code is computing. It pauses while the function waits on a database or an API $0.128 per hour $0.177 per hour
Provisioned memory Memory reserved for each function instance while it handles requests, waiting included $0.0106 per GB-hour $0.0147 per GB-hour
Fast Data Transfer Bytes sent to visitors $0.15 per GB $0.15 per GB
Firewall rate-limit requests Each request that passes a rate-limit check $0.50 per million $0.60 per million

There are also lines for Fast Origin Transfer (bytes between the CDN and your functions), ISR writes (regenerating cached pages) and image optimization, which matter for content-heavy sites. Most prices vary by region, so check Vercel’s pricing page and the regional price list for current numbers.

Pro also offers Flat Rate CDN: a fixed monthly price for a capacity tier instead of per-request billing. The top tier covers 150 million requests a month for $300. Past that, on-demand rates apply again.

Before launch, your traffic is people clicking around. After launch it can be machines: API clients, integrations, bots polling every second. Machines don’t sleep, and every billed line multiplies with them.

What one API request was billed for

The platform has a public API that customers’ trading bots call around the clock. After launch the API carried over 20 million requests a day, at a steady 260 requests a second. It wasn’t an attack: Vercel’s attack monitoring showed nothing unusual, and the busiest single client made under 2% of the requests. It was customers using the product as designed, at a volume no Flat Rate CDN tier covers.

When we reconciled the bill against the request logs, each API request was billed like this:

Billed line Per API request Why
CDN requests 2 The bot’s request, plus a second request the rate limiter made back to the site
Function invocations 2 Next.js middleware ran as its own function, then the route handler ran
Firewall rate-limit requests 1 The per-account rate-limit check
Active CPU Both Each invocation bills its own computing time
Provisioned memory Both Each invocation bills memory while it runs and waits

Two of those lines were invisible in the code.

The rate limiter called the site again. The app used checkRateLimit from Vercel’s @vercel/firewall package. Under the hood it makes an HTTPS request to your own domain, at a /.well-known/vercel/rate-limit-api/ path, and Vercel bills that as a second CDN request.

Middleware is a separately billed function. In Next.js, middleware (called proxy.ts from Next.js 16) runs before every request its matcher covers. This app’s matcher covered every /api path, so each API call paid for two functions: the middleware, then the actual handler. Vercel bills Node middleware on the same Fluid compute pricing as any other function.

Over six days the bill split like this:

Line Share of the Vercel bill
CDN requests 36%
Active CPU 22%
Provisioned memory 15%
Function invocations 10%
Data transfer 6%
Firewall rate limiting 5%
Other 6%

Projected over a month, that came to about $9,000.

Caching at the CDN wasn’t a lever here. Every request was authenticated and rate-limited per account, and the busiest endpoints, the order book and prices, made up 61% of traffic and change constantly.

What we changed, ranked by size

The billing lines gave each fix a clear size.

  1. Stop running middleware on API routes: about 5–7% of the bill. The API handlers did their own authentication, so the middleware added nothing to them. We changed the matcher to skip the API-key routes and moved the one job the middleware did for them, stripping headers clients shouldn’t be able to set, into the API’s own auth wrapper. It’s a small change and it shipped first.
  2. Remove the rate limiter’s self-request: about 23%, minus the cost of a replacement. Every replacement we could run on Vercel either ate most of the saving or added risk, so we did this as part of the move below. The new server counts requests in Redis on the same machine: one counter increment per request, with no extra web request.
  3. Move the reads off Vercel: most of the rest. Reads were about 94% of API requests, so we moved them to a dedicated server running the same Next.js app, with Vercel forwarding the old API address while clients switched over. Writes are the harder piece. Each order makes several database round trips in a row, so writes need to sit a couple of milliseconds from the database. They stay on Vercel until they get a server in the database’s own data center. The full migration is in moving a Next.js app off Vercel.

Neither of the two small fixes halves the bill. Each one halves a single line of it. Only moving the traffic changes the total.

The result

Daily Vercel spend fell from about $300 to about $30, a cut of about 90%. Moving writes next to the database takes it under $10, and running the database in that same data center would shrink the Supabase bill too. The same launch also drove a large Supabase Realtime bill, which we cut separately; that story is in Supabase Realtime pricing.

How to read and cut your own Vercel bill

  1. Open Usage in your Vercel dashboard and set the range to the last 30 days. Break it down by project and region, and find the biggest line before changing anything. vercel usage --since 30d --group-by project gives the same view in a terminal, and the billing charges API gives daily cost per service.
  2. Divide each line by your real request count. If CDN requests are about double your traffic, or invocations are double the requests your functions serve, something is running twice.
  3. Check your middleware matcher. Without one, middleware runs on every request, static files included. Exclude API routes that do their own auth, plus _next/static, _next/image and image files.
  4. Search for code that calls your own domain. Rate-limit checks, server code fetching your own API routes, and health checks all come back through the CDN and get billed again.
  5. Cache public responses. A Cache-Control: s-maxage=N header lets Vercel’s CDN serve repeat requests. A cache hit still counts as a CDN request but skips the function, its CPU and its memory. Vercel won’t cache requests that carry an Authorization header or responses that set cookies.
  6. Look at memory as well as CPU. Fluid compute charges memory while your function waits on slow database or API calls. Here memory was 15% of the bill.
  7. Set a spend limit. In Settings, then Billing, Spend Management sets an on-demand budget with alerts at 50%, 75% and 100%. New teams start with a $200 budget by default. It can also pause every production deployment when you hit it, which takes your whole app offline, and the check runs every few minutes, so set it below your real ceiling.
  8. Don’t judge your run rate from the first days of a billing cycle. Included usage is used up first, so those days look cheaper than the rest of the month.
  9. Move the hot path. If a few endpoints called by machines make up most of your traffic, run them on a server you pay for by the month and keep the rest on Vercel. Keep database-heavy writes close to your database. If Vercel forwards the old address to the new server, each forwarded request is still a billed CDN request, so treat forwarding as a bridge and move clients to the new address.

If your Vercel bill is growing faster than your users, a rescue engagement starts the same way this one did: find out what each request is billed for, then cut what nobody needs.

LET’S TALK.

Book a free 30-minute call with Virgil

Pick a time that suits you. You’ll get a straight answer on what you need, what it should cost and the fastest path to launch.

Loading available times…

Open the calendar in a new tab

Send us your project

Virgil replies personally within one business day.

Book a free strategy call