Maximum length of a formula field

Mike Arthur • 17 December 2015

How many characters can I have in a formula field?

Previously, Salesforce help told us that a formula field could be up to 3,900 characters, or 5,000 characters when referenced formulae were included.

The help has recently been updated, Winter '16 perhaps though I don't see anything in the release notes.

It is now 3,900 characters, or 5,000 bytes when compiled. Unfortunately there is no way to predict the compiled size.

Have a look at the official help on Formula Field Limits and Restrictions. Salesforce also provides a Tips for Reducing Formula Size.

My Blog of Salesforce Stuff

by Mike Arthur • 16 October 2021
'XHR Failed' error when trying to install VS Code extension
by Mike Arthur • 9 June 2020
What is $A (dollar A) in Lightning Aura component framework? Is it a global variable? Where are the docs for $A?
by Mike Arthur • 8 May 2020
Authorise a Salesforce Connected App using OAuth 2.0 JWT Bearer Flow
by Mike Arthur • 26 April 2020
REST API Connection to Salesforce Connected App Using OAuth 2.0 Authentication from Postman
by Mike Arthur • 23 March 2020
How to create a Lightning tab menu with dropdown sub-menu
by Mike Arthur • 27 November 2018
How to show a month by month trend chart with multiple years on same chart
by Mike Arthur • 6 November 2018
What to do if you receive emails about expiring certificates
22 August 2018
Process json strings when working with integrations
by Mike Arthur • 22 August 2018
If you're switching email accounts you can copy appointments from one calendar to the other
by Mike Arthur • 22 August 2018
When you search in Outlook 2016, how do you see in which folder you filed an email in the results?
More posts