Always know what you'll pay with monthly caps and flat pricing.
DigitalOcean Functions is a serverless computing solution that runs on-demand, enabling you to focus on your code, scale instantly with confidence, and save costs by eliminating the need to maintain servers.
Start building today or talk to an expert to learn more about Functions.
DigitalOcean Functions is a serverless computing solution that runs on-demand, enabling you to focus on your code, scale instantly with confidence, and save costs by eliminating the need to maintain servers.
Start building today
Sign up90,000
GiB-seconds of compute free per month per account
$0.0000185
per GiB-seconds for additional memory and runtime
100 ms
minimum runtime per function invocation
Use this formula to calculate GiB-seconds of your Functions usage: GiB-seconds = Number of Function invocations * RAM Memory in GiB * Function run-time in seconds.
Below are a few examples that illustrate billing for Functions usage:
Invocations | Memory | Run-time | Usage | Allowance | Compute | $/GiB-sec | $/mo | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,000,000 | * | 0.125 GiB (128 MiB) | * | 0.1s | = | 12,500 | - | 90,000 | = | 0 | * | $0.0000185 | = | $0.00 |
3,600,000 | * | 0.25 GiB (256 MiB) | * | 0.1s | = | 90,000 | - | 90,000 | = | 0 | * | $0.0000185 | = | $0.00 |
10,000,000 | * | 0.5 GiB (512 MiB) | * | 0.1s | = | 500,000 | - | 90,000 | = | 410,000 | * | $0.0000185 | = | $7.59 |
15,000,000 | * | 0.5 GiB (512 MiB) | * | 0.2s | = | 1,500,000 | - | 90,000 | = | 1,410,000 | * | $0.0000185 | = | $26.08 |
20,000,000 | * | 1 GiB (1,024 MiB) | * | 0.5s | = | 10,000,000 | - | 90,000 | = | 9,910,000 | * | $0.0000185 | = | $183.33 |
Previously, only functions deployed via App Platform were being counted toward your monthly free allowance. Starting August 1, functions deployed via the developer console and CLI will also count towards your monthly free allowance of 90,000 GiB-seconds for your account/team. This means the same pricing will apply to functions regardless of how they are deployed.
The monthly free allowance includes 90,000 GiB-seconds for the account/team. These are not prorated, do not roll over, and can be used on any apps under the same team.
GiB-seconds is used to indicate the amount of memory allocated to a task per second. For functions, GiB-seconds are the number of seconds your function runs for, multiplied by the amount of RAM memory consumed. It's a measure of resources used by your function.
After you exceed your free allowance, additional GiB-seconds are charged at $0.0000185. Usage is pooled at the account level.
At the end of each billing period, we aggregate usage and charge for the amount of GiB-seconds in excess of the free allowance at the rate of $0.0000185 per GiB-seconds. In the invoice, you'll see two items depending on your usage:
No, the free monthly allowance is not rolled over to next month.
Yes, functions can be added as components of apps built on any tier of App Platform.
You can set up billing alerts in aggregate across all their DO resources, but not for Functions directly. As a workaround, you can set up an alert on the metric 'GiB-seconds' which roughly maps to your spend on Functions.
Minimum runtime is the minimum duration we'll charge you for. Function runtime will be rounded up to the nearest 100 ms.
We give you 90,000 GiB-seconds of free DigitalOcean Functions usage. Calculate the number of free Functions invocations you get with this formula:
Number of free function invocations = 90,000 GiB-seconds / (RAM Memory in GiB * Function run-time in seconds)
For example, a Function that runs for 100 ms and has 256MiB RAM dedicated to it, you can invoke this Function: 90,000 GiB-seconds / (100/1000 seconds * 256/1024 GiB) = 3.6 million times before you are charged for Functions use.
We accept Visa, Mastercard, American Express, Discover, PayPal, Google Pay, and Apple Pay. Apple pay requires a Safari browser. For additional payment options, including wire transfer, purchase orders, and ACH, please contact us. Note that when you add a card, we may send a temporary pre-authorization request to the issuing bank. This pre-authorization charge is immediately released by DigitalOcean but may take a few days to clear from your card depending on the bank.
DigitalOcean billing cycles are monthly. Typically, on the first day of each month we invoice and automatically charge your account's primary payment method for the previous month's usage. In some cases, we might charge if your usage exceeds a threshold. You can also login and self pay the balance at any time.
No. Your card is only charged at the end of the billing cycle or upon exceeding a usage threshold. Pre-authorization charge: When you add a card, we may send a preauthorization request to the issuing bank. This is to verify that the card being added has been issued by the bank and that they will authorize any charges in future. These temporary pre-authorizations are typically $1 but can vary in range and are immediately canceled by us. Depending on your bank, it might take a few days for the charge to clear from the card.
We're required by law to apply taxes in some countries. Click here to learn whether we collect taxes in your country, what the tax rate is, etc.
When you power off your Droplet, you are still billed for it. This is because your disk space, CPU, RAM, and IP address are all reserved, even while powered off. Therefore, charges are made until you destroy the instance.
Check out the docs to learn how to destroy Droplets, Kubernetes clusters, Managed Databases clusters (PostgreSQL, MySQL, Redis), Spaces, Volumes , Firewalls , and Load Balancers.
Yes, you can set up billing alerts and we will email you if the monthly spending exceeds an amount you specify.
You will never be billed more than the monthly cost of your Droplet. All Droplets are billed hourly up to a monthly cap of 672 hours (the number of hours in 4 weeks). If you use your server for fewer than 672 hours during the month, you will be billed for each hour that you used it. If you use your server for more than 672 hours that month, you will be billed at the monthly cost. For example, if you spin up a $10/mo Droplet and use it for 336 hours, then you would be charged $5 (going by the hourly rate). If you use that Droplet for 700 hours, then you would be charged $10 (capped at the monthly rate).
Our pricing is based on a single Droplet. You may have created additional resources and this could be the reason for the higher bill. You can check your bill in the control panel to get details on the various resources you are using. If you need help, please contact support.
Your card will be charged only after you have utilized the free credits. For example, if you received a $200 credit for 60 days, then that $200 credit is automatically applied to your account. If you spend $25 in that timeframe, then your card will not be charged. If you spend $300, then the $200 credit would be fully utilized and your card will be charged only $100. Since the credit is valid for 60 days, you won't be able to use any remaining credit after 60 days.
We charge you for the underlying compute on which the 1-Click Apps runs.
To remove a saved payment method, visit the products billing page and click the … menu of the payment method, then click Delete. In the Confirm Delete Card window that opens, click Delete to remove the card. You cannot remove the default payment method on the account.
If you are interested in prepayment for resources, contact our experts.
We do not offer refunds. If there are extenuating circumstances, contact support.
Have a complex setup or additional questions around pricing? Contact our sales team to get more information on DigitalOcean pricing.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.