What is the swap file in Windows 10 & Windows 11?
Kein Ruckeln, alles läuft flüssig trotz vieler rechenintensiver Anwendungen: Windows 10 und Windows 11 nutzen die Auslagerungsdatei, um deine PC-Leistung zu verbessern – und Abstürze durch einen überlasteten Arbeitsspeicher zu verhindern.

Diese versteckte Systemdatei ist das „clevere“ System des virtuellen Arbeitsspeichers:
If the physical RAM is running low or should simply be relieved, the system management of Windows 11 and 10 automatically decides which files and programs are swapped to the paging file (pagefile.sys).
This can be caused, for example, by many complex applications or games being opened at the same time.
But not only when your RAM is full and the system threatens to crash, even if your RAM is not fully utilized, the swap file in Windows 11 and 10 jumps in and saves excess data. Always ensuring stable, smooth computing performance.
It is the invisible performance heroine of Windows.
It works in the background to ensure that everything runs smoothly and without delays.
How and when should you change the swap file in Windows 11 and 10?
And why do we advise you, unlike with earlier Windows versions, not to set a user-defined size prematurely under Win 11 and Win 10?
Increase and optimize the swap file in Windows 10 / 11
Let's start right away with the manual setting of the swap file:
You can change, move and enlarge the swap file in Windows 10 and 11 quickly and easily via the advanced system settings.
Risky tips in online guides and chatGPT / AI chatbots
Many Internet guides give hair-raising recommendations for the swap file. Also ChatGPT 4 advised me to make risky changes in testswhich would lead to crashes in Windows 11 / 10, especially for power users in areas such as gaming and video editing. See example of an Adobe Premiere user below.
Please read our recommendations and the effects of manual configuration and sizing in advance.
4-step guide to changing the swap file (size and drive)
Here is a quick guide:
- Open the advanced system settings in Windows 11 or 10.
- Click on the Advanced tab and then under Performance on Settings.
- Go to Advanced again and click Change under Virtual memory.
- In the next window, uncheck Manage file size for all drives automatically.
Now you can set a user-defined size of the swap file and customize its location or drive according to your needs.
Here are all the steps for the settings as a picture gallery:
When should I increase the size and manually change the swap file in Windows 11 / 10?
Are you thinking about increasing the size of the Windows 11 / 10 swap file or setting it manually?
This is possible, but you should know:
Microsoft's operating system now manages the virtual memory reliably and automatically.
A lot has changed since earlier versions: The virtual ram calculation runs much more intelligently under Win 10 than it did under XP. With Windows 11, there has been another leap forward.
As a Windows expert, I recommend today (as well as other specialists and MVPs) den meisten Usern dehalb, die automatische Handhabung durch das System zu nutzen und nicht damit „rumzuspielen“.
Jetzt kommt das große „Aber“…
Sometimes a manual adjustment of the size and moving nevertheless be necessary:
- Optimize storage spaceIf the Windows installation drive (C:) is too small, move the swap file to a drive with more storage space (select the storage location in the above settings, see images). Otherwise the file size could zum „Volllaufen“ der Systempartition bzw. Festplatte und zu Systemabstürzen führen.
- Increased memory requirement: For high memory usage (such as 4K video editing and 3D games), it may make sense to increase the file size to >100GB or an additional swap file on another drive.
- Acute lack of storage space: If the swap file is too large and the disk space on your system partition is small, you could theoretically set a smaller, user-defined size (CAUTION: In practice, this can lead to sudden crashes later on with memory-intensive applications! Our recommendation: If possible move them to a larger drive as mentioned above or let Windows 11 / 10 continue to manage them).
- Troubleshooting: Tritt der Fehler „BSOD PAGE_FAULT_IN_NONPAGED_AREA“, „KERNEL_DATA_INPAGE_ERROR“ oder ein Speichermangel auf, kann eine increasing the swap file size notwendig sein. Oder es ist eine zu kleine benutzerdefinierte Größe festgelegt – und die Umstellung aus automatische Dateigröße schafft Abhilfe.
But Which swap file size is sufficient and recommendable?
Recommended size of the swap file for 8GB, 16GB, 32GB and 64GB RAM
Would you like to have the swap file size not managed by Windows 11 or Windows 10, but instead set a user-defined size?

