Configuring Memory and CPU for Vercel Functions
The memory configuration of a function determines how much memory and CPU a function can use while executing. By default, on Pro and Enterprise, functions execute with 2 GB (1 vCPU) of memory. On Hobby, they will always execute with 2 GB (1 vCPU). You can change the default memory size for all functions in a project.
You should consider the following points when changing the memory size of your functions:
- Performance: Increasing memory size can improve the performance of your functions, allowing them to run faster
- Cost: Vercel bills Functions on fluid compute based on Active CPU, Provisioned Memory, and Invocations. Increasing memory also increases available CPU, which can help CPU-intensive functions finish faster and reduce Active CPU time. Larger memory settings can increase Provisioned Memory usage while requests are in progress. See Pricing for more information
Those on the Pro or Enterprise plans can configure the default memory size for all functions in a project.
To change the default function memory size:
- Choose the appropriate project from your dashboard
- Open Settings in the sidebar
- Scroll to Functions
- Select Advanced Settings
- In the Function CPU section, select your preferred memory size option:


- The change will be applied to all future deployments made by your team. You must create a new deployment for your changes to take effect
The memory size you select will also determine the CPU allocated to your Vercel Functions. The following table shows the memory and CPU allocation for each type.
With fluid compute enabled on Pro and Enterprise plans, the default memory size is 2 GB (1 vCPU) and can be upgraded to 4 GB / 2 vCPUs, for Hobby users, Vercel manages the CPU with a minimum of 1 vCPU.
| Type | Memory / CPU | Use |
|---|---|---|
| Standard Default | 2 GB / 1 vCPU | Predictable performance for production workloads. Default for fluid compute. |
| Performance | 4 GB / 2 vCPUs | Increased performance for latency-sensitive applications and SSR workloads. |
Users on the Hobby plan can only use the default memory size of 2 GB (1 vCPU). Hobby users cannot configure this size. If you are on the Hobby plan, and have enabled fluid compute, the memory size will be managed by Vercel with a minimum of 1 vCPU.
To check the memory size of your functions in the dashboard, follow these steps:
- Find the project you want to review and open Deployments in the sidebar
- Go to the deployment you want to review
- Open Resources in the sidebar
- Search for the function by name or find it in the Functions section
- Click on the name of the function to open it in Observability
- Hover over the information icon next to the function name to view its memory size
To learn more about the maximum size of your function's memory, see Max memory size.
Memory / CPU size affects two current fluid compute pricing dimensions:
- Active CPU: CPU time your code actively consumes. More CPU can reduce Active CPU time for CPU-bound work if the function finishes faster.
- Provisioned Memory: Memory allocated to the function instance while requests are in progress. Larger memory settings increase the GB-hour rate for this dimension.
Vercel bills Invocations separately per incoming request. To learn more, see Vercel Functions pricing.
Was this helpful?