Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Outlook Data File Has Reached Maximum Size

· 5 min read · Home Tech

In this article
  1. What Causes the Outlook Data File Size Limit?
  2. How to Check Your Data File Size
  3. Method 1: Compact the Data File
  4. Method 2: Archive or Delete Old Items
  5. Method 3: Move the Data File to Another Drive
  6. Method 4: Increase the PST Size Limit (Registry Hack)
  7. Prevention and Best Practices
  8. Frequently Asked Questions

To fix the “Outlook data file has reached the maximum size” error, you need to either compact the data file, move it to a new location, or reduce its size by archiving or deleting old items. This error occurs when an Outlook data file (.pst or .ost) hits its built-in size limit, which is 50 GB for PST files in most modern versions of Outlook and 2 GB for older formats.

What Causes the Outlook Data File Size Limit?

Outlook stores your emails, contacts, calendar entries, and other items in a data file. There are two main types:

  • PST (Personal Storage Table): Used for POP3 and IMAP accounts, and for archiving. It’s stored on your local drive.
  • OST (Offline Storage Table): Used for Microsoft 365, Exchange, and Outlook.com accounts. It’s a cached copy of your mailbox, synchronized with the server.

Microsoft sets a hard limit on the size of these files to prevent performance issues and file corruption. For Outlook 2013 and later, the default limit is 50 GB for PST files. OST files have a similar limit, though it can be adjusted via Group Policy or registry settings in some enterprise environments. When you approach or hit this limit, Outlook displays a warning or stops receiving new mail.

How to Check Your Data File Size

Before fixing the issue, you need to confirm the size of your data file. Here’s how:

  1. Open Outlook and go to File > Account Settings > Account Settings.
  2. Click the Data Files tab.
  3. Select the file you want to check and click Open File Location (for PST) or note the path shown.
  4. In File Explorer, right-click the file and select Properties to see its size.

If the file is close to or above 50 GB (or 2 GB for older formats), you’ll need to take action.

Method 1: Compact the Data File

Compacting removes unused space from the data file, which can reduce its size. This is a built-in Outlook feature:

  1. In Outlook, go to File > Account Settings > Account Settings.
  2. Click the Data Files tab.
  3. Select the data file and click Settings.
  4. Click Compact Now (in older versions) or Advanced > Compact (in newer versions).
  5. Wait for the process to complete. It may take several minutes.

Compacting only helps if the file has a lot of empty space (e.g., after deleting many items). It won’t reduce the size if the file is full of actual data.

Method 2: Archive or Delete Old Items

If compacting doesn’t help, you need to reduce the amount of data. Use AutoArchive or manual archiving:

  • AutoArchive: Go to File > Options > Advanced > AutoArchive. Set it to move items older than a certain number of days to an archive PST file.
  • Manual Archive: Go to File > Cleanup Tools > Archive. Choose a date and folder to archive.
  • Delete large items: Use the “Large Mail” search to find and delete attachments or emails that take up space. In Outlook, click in the search box and select Search Tools > Advanced Find, then filter by size.

After archiving or deleting, remember to run Compact Now again to reclaim the space.

Method 3: Move the Data File to Another Drive

If your data file is on a drive with limited space, moving it can help. This doesn’t reduce the file size, but it can free space on your system drive and sometimes resolve the error if the limit is due to disk space rather than Outlook’s own limit.

  1. Close Outlook.
  2. Navigate to the current PST/OST location (usually %LocalAppData%\Microsoft\Outlook or %UserProfile%\Documents\Outlook Files).
  3. Cut and paste the file to a new location (e.g., D:\Outlook).
  4. Reopen Outlook. It will likely ask you to locate the file. If not, go to File > Account Settings > Data Files > Add, and browse to the new location.

Note: For OST files, you can also recreate them by removing the account and re-adding it, but that forces a full resync.

Method 4: Increase the PST Size Limit (Registry Hack)

If you’re using Outlook 2013 or later, the 50 GB limit is a hard-coded value, but you can override it with a registry edit. This is not officially supported by Microsoft and can cause corruption if you exceed the limit, so use it with caution.

  1. Close Outlook.
  2. Press Win + R, type regedit, and press Enter.
  3. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\PST (the version number may differ; 16.0 is for Office 2016/2019/365).
  4. Right-click on the PST key (create it if it doesn’t exist) and select New > DWORD (32-bit) Value.
  5. Name it MaxLargeFileSize and set its value to the desired size in bytes (e.g., 100 GB = 107374182400).
  6. Also create a DWORD named WarnLargeFileSize and set it to a lower value (e.g., 90 GB = 96636764160) to get a warning before hitting the limit.
  7. Restart Outlook.

This only works for PST files, not OST. For OST, the limit is controlled by the Exchange server or by a similar registry key under OST.

Prevention and Best Practices

To avoid hitting the limit again, consider these habits:

  • Regularly archive old emails (e.g., quarterly).
  • Empty the Deleted Items folder after mass deletions.
  • Use mailbox cleanup tools to find large items.
  • If you use IMAP, consider switching to Exchange or Microsoft 365 where the mailbox size is managed on the server.
  • Keep your data file on a drive with plenty of free space.

Frequently Asked Questions

Why does my Outlook say “data file has reached the maximum size” even though it’s only 10 GB?

If you’re using an older Outlook version (2003 or earlier), the limit is 2 GB. Also, some third-party add-ins or corrupted files can cause the error prematurely. Check your Outlook version and the file’s actual size in File Explorer.

Does compacting a PST file always reduce its size?

No. Compacting only removes empty “slack” space. If the file is full of actual emails and attachments, compacting won’t shrink it. You must delete or archive items first, then compact.

Can I convert a PST to OST to avoid the limit?

No. OST files are tied to a server account and cannot be used as standalone archives. They also have their own size limits. Instead, you should archive or use a separate PST for old mail.

Is it safe to edit the registry to increase the PST limit?

It is possible, but Microsoft does not support it. Exceeding the limit can cause data corruption. Always back up your PST file before making any changes, and consider archiving instead.

What happens if I ignore the error and keep using Outlook?

Outlook may stop receiving new mail, or the data file may become corrupted, leading to permanent loss of emails. It’s best to address the issue as soon as you see the warning.