Reference
3 min read

Usage & Pricing for Functions

Learn about usage and pricing for Vercel Functions.
Table of Contents

Functions using the edge runtime 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.

Functions using the Node.js runtime are measured in GB-hours, which is the memory allocated for each Function in GB, multiplied by the time in hours they were running. For example, a function configured to use 3GB of memory that executes for 1 second, would be billed at 3 GB-s, requiring 1,200 executions to reach a full GB-Hr.

RuntimeIncluded UsageOn-Demand Usage
Node.js100 GB-hoursUpgrade to Pro
Edge500,000 execution unitsUpgrade to Pro

Vercel Functions are available for free with the included 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 paused if you do exceed the limits.

When your Hobby account is set to paused, it remains in this state indefinitely unless you take action. This means all new and existing deployments will be paused.

If you have reached this state, your application is likely a good candidate for a Pro account.

To unpause your account, you have two main options:

  • Contact Support: You can reach out to our support team to discuss the reason for the pause and potential resolutions
  • Transfer to a Pro team: If your Hobby account is paused, you won't have the option to initiate a Pro trial. Instead, you can set up a Pro team:
    1. Create a Pro team account
    2. Add a valid credit card to this account. Select the Settings tab, then select Billing and Payment Method

Once set up, a transfer modal will appear, prompting you to transfer your previous Hobby projects to this new team. After transferring, you can continue with your projects as usual.

RuntimeIncluded UsageOn-Demand Usage
Node.js1,000 GB-hours$40 for each additional 100 GB-hours
Edge1,000,000 execution units$2.00 for each additional 1,000,000 execution units

For teams on a Pro trial, the trial will end when your team reaches the trial limits.

Once your team exceeds the included usage, you will continue to be charged the on-demand costs going forward.

Pro teams can set up Spend Management to get notified or to automatically take action, such as using a webhook or pausing your projects when your usage hits a set spend amount.

Enterprise agreements provide custom usage and pricing for Vercel Functions, including:

  • Custom execution units
  • Increased maximum duration up to 900 seconds
  • Multi-region deployments
  • Serverless Function failover

See Vercel Enterprise plans for more information.

Usage metrics can be found in the Usage tab on your dashboard. Functions are invoked for every request that is served.

You can see the usage for functions using the Node.js runtime on the Serverless Functions section of the Usage tab. The dashboard tracks the usage values:

You can see the usage for functions using the edge runtime on the Edge Functions section of the Usage tab. The dashboard tracks the usage values:

This section details our improved infrastructure pricing. These changes will take effect starting with the billing cycle on June 25, 2024, and apply to subsequent cycles. The Hobby tier remains free.

Manage and Optimize pricing
Metric
Description
Priced
Optimize
Function InvocationsThe number of times your Functions have been invokedYesLearn More
Function DurationThe time your Serverless Functions have spent responding to requestsYesLearn More
ThrottlesInstances where requests to Functions are not served due to concurrency limitsNoN/A
Manage and Optimize pricing
Metric
Description
Priced
Optimize
InvocationsThe number of times your Functions have been invokedYesLearn More
Execution UnitsThe number of execution units that your Edge Functions have used. An execution unit is 50 ms of CPU time.YesLearn More
CPU TimeThe time your Edge Functions have spent computing responses to requestsNoLearn more
Last updated on April 19, 2024