Skip to content

Usage & Pricing for Edge Functions

Learn about usage and pricing for using Edge Functions with Vercel.

Edge Functions are measured in the number of execution units, which are the amount of CPU time—or time spent performing calculations—used when a function is invoked. CPU time does not include idle time spent waiting for data fetching. When a function runs, it can use up to 50 ms of CPU time as a single execution unit. A function may use more than 50 ms of CPU time, but for billing purposes, it will be split into multiple execution units of 50 ms each.

You can see the number of invocations made in the Edge Functions section of the Usage tab on your dashboard.

Plan
Edge Functions Limit
Price (after limit hit)
Hobby
500,000
not allowed
Pro
1,000,000
$2.00 for each additional 1,000,000 execution units
Enterprise
1,000,000
$2.00 for each additional 1,000,000 execution units

An execution unit is 50 ms of CPU time.

Each invocation of an Edge Function will have a Total CPU time, which is the time spent actually running your code. This is unlike Serverless Functions, which measure usage based on the entire time spent running your function (the “wall clock” time). This means that the Edge Functions usage does not measure time spent waiting for data fetches to return.

When it comes to billing, we'll work out the number of execution units (total CPU time of the invocation / 50ms) used for each invocation. You will then be charged based on anything over the limit.

For example:

If your function is invoked 250,000 times and uses 350 ms of CPU time at each invocation, then the function will incur (350 ms / 50 ms) = 7 execution units each time the function is invoked. Your usage is: 250,000 * 7 = 1,750,000 execution units

Usage metrics can be found in the Edge Functions section of the Usage tab on your dashboard. The dashboard tracks two usage values:

  • Total number of invocations
  • CPU Utilization for the invocations

Edge Functions are invoked for every request that is served.

There is no time limit on the amount of CPU time your Edge Function can use during a single invocation. However, you are charged for each execution unit, which is based on the compute time. The compute time refers to the actual net CPU time used, not the execution time. Operations such as network access do not count towards the CPU time.

You can see usage of your team's average CPU time on the Edge Functions section of the Usage tab on your dashboard.

For more information on billing, see the Billing section.

For Teams on a Pro trials, the trial will end if your Team has made over 1 million invocations.

Vercel will send you emails as you are nearing your usage limits, but you will also be advised of any alerts within the dashboard. Once your team exceeds the 1 million invocations limit, you will continue to be charged $2 per 1 million invocations going forward.

Edge Functions are free for Hobby users within the usage limits.

Vercel will send you emails as you are nearing your usage limits. You will not pay for any additional usage. However, your account may be blocked if you do exceed the limits. In this scenario, you will have two options to move forward:

  • Contact Support to unblock your account
  • Upgrade to Pro, by starting a free trial:
Start Free Trial