Storage and cost · 6 min read

Salesforce Storage Limits Explained: Data Storage and File Storage

Published · Updated · By Edward Elliott

Salesforce sells storage above your included allotment in fixed-size blocks, and the per-GB price is steep enough that overages add up quickly. Most admins only discover they're over the limit when an in-app storage warning appears or a Salesforce account rep flags it. This guide explains how the two storage limits are calculated, what counts against each, and where to look in your org to see the current numbers.

Why Salesforce has two storage limits

Salesforce splits storage into two independent buckets, each with its own allotment and its own overage pricing:

  • Data storage covers records — rows in standard and custom objects. The bytes Salesforce charges for are not the actual field bytes; they're a fixed per-record allowance.
  • File storage covers uploaded content — Salesforce Files, attachments, the Documents tab, Chatter files and files in Knowledge File fields (Salesforce lists them in Data and File Storage Allocations).

The two buckets are billed separately, and you can max out one while the other has room to spare. A high-volume sales org with millions of Leads and Opportunities tends to push data storage; a service org with email-to-case and case attachments tends to push file storage. The mitigation strategies are different for each — there's no single fix.

How data storage is calculated

Most standard and custom records count as approximately 2 KB per record. Salesforce notes the figure can vary with custom fields and rich-text content, but it doesn't charge for the actual bytes in each field. Account, Contact, Lead, Opportunity, Case, tasks, events, custom objects — all use the same 2 KB convention for storage accounting.

A few categories behave differently:

  • Person Account records count as 2 records (Account + Contact), so 4 KB each.
  • Campaign records count 8 KB each, and campaign members 1 KB.
  • Knowledge articles count about 4 KB each.
  • EmailMessage records count by the size of the email: a 100 KB HTML email uses 100 KB of data storage, and plain-text emails use less.
  • Big objects have their own allocation, counted in records rather than gigabytes, and field history and Field Audit Trail data don't count against data storage.

Because the cost is per record rather than per byte, the way to reduce data storage is to delete or archive records, not to trim fields. Salesforce publishes the per-object sizes in Estimated Record Size by Object Type.

How file storage is calculated

File storage is sized by actual binary content, not a flat per-object rate. What counts:

  • ContentVersion — the storage object behind Salesforce Files. The size of every version counts (ContentSize, or ContentSizeLong for files over 2 GB), including superseded versions, not just the latest. Uploading a new revision of an existing file roughly doubles its storage cost until you delete old versions.
  • Attachment — the legacy attachment object. Each row's BodyLength counts.
  • Document — the legacy Documents tab object.
  • ContentNote — enhanced notes. They're built on ContentVersion, so they're stored as files even though they're text.
  • Images embedded in rich-text fields, and files in a Knowledge File field.
  • Chatter files, including user photos.
  • Files attached to emails, which are stored as attachments or Salesforce Files.

Files attached to multiple records via ContentDocumentLink only count once — the underlying ContentDocument is what's stored. Deleting the link doesn't free storage; you have to delete the ContentDocument itself, which deletes all its versions. Deleted files stop counting straight away, because records in the Recycle Bin don't count against storage.

Edition-by-edition base limits

These are the base allocations from Salesforce's Data and File Storage Allocations page, checked in November 2026. Purchased storage stacks on top and contracts vary, so your org's Storage Usage page is the authority.

Edition Data storage per org Added data storage per user license File storage per org
Essentials10 GBNone1 GB
Professional10 GB20 MB10 GB
Enterprise10 GB20 MB10 GB
Unlimited / Performance10 GB120 MB10 GB

Data storage grows with user licenses (a Professional Edition org with 10 users gets 10.2 GB); the published file storage allocation doesn't. Sandboxes have their own allocations, separate from production. The Storage Usage page shows the limit Salesforce is actually enforcing for you.

How to check your storage

In Setup, enter Storage Usage in the Quick Find box (it works in Classic and Lightning). The page shows:

  • Storage summary — total data storage used vs allowed, and total file storage used vs allowed. The percentage column is the one to watch.
  • Storage by record type — record counts by object, sorted by storage consumed. This is where you discover that EmailMessage or a custom AuditLog__c object is responsible for most of your data storage.
  • Top users and largest files — the users using the most storage, and the biggest files in order of size. Enough to find the heavy uploaders.

Storage usage is calculated asynchronously, so large imports and deletions take a while to show up.

What counts as "files" vs "data"

The distinction trips people up because some objects feel like records but are stored as files (and vice versa). Quick reference:

Data storageCounted per record
  • Most records: accounts, contacts, cases, tasks, events, custom objects, legacy notes2 KB
  • Person accounts4 KB
  • Knowledge articles4 KB
  • Campaigns8 KB
  • Campaign members1 KB
  • Email messagesemail size
File storageCounted by size
  • Salesforce Files: every ContentVersionbytes
  • Enhanced notes (ContentNote)bytes
  • AttachmentsBodyLength
  • Documents tab, Chatter files, user photosbytes
  • Rich-text images, Knowledge File fieldsbytes
  • Files attached to emailsbytes

Neither: big objects (their own allocation, counted in records) and anything in the Recycle Bin.

Where each kind of record counts. Sizes are Salesforce's published estimates; files count at their actual size.

What happens when you hit the limit

In production, Salesforce's enforcement is mostly soft. The behavior you should expect:

  • Sales / account contact — your Salesforce account team will reach out about purchasing additional storage. This is the most common way orgs discover they're over.
  • Production orgs keep working. Salesforce says an org at or near its limit will continue to run as expected, though performance degrades beyond 100%.
  • Sandboxes are strict. Storage limits are strictly enforced in sandboxes, so a Full sandbox refreshed from an over-limit production org can't create records.
  • Overage billing — the real consequence. Salesforce sells incremental storage in fixed blocks, with file storage and data storage priced separately. Per-GB pricing is high relative to commodity object storage.

Don't rely on Salesforce hard-blocking writes to enforce a cap — by the time you'd notice the block, you've already been over for a while and the renewal conversation is going to include an overage line item.

How to reduce storage

Once you know which bucket is full and which objects are responsible, there are four strategies, in increasing order of complexity:

  1. Archive — move old files to external storage (typically S3) with a Salesforce tracking record so users can still find them.
  2. Delete — remove records and files you can confidently identify as junk (duplicate uploads, test data, files attached to deleted records).
  3. Deduplicate — find files uploaded multiple times across records and consolidate them.
  4. Restructure — for data storage, split high-volume custom objects into Big Objects or external systems; for file storage, tier files by access pattern.

For a deeper walkthrough of each strategy with trade-offs, see Salesforce Storage Costs: What You're Paying and How to Reduce It.

Sources

  1. Data and File Storage Allocations · Salesforce Help
  2. Salesforce Data Storage: Estimated Record Size by Object Type · Salesforce Help
  3. Salesforce File Storage Limit – Understanding and Reducing File Storage Usage · Salesforce Help
  4. Data storage amount limit exceeded · Salesforce Help
  5. Manage the Recycle Bin in Lightning Experience · Salesforce Help
  6. Data and Storage Resources · Salesforce Help
  7. Field Audit Trail · Salesforce Help
Request a demo