How to change partition size on Windows 11

Do you need to shrink or extend a partition on Windows 11? Here's how in four different ways.

Windows 11 change partition size
Windows 11 change partition size

On Windows 11, you can change partition size to either increase the drive size or use the unallocated space to create one or more partitions.

Regardless of the reason, you can resize a partition on Windows 11 without reformating or losing your files using the Settings app, Disk Management, Command Prompt, and PowerShell. When using these tools, you can change the size of any partition, including the “C,” or the partition on any drive, including those from an external location.

In this guide, you will learn the steps to shrink and extend the size of a partition on Windows 11.

Change partition size on Windows 11

On Windows 11, you can use the “Disks & volumes” settings to shrink or expand a partition on the hard drive without losing data.

To change the size of a partition on Windows 11, use these steps:

  1. Open Settings on Windows 11.

  2. Click on System.

  3. Click the Storage tab.

  4. Under the “Storage management” section, click on Advanced storage settings.

  5. Click the “Disks & volumes” setting.

    Open Disks & volumes

  6. Select the drive with the partition (volume) to resize.

  7. Select the partition and click the Properties button.

    Open volume properties

  8. Under the “Size” section, click the Change size button.

    Change size option

  9. Confirm the new size of the partition.

    Shrink or extend partition size

    Quick note: Specify a size smaller than “Max” capacity to shrink the partition size without losing data, or specify the “Max” capacity number to extend the partition to its maximum size.
  10. Click the OK button.

Once you complete the steps, the system will change the partition size without losing data to reflect the specified setting.

You can also use third-party tools like GParted to change the size or move the partition to a different section on the physical hard drive.

Change partition size with Disk Management on Windows 11

Using the legacy Disk Management tool is the easiest way to shrink or expand the partition size on Windows 11.

Shrink partition

To shrink a partition on Windows 11 with Disk Management, use these steps:

  1. Open Start.

  2. Search for Create and format hard disk partitions and click the top result to open the Disk Management console.

  3. Right-click the drive you want to change its partition size and select the Shrink Volume option.

    Disk Management shrink volume

  4. Confirm the amount of space to shrink the partition (in megabytes).

    Change partition size

    Quick note: As you change the size value, you can confirm the total size of the unallocated space after shrinking the original partition.
  5. Click the Shrink button.

Once you complete the steps, the partition will reduce to the specified size.

Extend partition

To increase (or extend) the drive partition size using Disk Management, use these steps:

  1. Open Start.

  2. Search for Create and format hard disk partitions and click the top result to open the Disk Management console.

  3. Right-click the drive to change its partition size and select the Extend Volume option.

    Disk Management extend volume

  4. Click the Next button.

  5. Under the “Selected” section, choose the disk with available space (if applicable).

    Quick note: In some cases, you may need to select the disk from the “Available” section and click the Add button to make it available.
  6. Confirm the space to increase the drive partition (if necessary).

    Increase partition size on Windows 11

  7. Click the Next button.

  8. Click the Finish button.

After completing the steps, the drive partition will extend to the specified size.

If the “Extend volume” option is greyed out, the physical drive doesn’t have any space to increase the volume.

Change partition size with Command Prompt on Windows 11

It’s also possible to change the partition size without losing data on Windows 11 using the DiskPart tool with Command Prompt.

Shrink partition

To shrink a partition with Command Prompt on Windows 11, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to start diskpart and press Enter:

    diskpart
  4. Type the following command to list the volumes and press Enter:

    list volume
  5. Type the following command to select the volume you want to shrink the partition and press Enter:

    select volume 2

    In the command, change “2” for the number representing the partition you want to modify.

  6. Type the following command to determine the space you can decrease the partition and press Enter:

    shrink querymax
  7. Type the following command to shrink the drive partition by a specific amount (in megabytes) and press Enter:

    shrink desired=7099

    DiskPart shrink partition commands

    In the command, change “7099” for the amount (in megabytes) you want to shrink the partition.

  8. (Optional) Type the following command to shrink the partition by its maximum space reclaimable and press Enter:

    shrink