Here are a few rules of thumb:
- Initial size and maximum size: Always set identical values, see image above. Different sizes are not good, as the dynamic enlargement or reduction of the swap file requires more computing time and places an unnecessary load on the hard disk. That is why I have always recommended entering the same values in megabytes in both fields (nothing has changed since Win XP ;).
- With less than 8 GB RAM working memory: Setze die Auslagerungsdatei mindestens auf das 1,5 – 3-fache deines RAMs. Bei 6GB RAM also 9.000 Megabyte oder mehr (je leistungshungriger deine Prozesse, desto mehr MB sind notwendig). Wie gesagt sollten die Initial size and maximum size identical to protect the hard disks (especially important for SSDs, see also section below).
- For 8 GB RAM, 16 GB RAM, 32 GB or more: The virtual RAM should be about the same size as your physical RAM. EXCEPTIONS: For high resource consumption such as video editing, even with 64 GB of RAM it may make sense to increase the size of the swap file in Windows 11 and 10 to 100 GB or more in order to work smoothly.
- If you store large amounts of data on your hard disk: Gib ihr immer ausreichend Raum, um zu „atmen“. Denn wird die Auslagerungsdatei einmal vom System voll belegt, dann sollte noch ausreichend freier Speicherplatz auf der Festplatte sein.
- To select the drive on which the swap file should be located: If you have several disks in your computer, take the faster and larger one so that quick access to the file is guaranteed in the event of storage bottlenecks and the file does not grow.
Auslagerungsdatei verkleinern – mit welchem Risiko?
Wondering whether you should shrink a large swap file?
For example, because pagefile.sys has swollen to a gigantic 90 gigabytes? And it's almost bursting your hard disk or Windows system partition?
And you have a whopping 32 GB of RAM in your computer?
Using the instructions above, you could now set a sufficient user-defined size, say 32 GB (i.e. 32,000 MB), and fix the problem in a few seconds.
Zur Sicherheit könntest du noch ChatGPT um Ratschlag bitten…
AI chatbot ChatGPT 4 gave me the following advice for downsizing:
„Recommendation: Als Ausgangspunkt wäre eine Auslagerungsdatei von 32 GB eine vernünftige Wahl für Ihr System. Dies stellt sicher, dass Sie genug Speicher für die meisten Anwendungen und für Systemstabilität haben. (…) Für die meisten modernen Systeme mit reichlich RAM (wie in Ihrem Fall) ist es oft ausreichend, die Auslagerungsdatei auf die gleiche Größe wie den physischen Speicher einzustellen. In Ihrem Fall wären das 32 GB.“ (December 2023)
But would this size be suitable for you and your system really Sufficient? Permanently?
Well, in the case of of this Adobe Premiere user it was still too small at 32 GB: he had reduced the swap file from 90 GB to 16 GB due to a lack of storage space on the system partition.
After some time, mysterious Windows crashes occurred during video editing and when exporting a 4k video.
In his use case, a size of 90 GB was entirely appropriate: As the user later measured and described in his interesting field report, 109 GB was actually necessary.
Microsoft itself writes here on the risk of too small a swap file size under Win 10:
„Dieser Zustand kann zu Einfrieren, Absturz und anderen Fehlfunktionen führen.“
According to this official documentation, swap files managed by the operating system in Win 10 automatically become up to three times as large as the physical memory (installed RAM) or 4 GB (always the higher value, but a maximum of 12.5 percent of the hard disk size) when the reserved memory reaches 90 percent of the reserved memory limit.
Reducing the size of the swap file using a user-defined size should therefore be carefully considered.
Deactivate: Should I delete the swap file in Windows 10 / 11?
Disabling Windows 10's swap file can sound tempting, especially if you think your PC has enough RAM.
But wait!
What could the consequences be?
Disadvantages and advantages of deactivation
Before you take this step, let's briefly weigh up the disadvantages and advantages:
- DisadvantagesDeactivating the swap file will almost certainly lead to instability: Crashes, freezes of apps or the entire operating system (see example above). Even if it continues to run initially, everything could quickly slow down, as Windows and individual apps rely on the virtual memory, not just when the RAM is full.
- Advantages: Rein theoretisch könntest du durch das Deaktivieren Speicherplatz sparen. Wenn du über eine große Menge an RAM verfügst und keine speicherintensiven Anwendungen nutzt. Aber das Risiko von System- oder App-Abstürzen ist hoch – und dieser Vorteil vernachlässigbar.
Instructions for deactivating the swap file (NOT recommended)
Wir empfehlen strikt, auf das Deaktivieren der Auslagerungsdatei zu verzichten – einige Anwendungen funktionieren nach dem Löschen nicht mehr. Es kann zu Abstürzen kommen.
If for some reason you decide to try it anyway, here are instructions on how to deactivate it:
- Go to the System settings and select Advanced system settings.
- Click on the Extended-tab and then under Performance on Settings.
- In the next window, select Extended and then under Virtual memory > Change.
- Remove the tick from Manage drives automaticallyselect your drive and set the option to No swap file.
- Confirm with OK and restart your PC.
But remember: the file has now been deleted. Observe the performance of your PC after deactivating it. If you notice any problems, it is better to reactivate the swap file.
In most cases, it is an important part of your Windows 10/11 system that helps to ensure stable performance.
Swap file on SSDs (with less fragmentation and write operations)
If you have an SSD in your Windows 10 or Windows 11 computer, there are a few things you should know.
This is because the swap file configuration can affect SSD and hard disk fragmentation, speed and durability.
Consider the service life of your SSD
SSDs are faster than traditional hard disks, but they also have their peculiarities: When swapping files to an SSD, it is important to find a balance between performance and longevity.
Too much write and read activity can shorten the service life of your SSD.
It is true that SSDs are much more robust today than they were a few years ago.
But you can still use a few tips to optimize your virtual memory for Less fragmentation and write operations on your SSDs and hard disks configure.
Optimization of the swap file for SSD & HDD
Here are some quick tips on how to optimize the swap file on an SSD for maximum performance and durability:
- Set the minimum initial size and maximum size equalThis prevents the swap file from constantly changing its size, which increases fragmentation and can put a strain on the SSD and slow down normal HDD hard disks.
- Move the swap file to a larger HDD: Is the swap file on your SSD too large and is there a lack of memory? Then move it to a larger drive (to which Windows 11 / 10 should have continuous access).
- Not too big, not too smallA swap file that is too large wastes valuable SSD storage space, one that is too small could impair performance. A good starting point is 1.5 to 3 times your RAM.
- Monitoring performanceObserve how your system behaves. If you notice that it is getting slower, it might be time to adjust the swap file size.
With these simple steps you can ensure that your SSD or HDD and the swap file work in perfect harmony.
How to get the most out of your Windows 10 operating system with fast solid state drives.
Storage location: Here you can find the swap file in Windows 10 and Windows 11
Der Dateiname der Auslagerungsdatei lautet Windows 10 und Windows 11 „pagefile.sys“ und ihr Speicherort befindet sich standardmäßig auf dem Laufwerk, auf dem das Betriebssystem installiert ist.
In den meisten Fällen ist dies das Laufwerk „C“.
The full file path of your swap file is therefore probably as follows:
C:\pagefile.sys
Note that they have a hidden is a system file.
To see them in Windows Explorer, you must change the Explorer display options so that hidden files and protected system files are displayed.
Dies kann in den Explorer-Optionen unter „Ansicht“ oder „Ordneroptionen“ eingestellt werden. Sobald diese Optionen aktiviert sind, solltest du die pagefile.sys im Quellverzeichnis des C:-Laufwerks sehen können.
PS: There are also the hiberfil.sys (saves the entire RAM memory during sleep mode) and swapfile.sys (for Microsoft apps since Win 8), but with different functions.
Differences in swap file management in Windows 11 and Windows 10
How does the handling of the swap file differ between Windows 11 and Windows 10?
In fact, the basic principles are quite similar. However, Windows 11 brings some improvements and smarter management strategies for the swap file compared to previous versions of Windows, including Windows 10. For users with powerful systems and SSDs, this can be an advantage.
Here are a few technical details and innovations that have been implemented in Windows 11:
- Adaptive swap file sizeWindows 11 uses a more dynamic system to adjust the size of the swap file. It actively assesses memory requirements and adjusts the size of the swap file to find the best compromise between system performance and available disk space.
- Improved memory managementThe Windows 10 successor has more efficient memory management that interacts better with physical RAM and the swap file. This includes improved memory usage algorithms that help to make the swapping of data between RAM and hard disk more efficient.
- Optimization for SSDsWin 11 is optimized to work more efficiently with solid-state drives (SSDs). The swap file management takes into account the faster read and write speeds of SSDs to speed up the swapping of data and at the same time reduce wear and tear on the SSD.
- Improved algorithm for storage pressureCompared to previous versions, Win 11 uses an improved algorithm to monitor memory pressure. If the system detects that the physical RAM is running low, it uses the swap file more efficiently to prevent a drop in performance.
- Integration with new technologiesMicrosoft has geared Win 11 towards integration with newer technologies such as DirectStorage for games and other memory-intensive applications. This integration ensures better utilization of virtual memory in conjunction with physical hardware.
Summary
We've covered a lot, but here are the key points you should take away to improve your PC performance in Windows 10:
- The swap file is your friendIt helps your PC to run smoothly even under high load by relieving the RAM.
- Size is importantThe optimal size of the swap file depends on your RAM and your system usage. As a rule of thumb, only change the size if there are problems. It should be at least 1.5 times the size of your RAM, although for computing-intensive processes such as video editing, sizes in excess of 100 GB may be useful. And: The initial size and maximum size should always have identical values.
- Attention SSD usersWith SSDs, you should make sure that the swap file is not too large so as not to shorten the service life of your SSD.
- Take care when deactivatingDeactivating the swap file involves risks. Check carefully whether deletion makes sense for your system.
FAQ
Here we answer some of the most frequently asked questions about the swap file in Windows 10 so that you can improve your PC performance quickly and effectively.
Pictures above: Screenshots








