Skip to the road
Adminpatchlog

Microsoft 365 & SharePoint

SharePoint’s 5,000-Item View Limit: How to Plan Lists and Libraries

Gregory Zelfond 390 travellers

SharePoint can store more than 5,000 items, but views and queries need careful design. Use folders or indexed columns and filtered views to manage larger collections.

SharePoint’s 5,000-Item View Limit: How to Plan Lists and Libraries

SharePoint’s 5,000-item view limit affects how admins design lists and document libraries, even when the total collection can be much larger. A library with 15,000 files can work if users see them in manageable groups. A single view that tries to return 7,500 items can run into the limit. Planning the views and their filters early is the practical way to keep large collections usable.

What the limit applies to

The list view threshold, commonly called the 5,000-item view limit, caps the number of items a single view can display or query in a SharePoint list or library. It does not cap the total number of items stored there. Files and folders both count as items in a library.

The distinction matters because administrators may see a collection grow beyond 5,000 items without hitting the threshold in every view. The problem arises when a view, filter, sort, or grouping operation needs to work with too many items at once. Treat the threshold as a constraint on how SharePoint retrieves and presents a result set, not as a storage quota.

Why SharePoint has a view threshold

The limit dates back to classic SharePoint, when performance concerns applied to installations running on premises. SharePoint Online still uses the threshold to protect the shared database from queries that could slow service for other users. The hosted environment changed, but the need to control the workload from large queries remained.

That means tenant admins can’t raise the threshold to accommodate a particular list or library. Design has to account for the limit: users should reach the content through views that return smaller, relevant sets of items.

Folder structure changes what users see

Consider a document library containing 15,000 files. If its contents are organized into folders and subfolders, with a few hundred items in each, users typically view the contents of one folder at a time. Each folder acts as a container for that view. The library’s total size can exceed 5,000 while the view of an individual folder stays below the limit.

SharePoint document library organized in folders, each folder holding well under 5,000 items

Now put those same 15,000 files in the library root, or divide them between two folders with 7,500 files apiece. Opening either large folder asks SharePoint to display more than 5,000 items. The total number stored hasn’t changed; the way the files are grouped has.

SharePoint document library with 7,500 files in a single folder, over the 5,000-item view limit

Design library views before they grow

For libraries, folders are one option when they reflect how people need to browse the files. Keep each folder below 5,000 items so a folder view can show its contents. The goal is a structure users can navigate, not a set of arbitrary folders added only to divide the item count.

Libraries organized around metadata rather than folders need another approach. Create indexed columns and use them in filtered views so each view returns a smaller subset. Set this up before the library approaches 5,000 items; waiting until it has grown can make the view design harder to implement. Guidance on indexed columns and filtered views covers the relevant techniques.

Think through the filters users will need as the library grows. A view that works while the collection is small may become a problem if it eventually returns too many items, or if users sort or filter on a column that isn’t indexed. Indexing and view design should be part of the library’s setup, especially when folders aren’t part of the plan.

Lists need indexed, filtered views

Lists don’t provide the same folder structure used to divide a document library into browseable containers. For a list expected to exceed 5,000 items, indexed columns and filtered views are therefore central to the design. Choose columns that support the ways users will narrow the list, then build views that retrieve relevant portions of the data.

Modern SharePoint’s infinite scroll loads rows in batches, which can make browsing feel more manageable. But loading items in batches doesn’t remove the threshold. A view that returns more than 5,000 items can still cause problems, as can sorting, filtering, or grouping on a column that isn’t indexed.

If the requirement is a database application with hundreds of thousands of records, consider whether a SharePoint list is the right storage choice. Microsoft Dataverse is an alternative to evaluate for large datasets. The right choice depends on the application’s needs; the practical point is to avoid treating a SharePoint list as an unlimited database.

Storage capacity and day-to-day usability

Microsoft’s SharePoint Online limits documentation says a library can store up to 30,000,000 items. That storage figure doesn’t mean a library of that size will be convenient to manage. Based on the author’s experience, a more practical ceiling for a single library is about 100,000 items; large libraries require additional planning.

For admins, the useful check is how people will retrieve content, not just how many files the library can hold. Define folders or indexed filters while the collection is still manageable, and review views that rely on unindexed columns. SharePoint can store far more than 5,000 items, but each view needs a design that keeps its result set within the threshold.

Source: Gregory Zelfond · sharepointmaven.com

On the same route