Once you complete the steps, DiskPart will reduce the size of the partition to the new smaller size.

Extend partition

To increase the drive partition size with DiskPart, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to start diskpart and press Enter:

    diskpart
  4. Type the following command to list the available disks and their capacity, and press Enter:

    list disk
    Quick note: Identify the drive’s total size with the partition you want to increase.
  5. Type the following command to list the volumes and press Enter:

    list volume
  6. Type the following command to select the volume to shrink the partition and press Enter:

    select volume 2

    In the command, change “2” for the number that represents the partition to modify.

  7. Type the following command to increase the size of the partition and press Enter:

    extend size=20480

    In the command, change “20480” for the amount (in megabytes) you want to increase the partition.

  8. (Optional) Type the following command to increase the size of the partition using all contiguous space on the drive and press Enter:

    extend

    DiskPart extend partition commands

After you complete the steps, the partition will extend to the new size without losing your data.

Change partition size with PowerShell on Windows 11

Alternatively, you can also Change partition sizes using PowerShell commands.

Shrink partition

To resize a partition with PowerShell, use these steps:

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to list all the drives and their total size, and press Enter:

    Get-Disk
  4. Type the following command to list the available partitions on the drive and Enter:

    Get-Partition -DiskNumber 2

    In the command, change “2” for the number of the drive with the partition to shrink.

  5. (Optional) Type the following command to understand the minimum and maximum space you can resize the partition and press Enter:

    Get-PartitionSupportedSize -DiskNumber 2 -PartitionNumber 2

    In the command, change the disk and partition number corresponding to your situation. Also, the SizeMin and SizeMax are specified in bytes, which means that you may need to use an online converter to understand the information in gigabytes or any other size.

  6. Type the following command to resize the partition to 5GB and press Enter:

    Resize-Partition -DiskNumber 2 -PartitionNumber 2 -Size (5GB)

    PowerShell resize partition (shrink)

    In the command, replace the partition number and size for the information corresponding to your drive and the size to shrink the drive. Also, we’re using GB, but you can also specify the space in bytes, KB, MB, and TB

Once you complete the steps, PowerShell will shrink the partition, leaving additional unallocated space to create additional volumes.

Extend partition

To extend the partition size with PowerShell, use these steps:

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to list all the drives and their total size, and press Enter:

    Get-Disk
  4. Type the following command to list the available partitions in the drive and press Enter:

    Get-Partition -DiskNumber 2

    In the command, change “2” for the drive number with the partition you want to extend.

  5. (Optional) Type the following command to understand the minimum and maximum space you can resize the partition on Windows 11 and press Enter:

    Get-PartitionSupportedSize -DiskNumber 2 -PartitionNumber 2

    In the command, change the disk and partition number corresponding to your situation.

  6. Type the following command to increase the partition to 9GB and press Enter:

    Resize-Partition -DiskNumber 2 -PartitionNumber 2 -Size (9GB)

    In the command, replace the partition number and size for the information corresponding to your drive and the size to increase the partition.

    PowerShell resize partition (extend)

  7. (Optional) Type the following command to extend the partition to its maximum size on Windows 11 and press Enter:

    Resize-Partition -DiskNumber 1 -PartitionNumber 2 -Size 10720624128

    In the command, replace the disk and partition number for the information that corresponds to your situation. Also, to specify the new size of the partition, use the SizeMax number available in step No. 4.

After completing the steps, the partition will cover the available space or the specified amount.

About the author

Mauro Huculak is a Windows expert and the Editor-in-Chief who started Pureinfotech in 2010 as an independent online publication. He is also been a Windows Central contributor for nearly a decade. Mauro has over 12 years of experience writing comprehensive guides and creating professional videos about Windows, software, and related technologies, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me.