Simple, predictable pricing

Always know what you'll pay with monthly caps and flat pricing.

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 or talk to an expert to learn more about Functions.

Get started for free

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 up

90,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

Sign up now

Pricing examples for billing using GiB-seconds

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:

InvocationsMemoryRun-timeUsageAllowanceCompute$/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

About Functions

What is the billing change that is effective from August 1, 2022?

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.

What does the monthly free allowance include?

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.

What is GiB-seconds a measure of?

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.

What happens when I exceed the free monthly allowance?

After you exceed your free allowance, additional GiB-seconds are charged at $0.0000185. Usage is pooled at the account level.

How are monthly bills calculated?

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:

  • GiB-seconds used from the free allowance
  • GiB-seconds used in excess of free allowance and charge for that
Is my free allowance per month rolled over to next month?

No, the free monthly allowance is not rolled over to next month.

Can I add functions to an app on any tier of App Platform?

Yes, functions can be added as components of apps built on any tier of App Platform.

Can I set up an alert that notifies me when my monthly spend for Functions reaches a certain threshold?

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.

What do you mean by 'minimum runtime per function invocation is 100 ms'?

Minimum runtime is the minimum duration we'll charge you for. Function runtime will be rounded up to the nearest 100 ms.

How many millions of function invocations do I get for free?

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.

Frequently asked questions

What forms of payment do you accept?

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.

When will my card be charged?

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.

Am I charged when I enter my credit card?

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.

Will taxes be included in my monthly invoice?

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.

Why am I billed for powered off Droplets?

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.

How do I destroy my resources?

Check out the docs to learn how to destroy Droplets, Kubernetes clusters, Managed Databases clusters (PostgreSQL, MySQL, Redis), Spaces, Volumes , Firewalls , and Load Balancers.

Can I be notified if my bill exceeds a threshold?

Yes, you can set up billing alerts and we will email you if the monthly spending exceeds an amount you specify.

What if I use my Droplet for less than a month, would I still be charged for the whole month?

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).

I spun up a $4 Droplet, but my monthly bill is more than $4. Why is that?

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.

I got a $200 credit when I opened an account. When will my card be charged?

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.

What's the price for the Marketplace 1-Click Apps?

We charge you for the underlying compute on which the 1-Click Apps runs.

How do I remove my card from the account?

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.

Can I prepay for my resources?

If you are interested in prepayment for resources, contact our experts.

Can I have a refund?

We do not offer refunds. If there are extenuating circumstances, contact support.

Still have questions?

Have a complex setup or additional questions around pricing? Contact our sales team to get more information on DigitalOcean pricing.

Contact sales

Start building today

Sign up now and you'll be up and running on DigitalOcean in just minutes.

Sign up to get started