TABLE OF CONTENTS
- •Should You Compress? Quick Decision Table
- •How Backup Compression Works and Why It’s Usually Faster
- •Do your backups meet your recovery targets?
- •Which Editions Support Backup Compression?
- •The Cost: CPU
- •Compression Algorithms: MS_XPRESS, QAT_DEFLATE and ZSTD
- •What Affects the Compression Ratio?
- •Enable Backup Compression by Default
- •When Not to Compress
- •Version and Edition Notes
- •Official Behavior, Aryasoft Field Notes and Our Recommendation
- •Frequently Asked Questions
- •Sources (Microsoft Learn)
- •Will Your Backups Restore Fast Enough?
Backup compression is one of the few SQL Server settings that usually makes things smaller and faster at the same time. Yet many servers still take uncompressed backups, simply because the instance-level default was never changed. This guide explains how backup compression works, what it costs, which algorithms are available in newer versions, and how to enable it as the default for every backup.
Short answer
Turn backup compression on by default for SQL Server Standard, Enterprise and Developer unless the server is CPU-bound. Compressed backups are smaller and usually faster because they need less I/O, but they cost CPU, so measure the ratio in msdb.backupset. SQL Server 2025 adds ZSTD: use it per backup, because setting it as the server-wide default has a documented known issue.
Last verified: 19 October 2026. Checked against Microsoft Learn (backup compression, the two server configuration options, BACKUP, integrated acceleration and the SQL Server 2025 known issues). T-SQL tested on SQL Server 2025 (build 17.0.4055.5). Known issues change with updates, so check the Microsoft page for your cumulative update.
Should You Compress? Quick Decision Table
| Your situation | What to do | Why |
|---|---|---|
| Standard, Enterprise or Developer edition with spare CPU in the backup window | Compress, and set backup compression default to 1. |
Smaller files and less backup-device I/O, which Microsoft says usually increases backup speed significantly. |
| CPU-bound server, backups must run at peak | Limit compression with Resource Governor, or use Intel QAT on SQL Server 2022 and later (Windows). | Compression raises CPU use by default; both options protect concurrent work. |
| Express or another edition that cannot create compressed backups | Use uncompressed backups; you can still restore compressed ones. | Creating compressed backups needs Enterprise, Standard or Developer. |
| TDE-encrypted database | Use SQL Server 2019 CU5 or later, or set MAXTRANSFERSIZE above 64 KB on older builds. |
The optimized algorithm decrypts, compresses and re-encrypts pages; otherwise encrypted pages compress poorly. |
| Column-level encryption, already page-compressed tables, random data | Expect little gain. Measure with the msdb query before committing. | Encrypted and already compressed data compresses significantly less. |
| SQL Server 2025 and you want ZSTD | Test ALGORITHM = ZSTD per BACKUP and compare size and duration. Do not set it as the server default yet. |
ZSTD is documented as faster and more effective than MS_XPRESS, but the server-wide setting has a known issue. |
| Deduplicating backup appliance | Follow the vendor’s guidance, which is often to send uncompressed backups. | Their deduplication may work better on uncompressed streams. |
| You may restore onto an older SQL Server version | Do not compress for that target, or test the restore first. | Previous versions of SQL Server can’t read compressed backups. |
How Backup Compression Works and Why It’s Usually Faster
With compression enabled, SQL Server compresses the data as it writes the backup. Because a compressed backup is smaller, it needs less I/O on the backup device, and Microsoft notes that this usually increases backup speed significantly. The same is true in reverse: a restore reads less data from the backup device. The benefits are:
- Less storage: backup files are often a fraction of the database size, so you can keep more backups for the same disk space.
- Faster backups and restores: on most servers the backup is limited by I/O, not CPU, so writing less data takes less time. A faster restore directly shortens your RTO.
- Less network traffic: smaller files travel faster to a backup server, another data center or cloud storage.
Do your backups meet your recovery targets?
Our senior DBA team compares your backup settings, compression, storage and restore times with your RPO and RTO targets.
Which Editions Support Backup Compression?
Creating compressed backups is supported in the Enterprise, Standard and Developer editions. Every edition from SQL Server 2008 onward can restore a compressed backup, so you can, for example, restore a compressed production backup on an Express instance. Two restrictions to know: compressed and uncompressed backups can’t be mixed in the same media set, and older SQL Server versions can’t read compressed backups.
Note
Compression applies to every backup type: full, differential and transaction log backups. A common misconception is that log backups aren’t compressed; they are, whether you use WITH COMPRESSION or the server default.
The Cost: CPU
Compression isn’t free. Microsoft notes that compression significantly increases CPU usage by default, and that extra CPU can affect other work running at the same time. In practice:
- Full and differential backups usually run in a quiet window, where spare CPU is available.
- Frequent log backups during the business day are small, so their CPU cost is usually modest, but check it on CPU-bound servers.
- If CPU is tight, you can run compressed backups in a Resource Governor workload group with a CPU limit, at the cost of a longer backup.
- From SQL Server 2022, compression can be offloaded to Intel QuickAssist Technology (QAT) hardware through integrated acceleration (the
QAT_DEFLATEalgorithm), which frees up the server’s CPUs.
Compression Algorithms: MS_XPRESS, QAT_DEFLATE and ZSTD
| Algorithm | Available from | Notes |
|---|---|---|
MS_XPRESS |
SQL Server 2008 | The classic default algorithm, runs on the CPU. |
QAT_DEFLATE |
SQL Server 2022 | Uses Intel QAT hardware acceleration to offload compression from the CPU. |
ZSTD |
SQL Server 2025 | According to Microsoft, faster and more effective than MS_XPRESS. |
On SQL Server 2025 you can choose ZSTD for a single backup. Microsoft also documents a server-wide default for it (backup compression algorithm = 3), but its SQL Server 2025 known-issues page lists an error when you set that value:
-- One backup with ZSTD (SQL Server 2025)
BACKUP DATABASE [SalesDB]
TO DISK = N'\\backupsrv\sql\SalesDB\SalesDB_FULL.bak'
WITH COMPRESSION (ALGORITHM = ZSTD), CHECKSUM;
-- Server-wide ZSTD default (value 3). Works on SQL Server 2025 RTM (17.0.4055.5);
-- Microsoft's known-issues page lists Msg 15129 on some builds, so confirm on a test
-- instance first, or specify ZSTD per BACKUP as above.
-- EXEC sys.sp_configure N'backup compression algorithm', 3;
-- RECONFIGURE;
Warning
You can set ZSTD as the server-wide default with sp_configure (value 3); backups taken with a plain WITH COMPRESSION then use ZSTD. This works on SQL Server 2025 RTM (build 17.0.4055.5). Microsoft’s known-issues page lists an error (Msg 15129) for this setting on some builds, so confirm it on a test instance of the build you run before changing the server-wide default, or specify ZSTD in the BACKUP command. Before changing any algorithm, also make sure every server you might restore to can read it: a backup compressed with a newer algorithm can only be restored on a version that supports it.
What Affects the Compression Ratio?
How much smaller a backup gets depends on the data:
- Data type: character data compresses better than most other data.
- Repetition: pages where many rows share the same values compress well; random data, or one large row per page, barely compresses.
- Encryption: encrypted data, for example columns protected with Always Encrypted or application-level encryption, compresses very little.
- Data compression: if tables already use row or page compression, the backup won’t shrink much more.
- TDE: from SQL Server 2016, an optimized algorithm decrypts, compresses and re-encrypts pages when
MAXTRANSFERSIZEis larger than 64 KB. From SQL Server 2019 CU5, SQL Server raisesMAXTRANSFERSIZEautomatically for compressed backups, so TDE databases compress well without extra settings.
You can measure the actual ratio from the backup history:
SELECT TOP (20)
database_name,
CASE type WHEN 'D' THEN 'Full' WHEN 'I' THEN 'Differential' WHEN 'L' THEN 'Log' END AS backup_type,
CAST(backup_size / 1048576.0 AS decimal(18, 1)) AS backup_mb,
CAST(compressed_backup_size / 1048576.0 AS decimal(18, 1)) AS compressed_mb,
CAST(backup_size / NULLIF(compressed_backup_size, 0) AS decimal(9, 2)) AS ratio,
DATEDIFF(SECOND, backup_start_date, backup_finish_date) AS duration_sec
FROM msdb.dbo.backupset
ORDER BY backup_finish_date DESC;
A ratio of 3.00 means the backup is a third of its original size, roughly 66% saved. A ratio near 1.00 means compression isn’t helping that database.
Enable Backup Compression by Default
The server option backup compression default decides whether backups are compressed when the BACKUP command doesn’t say. It’s off on a new installation. Turning it on means every backup (jobs, maintenance plans, third-party tools and one-off backups from SSMS) is compressed unless it explicitly asks not to be:
-- Check the current setting (1 = compressed by default)
SELECT name, value, value_in_use
FROM sys.configurations
WHERE name IN (N'backup compression default', N'backup compression algorithm');
-- Enable compression for all backups by default
EXEC sys.sp_configure N'backup compression default', 1;
RECONFIGURE;
In SSMS, the same setting is under Server Properties → Database Settings → Compress backup. An individual backup can still override the default with WITH COMPRESSION or WITH NO_COMPRESSION.
When Not to Compress
Compression is the right default for most servers, but there are exceptions:
- CPU-bound servers where backups have to run during peak hours and there’s no spare CPU; consider Resource Governor or QAT first.
- Data that doesn’t compress: encrypted or already compressed data where the measured ratio stays near 1.
- Deduplicating backup appliances: some storage vendors recommend sending uncompressed backups so their own deduplication works better. Follow your vendor’s guidance.
For how compression fits into the rest of a backup strategy, see How to Build a SQL Server Backup Plan and SQL Server Backup Types Explained.
Version and Edition Notes
| Item | Applies to | Note |
|---|---|---|
| Create compressed backups | Enterprise, Standard, Developer | Express does not create them. Any edition from SQL Server 2008 can restore them. |
MS_XPRESS |
All editions that can compress | The default algorithm. Runs on the CPU. |
QAT_DEFLATE (Intel QAT) |
SQL Server 2022 and later, Windows | Integrated acceleration and offloading is not available on Linux or containers. Drivers are required to back up or restore with accelerated compression. |
ZSTD |
SQL Server 2025 and later | WITH COMPRESSION (ALGORITHM = ZSTD), with an optional LEVEL of LOW (default), MEDIUM or HIGH. |
backup compression algorithm option |
SQL Server 2022 and later, Windows | 1 = MS_XPRESS (default), 2 = Intel QAT, 3 = ZSTD. Microsoft lists Msg 15129 for setting 3 on some SQL Server 2025 builds; confirm it on your build. |
backup compression default option |
All editions that can compress | 0 (off) is the default; 1 makes every backup compressed unless it says otherwise. |
TDE and MAXTRANSFERSIZE |
SQL Server 2016; 2019 CU5 and later | Above 64 KB enables the optimized TDE path. From 2019 CU5 it is raised to 128 KB automatically for compressed backups. |
Official Behavior, Aryasoft Field Notes and Our Recommendation
| Topic | Official behavior (Microsoft) | Aryasoft field note | Our recommendation |
|---|---|---|---|
| Speed | A compressed backup is smaller, so it typically needs less device I/O and usually increases backup speed significantly. | No Aryasoft benchmark is published in this article. Many servers still take uncompressed backups because the default was never changed. | Compare duration_sec and size in msdb.dbo.backupset before and after, on your own data. |
| CPU | By default, compression significantly increases CPU usage and can affect concurrent operations. | Full and differential backups usually run in quiet windows; frequent log backups are small. Check CPU-bound servers. | Use Resource Governor or QAT where CPU is tight. |
| Ratio | Depends on data type, row repetition, encryption and existing data compression. Random data or one large row per page compresses poorly. | Some storage vendors recommend uncompressed backups for their own deduplication. | Measure the ratio per database; stop compressing where it stays near 1.00. |
| ZSTD | Available from SQL Server 2025 and described as faster and more effective than MS_XPRESS. | No Aryasoft measurement published yet. | Use ZSTD per backup after testing; avoid the server-wide setting until the known issue is fixed in your build. |
| Default setting | backup compression default is off after installation; individual backups can override it. |
Servers frequently run for years on the factory default. | Set it to 1 and use WITH NO_COMPRESSION only where needed. |
Frequently Asked Questions
backup compression algorithm to 3 makes plain WITH COMPRESSION backups use ZSTD. Microsoft’s known-issues page lists an error (Msg 15129) for this setting on some builds, so confirm it on a test instance of your build and cumulative update before changing the server-wide default, or specify ZSTD in the BACKUP command.backup_size by compressed_backup_size in msdb.dbo.backupset; a ratio near 1.00 means little benefit. Compare backup_start_date and backup_finish_date to see whether the backup also got faster.Related Reading
- How to Build a SQL Server Backup Plan: RPO, RTO, Schedules and Testing
- SQL Server Backup Types Explained: Full, Differential, Log, Tail-Log and Copy-Only
- How to Restore a SQL Server Database: SSMS, T-SQL and Point-in-Time Guide
- Best Practices for SQL Server Backup Safety
- DBA Managed Services
- SQL Server 2025 Licensing Guide: Editions, Core vs. CAL, Pricing and Cost Optimization
- SQL Server Health Check: What It Should Cover (12-Area Checklist)
Sources (Microsoft Learn)
Technical claims in this guide were checked against these primary sources on 19 October 2026. Microsoft can change documentation at any time, so re-check version-specific details before a production change.
- Backup compression (SQL Server)
- Server configuration: backup compression default
- Server configuration: backup compression algorithm
- BACKUP (Transact-SQL)
- Integrated acceleration and offloading
- SQL Server 2025 known issues
- Editions and supported features of SQL Server 2025
Backup and DR Assessment
Will Your Backups Restore Fast Enough?
Compression is one setting in a backup strategy. Aryasoft’s senior DBA team reviews your backup settings, compression, storage and restore times against your RPO and RTO, and shows where recovery would fall short before an incident does.