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.

Important: Some features have additional quotas from the Google product they're associated with. Using a product's Apps Script service counts toward all associated quota reserves. A feature becomes unavailable if you reach any of the associated quotas.

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. Quotas are per user and reset 24 hours after the first request.

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

FeatureConsumer (e.g., gmail.com) and
G Suite free edition
(legacy)
Google Workspace
accounts
Calendar events created5,000 / day10,000 / day
Contacts created1,000 / day2,000 / day
Documents created250 / day1,500 / day
Files converted2,000 / day4,000 / day
Email recipients per day100* / day1,500* / day
Email recipients per day within domain100* / day2,000 / day
Email read/write (excluding send)20,000 / day50,000 / day
Groups read2,000 / day10,000 / day
JDBC connection10,000 / day50,000 / day
JDBC failed connection100 / day500 / day
Presentations created250 / day1,500 / day
Properties read/write50,000 / day500,000 / day
Slides created250 / day1,500 / day
Spreadsheets created250 / day3,200 / day
Triggers total runtime90 min / day6 hr / day
URL Fetch calls20,000 / day100,000 / day
Static Map render 1,000 / day10,000 / day
Google Map Direction query1,000 / day10,000 / day
Google Map Geocode calls1,000 / day10,000 / day
Translate calls5,000 / day20,000 / day
Google Map elevation samples query1,000 / day10,000 / day
Apps Script projects50 / day50 / 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.

FeatureConsumer (e.g., gmail.com) and
G Suite free edition
(legacy)
Google Workspace
accounts
Script runtime6 min / execution6 min / execution
Custom function runtime30 sec / execution30 sec / execution
Google Workspace add-on runtime30 sec / execution30 sec / execution
Simultaneous executions per user30 / user30 / user
Simultaneous executions per script1,0001,000
Email attachments250 / msg250 / msg
Email body size200 KB / msg400 KB / msg
Email recipients per message50 / msg50 / msg
Email total attachments size25 MB / msg25 MB / msg
Properties value size9 KB / val9 KB / val
Properties total storage500 KB / property store500 KB / property store
Triggers20 / user / script20 / user / script
URL Fetch response size50 MB / call50 MB / call
URL Fetch headers100 / call100 / call
URL Fetch header size8 KB / call8 KB / call
URL Fetch POST size50 MB / call50 MB / call
URL Fetch URL length2 KB / call2 KB / call
Versions200 / script200 / script

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.