Quotas for Google Services

Apps Script services have daily quotas and limitations on some features. If you exceed a quota or limitation, your script throws an exception and execution stops.

Current quotas

Quotas are set at different levels for users of consumer (such as gmail.com) or G Suite free edition (discontinued) accounts and Google Workspace accounts.

Use the quotas below to help test your scripts. All quotas are subject to elimination, reduction, or change at any time, without notice.

Feature Consumer (e.g., gmail.com) and
G Suite free edition
(legacy)
Google Workspace
accounts
Calendar events created 5,000 / day 10,000 / day
Contacts created 1,000 / day 2,000 / day
Documents created 250 / day 1,500 / day
Files converted 2,000 / day 4,000 / day
Email recipients per day 100* / day 1,500* / day
Email recipients per day within domain 100* / day 2,000 / day
Email read/write (excluding send) 20,000 / day 50,000 / day
Groups read 2,000 / day 10,000 / day
JDBC connection 10,000 / day 50,000 / day
JDBC failed connection 100 / day 500 / day
Presentations created 250 / day 1,500 / day
Properties read/write 50,000 / day 500,000 / day
Slides created 250 / day 1,500 / day
Spreadsheets created 250 / day 3,200 / day
Triggers total runtime 90 min / day 6 hr / day
URL Fetch calls 20,000 / day 100,000 / day
Static Map render 1,000 / day 10,000 / day
Google Map Direction query 1,000 / day 10,000 / day
Google Map Geocode calls 1,000 / day 10,000 / day
Translate calls 5,000 / day 20,000 / day
Google Map elevation samples query 1,000 / day 10,000 / day
Apps Script projects 50 / day 50 / day

Current limitations

Use the limits below to help test your scripts. All limits are subject to elimination, reduction, or change at any time, without notice.

Feature Consumer (e.g., gmail.com) and
G Suite free edition
(legacy)
Google Workspace
accounts
Script runtime 6 min / execution 6 min / execution
Custom function runtime 30 sec / execution 30 sec / execution
Simultaneous executions 30 30
Email attachments 250 / msg 250 / msg
Email body size 200 KB / msg 400 KB / msg
Email recipients per message 50 / msg 50 / msg
Email total attachments size 25 MB / msg 25 MB / msg
Properties value size 9 KB / val 9 KB / val
Properties total storage 500 KB / property store 500 KB / property store
Triggers 20 / user / script 20 / user / script
URL Fetch response size 50 MB / call 50 MB / call
URL Fetch headers 100 / call 100 / call
URL Fetch header size 8 KB / call 8 KB / call
URL Fetch POST size 50 MB / call 50 MB / call
URL Fetch URL length 2 KB / call 2 KB / call

Exception messages

If a script reaches a quota or limitation, it throws an exception with a message similar to the following:

  • Limit exceeded: Email Attachments Per Message. This indicates that the script exceeded one of the quotas or limitations listed above.
  • Service invoked too many times: Calendar. This indicates that the script called the given service too many times in one day.
  • Service invoked too many times in a short time: Calendar. Try Utilities.sleep(1000) between calls. This indicates that the script called the given service too many times in a short period.
  • Service using too much computer time for one day. This indicates that the script exceeded the total allowable execution time for one day. It most commonly occurs for scripts that run on a trigger, which have a lower daily limit than scripts executed manually.
  • Script invoked too many times per second for this Google user account. This indicates that the script began executing too many times in a short period. It most commonly occurs for custom functions that are called repeatedly in a single spreadsheet. To avoid this error, code your custom functions so that they only need to be called once per range of data, as explained in the guide to custom functions.
  • There are too many scripts running simultaneously for this Google user account. This indicates that you have too many scripts executing at once, although not necessarily the same script. Like the exception above, this most commonly occurs for custom functions that are called repeatedly in a single spreadsheet.